Tutorials
Short, focused builds you can finish in a single sitting.
Short, focused builds you can finish in one sitting. Every tutorial has a working repository.
Popular tutorials
Build a SaaS starter
Auth, Stripe billing, team invitations and a dashboard, wired end to end with typed queries.
Add semantic search
Chunk documents, generate embeddings, run hybrid search and rank with reciprocal rank fusion.
Ship a realtime app
Presence, live cursors and conflict resolution over a single websocket channel.
Background jobs and cron
Queues, retries with backoff, dead-letter handling and scheduled maintenance tasks.
Multi-tenant row-level security
Model tenants, write policies, and prove isolation with an automated test suite.
Preview environments in CI
Create a branch per pull request, seed anonymised data and post the URL back to GitHub.
A taste: semantic search in nine lines
const embedding = await ai.embed({ model: "nz-embed-3", input: query });
const { rows } = await db.query(sql`
select id, title, 1 - (embedding <=> ${embedding}) as score
from documents
where tenant_id = ${tenantId}
order by embedding <=> ${embedding}
limit 10
`);Request a tutorial
Tell us what you are trying to build and we will add it to the queue — most requests ship within a month.