Documentation Index
Fetch the complete documentation index at: https://docs.kazzle.com/llms.txt
Use this file to discover all available pages before exploring further.
How it works
Apps with realtime sync keep a local database on the device. Reads are instant (local), writes queue locally, and everything syncs to the server in the background.What the AI sets up
Ask the AI to build a realtime app. It creates a database, turns on the sync service, and builds a two-part app:- UI - client app with a local database, live queries, and a sync connector
- Process - token endpoint, sync upload route, and migration runner
Rules of thumb
- Write locally first. Let sync upload in the background.
- Show empty states, not loading spinners, once local data exists.
- Keep user-visible state in synced tables so it survives refreshes and offline use.
- Group related local writes together so the UI updates as one step.
Offline app shell
UI templates can include an offline app shell so the app can reopen after the first visit without a network. The app shell is the static HTML, JS, CSS, and icons.- Offline shell makes the app open without a network
- Sync keeps the app data usable while offline
When to use realtime sync
| Good fit | Overkill |
|---|---|
| Task managers and notes apps | Static marketing pages |
| Collaborative tools | One-off form submissions |
| Field apps with weak connectivity | Read-only brochure sites |
| Anything that should feel instant | Apps with no offline value |
Platform variables
Kazzle injects a small set of environment variables into every app process automatically. These are separate from your own vault secrets.| Variable | What it is |
|---|---|
PORT | The port your process should listen on |
HOST | The hostname to bind to (typically 0.0.0.0) |
KAZZLE_API_KEY | API key for Kazzle-authenticated CLI and runtime calls from the process |
KAZZLE_API_URL | Base URL of the Kazzle server |
COMPONENT_<NAME>_URL | Runtime URL of a sibling component |
VITE_COMPONENT_<NAME>_URL | Same, but exposed to Vite-based UI components at build time |
Sibling URLs
When an app has multiple components (e.g. aweb UI and a server process), Kazzle can inject URLs for sibling components: