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.

Note

To start a new app, run npm create jazz. It prints a brief for your coding agent, which sets Jazz up in your project. Reach for the examples/ apps below when you want to see a specific pattern worked through end-to-end.

At a glance

ExampleStackUniquely demonstrates
auth-betterauth-chatNext.js + Better AuthBetter 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-chatReact + Vite + ExpressBring-your-own auth: an Express server with cookie sessions mounts Jazz with nodeHandler, and session.claims.role drives UI gating
auth-workos-chatReact + Vite + WorkOSWorkOS 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-reactReact + VitePublic vs private rooms with invite links via ephemeral session.claims.join_code; emoji reactions; collaborative drawing canvases; binary file attachments
cloudflare-worker-runtime-tsCloudflare WorkersBooting Jazz inside Workers by passing a precompiled WebAssembly.Module via runtimeSources.wasmModule — no browser asset URLs
nextjs-csr-ssrNext.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-expoExpo (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-reactReact + ViteFully 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-svelteSvelte 5 + ViteThe Svelte bindings: JazzProvider, QuerySubscription live queries and writes through todos.db
todo-client-localfirst-solidSolid + ViteThe Solid bindings: JazzProvider, useAll live queries and writes through its db
todo-client-localfirst-tsVanilla TypeScript + ViteThe low-level client API with no framework bindings: createJazzClient, session.db, db.subscribe, device accounts
todo-client-localfirst-vueVue + ViteThe Vue bindings: JazzProvider, useAll live queries and writes through its db
todo-server-tsNode + ExpressJazz 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-tourVue + Vite + MapLibre GLThe 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-*-chat family (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's authenticate, 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.