Skip to content

Guides

Choose the task you want to complete. These guides connect setup, application code, and checks so you can adopt Beignet or extend an existing app.

New to Beignet? Start with the quickstart, then build the Projects tutorial. Use Mental model to understand the application architecture and API reference for exported types and functions.

Adopt Beignet

Build a feature

  • Protect a resource — add ownership to a new resource, filter lists, and test owner, other-account, and anonymous access. Starts from the SQLite starter without the Projects tutorial.
  • Connect forms and lists — create Todos, edit completion, and paginate the list using shared validation and cache refreshes. Starts from the SQLite starter without the Projects tutorial.
  • Upload a file — add a private Todo attachment uploader with saved records, authorized downloads, and retryable removal.
  • Test a feature from business rule to HTTP — exercise ownership, validation, HTTP responses, and SQLite persistence with the starter's real Todos feature.

Add background work and communication

  • Run a background job — save a job with a new Todo in the SQLite starter, deliver it through an outbox drain, and test retries and rollback. No Projects tutorial required.
  • Send an email — configure Resend, send from an operator task, and test delivery with a memory mailer.
  • Receive a GitHub webhook — verify signatures, save opened issues once, and test duplicate deliveries before connecting GitHub.
  • Run work on a schedule — define a scheduled operation and connect the runtime that will invoke it.

Ship and operate

  • Deploy a Next.js app — put the SQLite starter on Vercel with a hosted Turso database, apply migrations, and verify the app.
  • Prepare an app for production — check migrations, environment variables, readiness, and the services your app depends on.
  • Deploy workers and drains — choose explicit entrypoints for queue workers and outbox delivery alongside your web app.
  • Recover a failed job — inspect a dispatch receipt and retry eligible work through its configured provider.

Use a guide with your agent

Open the guide you need and use Copy page near its title, or choose Open Markdown from its menu, to share the instructions and code. Give your agent the behavior you want and the app's local instructions, then review the guide's expected result together.

The agent instructions explain how to select guidance for the installed version, inspect the app, and verify a change. Each standalone guide includes a Work with your agent prompt with concrete completion checks.