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.
| Recipe | Job |
|---|---|
| Auth with sessions | sign up, log in, log out and guard data with a sealed session cookie |
| OAuth login | sign in with GitHub or another provider |
| A SQLite database | tables, migrations and queries with @hamur/db |
| File uploads | accept an image, check it and serve it back |
| Deploy to Fly.io | the Docker output on a Fly machine with a volume |
| Deploy with Docker | build the image and run it |
| Deploy to Cloudflare | a Worker with D1 and R2 |
| Deploy to Vercel | the prebuilt output |
| A custom data composable | useFetch with your own defaults |
| A mostly static site | prerender most pages, render a few |
| Hydration | keep the first render of the browser equal to the server's |
| Performance | ship less script and cache more |
| Accessibility | focus and announcements after a navigation |
| Debugging | the server debugger, the hydration report and the build logs |
| Multi-zones | two Hamur apps under one host, /docs/ proxied to the second |
| Multi-tenant | one build for several domains, each with its own site |
| TanStack Query | seed a query from a load and invalidate it after a change, in React, Vue, Solid, Svelte and Preact |
| SWR | useSWR seeded from a load, with a cache for each request |
| pinia | a Vue store whose server-set state is there after hydration |
| zustand | a store made for each request and carried to the browser |
| Docs with Fumadocs | a docs site with fumadocs-ui, MDX, search and dark mode on React |