Skip to content

Recipes

A recipe is one job from start to finish: the goal, the steps, one working sample and the pages that hold the details. Each sample is a real file in apps/web/samples/recipes/ that the docs check compiles, and the server code of the auth, database and upload recipes also runs in the test suite. The recipes are the ones people coming from Nuxt look for first.

RecipeJob
Auth with sessionssign up, log in, log out and guard data with a sealed session cookie
OAuth loginsign in with GitHub or another provider
A SQLite databasetables, migrations and queries with @hamur/db
File uploadsaccept an image, check it and serve it back
Deploy to Fly.iothe Docker output on a Fly machine with a volume
Deploy with Dockerbuild the image and run it
Deploy to Cloudflarea Worker with D1 and R2
Deploy to Vercelthe prebuilt output
A custom data composableuseFetch with your own defaults
A mostly static siteprerender most pages, render a few
Hydrationkeep the first render of the browser equal to the server's
Performanceship less script and cache more
Accessibilityfocus and announcements after a navigation
Debuggingthe server debugger, the hydration report and the build logs
Multi-zonestwo Hamur apps under one host, /docs/ proxied to the second
Multi-tenantone build for several domains, each with its own site
TanStack Queryseed a query from a load and invalidate it after a change, in React, Vue, Solid, Svelte and Preact
SWRuseSWR seeded from a load, with a cache for each request
piniaa Vue store whose server-set state is there after hydration
zustanda store made for each request and carried to the browser
Docs with Fumadocsa docs site with fumadocs-ui, MDX, search and dark mode on React