Skip to content

Cookbook ​

Practical recipes for builders. Each page solves one concrete problem with working code, then explains why the snippets are shaped the way they are.

The recipes assume you already have a workspace and an app — if not, walk through Getting started and First app, end-to-end first.

Auth ​

  • End-to-end sign-up flow — register a user, verify the email via OTP, log in, refresh, and revoke. Includes the recommended cookie strategy for browser clients.
  • OAuth login (Google) — configure a provider in the dashboard, build the redirect link from your client, exchange the callback for a RustBase session.

Data ​

Realtime ​

Hooks ​

  • Add a custom HTTP route — register a JS hook that mounts a route on the app's API surface, validates input, and reads + writes records via $app.records.

Released under the MIT OR Apache-2.0 license.