Skip to content

Cookbook — the recipes have moved

The recipes that used to live on this page now have a page each in the Recipes section. Each one follows the full format: the real situation, the code file by file, the piece-by-piece explanation, the screen states (loading, empty, error, mobile) and a Recap. 🚚

The headings below stay here so old links, such as cookbook.md#full-authentication-flow, still land in the right place.

Full authentication flow

➡️ Full authentication flow: login, protected routes and a session that expires on its own.

Paginated list with search and sorting

➡️ Paginated list with search and sorting: DataTable in memory and with server-side pagination.

Form with zod validation

➡️ Form with zod validation: one schema, masked CPF and mobile number, backend errors on the right field.

Dark mode with no flash

➡️ Dark mode with no flash: themeInitScript() in the <head> and a Light / Dark / System switcher.

Offline-first

➡️ Offline-first: per-user IndexedDB, a sync that falls back to the cache, and an offline banner.

Command palette ⌘K

➡️ Command palette ⌘K: Command + a global shortcut + a button for mobile.

App from scratch in 1 minute

➡️ App from scratch in 1 minute: create-tempest-app and the first real screen.

Recap

Every recipe, including the larger use cases and the integrated example, is in the Recipes index.