# 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](/migrating-from-nuxt) look for first.

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