Make games that run between phones.
A wildkit game is a plain HTML file. The players’ phones pass moves to each other directly, with no internet. Start in App Studio (opens in a new tab).
App Studio is live today. The wildkit app comes out in January 2027.
Quick start: a two-player tap race
The whole game in one file. Each tap is sent to the other phone; the first to 20 wins.
Make it in App Studio (opens in a new tab), add an app.json with "minUsers": 2, and play it on two phones that are together.
App Structure
A wildkit app is a folder with an index.html entry point. All assets are bundled locally: no network access at runtime.
The shell provides a back button, chat overlay, and keyboard toolbar automatically. Your app fills the entire screen behind these controls.
app.json
Every app must include an app.json manifest at the root of its folder.
| Field | Type | Description |
|---|---|---|
| title | string | Display name in the app listing |
| type | "game" | "app" | Games receive myPlayer and gameId |
| description | string | One-liner shown under the title |
| howTo | string | Instructions shown before the game starts |
| minUsers | int | Minimum participants required |
| maxUsers | int | Maximum participants supported |
| ageGroup | string | 4+ 9+ 12+ 17+: Apple age ratings |
| artworks | string[] | Filenames of artwork assets |
| screenshots | string[] | Filenames of screenshots |
| videos | string[] | Filenames of preview videos |
JavaScript API
The wildkit object is injected globally before your scripts run. No imports needed.
Properties
| Property | Type | Description |
|---|---|---|
| wildkit.peers | [{id, name}] | All participants. First entry is always you. |
| wildkit.myPlayer | number | 1-based player number. Player 1 is the session host. Games only. |
| wildkit.gameId | string | Session UUID. Games only. |
wildkit.send(data)
Send any JSON-serializable value to the other players. It goes phone to phone over the wildkit mesh: Bluetooth, hopping at most once through a friend’s phone.
wildkit.onReceive(callback)
Register a callback for incoming data. The callback receives the data and the player number who sent it. Multiple callbacks supported.
wildkit.gameOver(result?)
Signal that the game has ended permanently (checkmate, resign, player exits). Cleans up the session and its move history. Call this when the game is truly over: not on dismiss or between rounds.
wildkit.newRound()
Start a new round within the same session. Clears the move history but keeps the session alive: useful for games with multiple rounds like poker (preserves chip counts) or tic tac toe (preserves score).
wildkit.tts(text, voice?)
Speak text using on-device text-to-speech.
Multiplayer
The same send / onReceive bridge handles every multiplayer pattern. All game logic lives in your HTML: the bridge is a transparent pipe.
| Pattern | Example | How it works |
|---|---|---|
| Turn-by-turn | Chess | Send full game state on each move |
| Simultaneous | Strategy | Send actions once both players submit |
| Real-time | Action | Send at any frequency (Bluetooth allows about 20–30 messages a second) |
Data flows: HTML → wildkit.send() → wildkit mesh → peer → wildkit.onReceive()
Game Lifecycle
Game sessions are persistent: they survive app backgrounding and device restarts. Moves are stored locally and replayed on restore.
Session flow
Rematch pattern
Use send() to coordinate rematch choices between players. Both must agree before starting a new round.
Player number
wildkit.myPlayer is a 1-based index derived from the session’s player order. Player 1 is always the host. Use it to assign sides:
Text-to-Speech
On-device TTS with no network required.
| Parameter | Type | Description |
|---|---|---|
| text | string | Text to speak. Required. |
| voice | string | Voice name. Optional, defaults to "yelena". |
Chat
The native shell handles chat automatically. No JavaScript required.
- Collapsible chat bubble (bottom-left)
- Floating message bubbles when keyboard is down
- Full scrollable message list when keyboard is up
- Keyboard dismiss toolbar
Sandboxed Environment
Apps run in a fully sandboxed WKWebView. This is by design: wildkit games work with no internet at all.
- No network access.
fetch(),XMLHttpRequest,WebSocket, and<script src="https://...">are all blocked. - No server calls. No REST APIs, no GraphQL, no Firebase. Data only moves between players through
wildkit.send(). - No cookies or localStorage. State resets when the app closes.
- No geolocation or device APIs. No camera, microphone, GPS, accelerometer, or contacts.
- No navigation.
window.open()and external URL redirects are blocked. - No clipboard access.
navigator.clipboardis unavailable. - Single WebView. Fullscreen, no iframes, no popups.
- Touch only. Use
touchstart/touchmove/touchend. - Safe areas. Use
viewport-fit=coverandenv(safe-area-inset-*).
The only way in or out is the wildkit bridge.
Starter Template
Copy this and start building.
Identity & Backup
Your wildkit identity is a P-256 keypair generated on first launch. Your peer ID is the SHA-256 hash of your public key: it’s how other devices recognize you across sessions.
How it works
- Private key stored in the iOS Keychain with
kSecAttrSynchronizable: true. - If iCloud Keychain is on (the user already opted in at the OS level), the key syncs across devices. Restore to a new phone, same identity, same contacts.
- If iCloud Keychain is off, the key stays on-device only. The user made that choice at the OS level: wildkit respects it.
There is no in-app toggle. The decision to sync secrets is an OS-level trust decision, not an app-level one. wildkit doesn’t second-guess it.
What survives a phone change
| Restore method | Identity | Contacts | Game sessions |
|---|---|---|---|
| Device-to-device migration | Kept | Kept | Kept |
| Encrypted local backup | Kept | Kept | Kept |
| iCloud backup + iCloud Keychain on | Kept | Kept | Kept |
| iCloud backup + iCloud Keychain off | New identity | Lost | Orphaned |
Design rationale
wildkit has no account system and no password. The private key is the identity. (When contacts are apart, a relay forwards their messages and deletes each one once it’s delivered; it holds no accounts.) Losing it means starting fresh: there is no “forgot password” flow because there is no password. This is the trade-off of a peer-to-peer design: sovereignty over your identity, with the responsibility of keeping it backed up.
Open Protocol
wildkit runs on an open, documented mesh protocol. Any device: iOS, Android, embedded: can implement it and join the mesh. Every exchange uses typed packets with CRC32 integrity.
Tech Stack
| Layer | Technology | Details |
|---|---|---|
| Discovery | CoreBluetooth | BLE 5 advertising/scanning, short ID prefix, background-capable, ~30m range |
| Transport | QUIC over NAN | Network.framework NWProtocolQUIC over Wi-Fi Aware, ALPN "wildkit", ~20ms latency |
| Identity | P-256 + TLS Mutual Auth | Keypair in iOS Keychain, self-signed cert for TLS mutual auth on every session |
| UI | SwiftUI + UIKit | NavigationStack architecture, UIKit for WKWebView and gesture layers |
| Crypto | CryptoKit | SHA-256 peer ID, CRC32 packet integrity, P-256 ECIES encryption, ECDSA signatures |
| Sandbox | WKWebView | No network, no cookies, JS-Swift bridge via WKScriptMessageHandler, native tap gating |
| Keys | iOS Keychain | P-256 private key in Keychain with iCloud sync. Survives device migration when iCloud Keychain is enabled |
| Storage | Local-first | UserDefaults + disk for zstd-compressed mesh pages. No cloud sync, no telemetry |