Examples
Find the example app that shows what you're looking for.The examples/ folder in the Jazz monorepo contains runnable apps that each
highlight a different facet of Jazz — auth strategies, runtimes,
framework bindings, server-side usage, or a specific product pattern. Use this
table to jump straight to the example that covers the technique you need.
At a glance
| Example | Stack | Uniquely demonstrates |
|---|---|---|
| auth-betterauth-chat | Next.js + Better Auth | Better Auth tables stored in Jazz via jazz-tools/better-auth-adapter; authenticate reads the Better Auth session cookie, and claims such as the admin plugin's role drive Jazz authorization |
| auth-simple-chat | React + Vite + Express | Bring-your-own auth: an Express server with cookie sessions mounts Jazz with nodeHandler, and session.claims.role drives UI gating |
| auth-workos-chat | React + Vite + WorkOS | WorkOS AuthKit in a small Express server: createJazz's authenticate reads the sealed AuthKit cookie, refreshing the WorkOS token when stale, and the organization role becomes the role claim |
| chat-react | React + Vite | Public vs private rooms with invite links via ephemeral session.claims.join_code; emoji reactions; collaborative drawing canvases; binary file attachments |
| cloudflare-worker-runtime-ts | Cloudflare Workers | Booting Jazz inside Workers by passing a precompiled WebAssembly.Module via runtimeSources.wasmModule — no browser asset URLs |
| nextjs-csr-ssr | Next.js (App Router) | The canonical SSR/RSC story: a Server Component reading via jazz-tools/backend alongside a Client Component using jazz-tools/react hooks |
| todo-client-localfirst-expo | Expo (React Native) | Supported alpha app: a direct New-Architecture jazz-rn dependency, Expo SecureStore-backed device accounts, and a JazzProvider-owned persistent relay. Requires a matching development/release build; Expo Go cannot load the native module. |
| todo-client-localfirst-react | React + Vite | Fully client-side React app that starts as a guest on a device account (a key kept on the device: no sign-in needed); useAll with composable where(), writes through its db, IndexedDB persistence, and the development Inspector overlay |
| todo-client-localfirst-svelte | Svelte 5 + Vite | The Svelte bindings: JazzProvider, QuerySubscription live queries and writes through todos.db |
| todo-client-localfirst-solid | Solid + Vite | The Solid bindings: JazzProvider, useAll live queries and writes through its db |
| todo-client-localfirst-ts | Vanilla TypeScript + Vite | The low-level client API with no framework bindings: createJazzClient, session.db, db.subscribe, device accounts |
| todo-client-localfirst-vue | Vue + Vite | The Vue bindings: JazzProvider, useAll live queries and writes through its db |
| todo-server-ts | Node + Express | Jazz as a server-side backend via jazz-tools/backend and NAPI SQLite storage; await client.forReqUser(request) for per-user policy; SSE live snapshots; wait({ tier }) durability |
| world-tour | Vue + Vite + MapLibre GL | The Vue bindings end-to-end in a non-trivial app (tour management with maps) |
How the examples group together
- The
todo-client-localfirst-*family (-react,-svelte,-solid,-vue,-ts) all implement the same schema and feature set, so the diff between them is the framework binding. They cover the local-first baseline: a device account (guest) identity, reactive queries, synchronous writes, IndexedDB persistence, optional server sync. See also Framework Patterns. - The
auth-*-chatfamily (auth-betterauth-chat,auth-simple-chat,auth-workos-chat) all implement a role-gated chat against three different auth setups, each read in the backend'sauthenticate, so the diff between them is the auth integration. - The server-side examples (
todo-server-ts,nextjs-csr-ssr,cloudflare-worker-runtime-ts) show Jazz used as the database from a server runtime — Node, Next.js App Router, and Cloudflare Workers respectively. - The product-shaped examples (
chat-react,world-tour) are full apps that lean on Jazz for a specific real-world pattern: real-time chat with invites and canvases, and Vue + maps.