Kibanno emblem Kibanno 基盤の Docs
Kibanno Protocol v1

Quickstart & 1-Line CLI Install

Install the standalone prebuilt kibanno CLI (verified via SHA-256 checksums, zero Rust toolchain required), then scaffold, zero-config sync icons/branding, prove, and launch native Desktop, Android, and Apple shells:

# Install prebuilt Kibanno CLI (macOS / Linux)
curl -fsSL https://kibanno.com/install.sh | sh

# Install prebuilt Kibanno CLI (Windows PowerShell)
irm https://kibanno.com/install.ps1 | iex

# 1. Scaffold a Protocol v1 manifest for your existing app
kibanno init --url https://yourapp.com/

# 2. Generate SHA-384 entries for assets bundled in the 0 ms Vault
kibanno vault-hash --url-path /assets/zokeibi.min.css public/assets/zokeibi.min.css

# 3. Zero-config sync branding, bundle IDs, icons & deep links across all shells
kibanno sync --manifest kibanno.json --target all

# 4. Run automated security, SHA-384 vault & live CSP proofs
kibanno doctor --manifest kibanno.json --live
kibanno prove  --manifest kibanno.json --live

# 5. Launch or build native shells (including Play Store .aab bundles)
kibanno dev   --target desktop --manifest kibanno.json
kibanno dev   --target android --manifest kibanno.json
kibanno build --target android --aab --manifest kibanno.json
100% Backend-Agnostic

Use with Any Stack (Laravel, Rails, Node, Django, Go)

Kibanno does not require Kongono or PHP. The Android, iOS, and Desktop shells speak open Kibanno Protocol v1—just three web primitives: a kibanno.json manifest, three HTTP request headers (X-Kibanno-Platform, X-Kibanno-Form-Factor, X-Kibanno-Chrome), and the standalone 5.6 KB zero-dependency bridge.js runtime.

1. Add bridge.js (CDN or Self-Hosted for Strict CSP)

Use our edge CDN for quick prototyping, or download bridge.js into your public assets and stamp it into your 0 ms SHA-384 Asset Vault for strict script-src 'self':

<!-- Option A: Direct CDN with SHA-384 Subresource Integrity -->
<script src="https://kibanno.com/dist/v1.0.0/bridge.js"
        integrity="sha384-gYVMbNrYH+7WVrmTdUBW7Z0Ffbr0Mp8ynN6zhGNdR7L0hAJfILROMkO5EeGnH0C7"
        crossorigin="anonymous" defer></script>

# Option B: Self-host (recommended for strict CSP script-src 'self' + 0 ms Asset Vault)
curl -fsSL https://kibanno.com/dist/v1/bridge.js -o public/assets/kibanno-bridge.js
kibanno vault-hash --url-path /assets/kibanno-bridge.js public/assets/kibanno-bridge.js

2. Read Native Chrome Hints & Hide Web Headers

Copy the 10-line middleware for your backend (or hide web headers purely in CSS via html[data-kibanno-chrome="native"] .web-nav { display: none; }):

// app/Http/Middleware/KibannoHints.php
public function handle(Request $request, Closure $next)
{
    $chrome = $request->header('X-Kibanno-Chrome') === 'native' ? 'native' : 'web';
    view()->share('kibannoNative', $chrome === 'native');

    return $next($request)->header('Vary', 'X-Kibanno-Chrome', false);
}

// resources/views/layouts/app.blade.php
@unless($kibannoNative)
  <header class="web-nav">...</header>
@endunless
<script src="/assets/kibanno-bridge.js" defer></script>

Mobile-Only, Desktop-Only, or Full Ecosystem

You do not have to ship every platform. Kibanno adapts cleanly to how your product is distributed:

Mobile-Only (iOS + Android)

Deploy your server backend in the cloud and build only shells/android and shells/apple. Use $request->getAttribute('kibanno.native') so regular desktop browser visitors see a clean App Store / Google Play download page while mobile app users get the full app.

Desktop-Only (Local-First)

Enable desktop.sidecar in kibanno.json to embed a local loopback-pinned FrankenPHP or PHP server inside a 5–12 MB Tauri v2 binary—ideal for offline-first desktop utilities and developer tools.

Protocol v1 Manifest (/.well-known/kibanno.json)

The Protocol v1 schema (spec/kibanno.schema.json) is 100% backend-agnostic. Every shell parses and validates the exact same JSON contract:

  • origins: Explicit HTTPS origins (or loopback 127.0.0.1 for local dev). All other URLs fail closed and escape to the OS browser / Custom Tabs.
  • capabilities: Least-privilege ACL governing what the JS bridge can call (navigation, haptics, biometrics, keychain, share, qr, push, device, network, desktop.tray, desktop.window, desktop.notifications).
  • navigation: Declares native primary tabs (phone: "bottom_tabs", tablet: "rail", desktop: "sidebar").
  • routes: Maps URL patterns (and optional host bindings like bbl.to) to per-form-factor presentations: push, replace, detail, sheet, modal, window, native, or external.

Kongono PHP 8.5 Adapter (kongono/kibanno)

Mount KibannoMiddleware once in your Kongono entrypoint. It automatically exports /.well-known/kibanno.json, /.well-known/apple-app-site-association, /.well-known/assetlinks.json, and /_kibanno/bridge.js directly from your controller attributes, while normalizing client hint headers and setting Vary: X-Kibanno-Chrome.

$config = new KibannoConfig(
    appId: 'com.bidbylink.app',
    appName: 'BidByLink',
    startUrl: 'https://bidbylink.com/',
    origins: ['https://bidbylink.com', 'https://bbl.to'],
    capabilities: ['navigation', 'haptics', 'biometrics', 'keychain', 'share', 'qr', 'device', 'network'],
    appleTeamId: 'ABCDE12345',
    deepLinkPaths: ['/lots/*', '/*'],
);

$app->middleware(new KibannoMiddleware($config, $app->router()));

Pair with Zokeibi v1.4.2+ to automatically hide web headers via .z-web-only when html[data-kibanno-chrome="native"] is active and pad notches via .z-safe-pad.

0 ms SHA-384 Asset Vault

Running kibanno dev --target android or --target ios verifies every asset listed in vault.assets against its SHA-384 digest and copies it directly into the native bundle. At runtime, requests for those URL paths are served in-process from memory/assets with zero network latency and zero white flash.

Zero-Trust Bridge ABI v1

Include <script src="/_kibanno/bridge.js" defer></script> under strict script-src 'self' CSP. The runtime automatically falls back gracefully in regular web browsers while unlocking verified native capabilities inside Kibanno shells:

// Declarative HTML hooks (zero inline JS)
<button data-kbn-haptic="medium">Bid Now</button>
<button data-kbn-share="https://bbl.to/kbn42" data-kbn-share-title="kibanno.dev">Share</button>
<button data-kbn-notify="Auction ends in 2m" data-kbn-notify-title="BidByLink">Alert</button>

// Promise API
const info = await window.Kibanno.deviceInfo();
await window.Kibanno.keychainSet("refresh_token", secret);
const { found, value } = await window.Kibanno.keychainGet("refresh_token");
await window.Kibanno.call("navigation", "dismiss");

Pure-Native Escape Hatches (NativeScreenRegistry)

When a specific route demands pure Jetpack Compose or SwiftUI—such as a camera barcode/QR scanner, AR view, or custom drawing canvas—annotate the route with #[NativeScreen('QrLoginScanner')]. Both shells/android and shells/apple resolve the screen name from NativeScreenRegistry without reloading the WebView.

Pure PHP 8.5 Unified Push

Kongono\Kibanno\Push\UnifiedPushDispatcher delivers push notifications across iOS, Android, and Web with zero third-party SDKs:

  • APNs (ApnsDriver): Native ES256 JWT signing + HTTP/2 delivery.
  • FCM (FcmDriver): Native RS256 OAuth2 service-account token exchange + HTTP v1 API.
  • Web Push (WebPushDriver): RFC 8292 VAPID ES256 headers with built-in SSRF private-IP protection.
  • Every receipt exposes $receipt->shouldUnregister on HTTP 410 / UNREGISTERED so stale tokens are pruned automatically.

Desktop Local Sidecar

Add desktop.sidecar to run a bundled FrankenPHP or PHP server strictly on 127.0.0.1 inside Kibanno Desktop. The Rust supervisor avoids shell spawning, waits for health_path to return HTTP 200 without PHP fatal errors, injects the bound loopback origin into OriginPolicy, and kills the child process cleanly when the window exits.

Production Store Release Checklist

  • Switch all origins and start_url from http://127.0.0.1 to production https:// domains.
  • Populate deep_links.apple_team_id and deep_links.android_sha256_fingerprints for verified Universal Links & App Links.
  • Run kibanno prove --manifest kibanno.json --live in CI and verify all 4 security pillars + SHA-384 vault hashes pass.
  • Configure Android signing keystore in shells/android/app/build.gradle.kts and Apple signing team in shells/apple/App/project.yml.