Documentation

Hands-on guides for setting up and extending this starter kit.

Quick Start

Sep 29, 2025

Get the Sushi SaaS template running locally with pnpm, explore i18n routes, health checks, and MDX blogs, and learn where to configure auth, billing, and docs.

setupi18nMDX
Quick Start

Database Setup

Sep 29, 2025

Configure Postgres and Drizzle ORM — the backbone for auth, billing, storage, tasks, and app tables.

databaseDrizzlePostgres
Database Setup

Authentication & Admin Architecture

Sep 29, 2025

Deep dive into how this template handles Better Auth sessions, OAuth, RBAC, and business data modeling for credits and quota.

authadminoauthsessions
Authentication & Admin Architecture

Stripe Setup

Sep 29, 2025

Use Stripe Checkout for payments and finalize via webhooks to grant credits. Configure environment variables, create sessions, handle callbacks, and process signed webhook events.

Stripepaymentswebhook
Stripe Setup

Notifications - Slack Alerts

Oct 11, 2025

Set up simple Slack notifications for uploads and payments, wire them into Stripe webhooks and storage errors, and customize alerts with a tiny server helper.

notificationsSlackwebhooks
Notifications - Slack Alerts

Private File Uploads (S3 / R2)

Oct 07, 2025

A step‑by‑step, beginner‑friendly guide to adding user‑private uploads with S3‑compatible storage. Includes concepts, setup, env, API, UI, errors, and S3↔R2 migration.

storageuploadsS3R2
Private File Uploads (S3 / R2)

Logging & Observability

Oct 11, 2025

Structured logging for Node, Edge and Workers with request IDs, redaction and per-route examples. Works on Vercel, Cloudflare and Node servers.

loggingobservabilityNodeEdge
Logging & Observability

Email Service (Resend)

Sep 29, 2025

Integrate transactional email with Resend. Verify your domain, create API keys, render welcome and payment emails on the server, and send through Resend with environment-based configuration.

emailResendtemplates
Email Service (Resend)

Accounts, Orders & Credits

Sep 29, 2025

Understand how users, orders, and the credits ledger work together in the Sushi SaaS template. Learn the balance formula, expiry handling, and the APIs/services to grant, consume, and inspect credits.

creditsordersledgerStripe
Accounts, Orders & Credits

Credits-Based Tasks — Text to Video

Oct 11, 2025

Add usage-based monetization with a generic tasks table, a credit ledger, and a pluggable text-to-video generator. Learn the schema, APIs, config constants, and a minimal UI to ship paid AI features fast.

creditstasksaivideo
Credits-Based Tasks — Text to Video

Reservations Feature — Availability, Deposits, Google Calendar

Sep 29, 2025

Enable a modular reservations feature with business-hours availability, Stripe Checkout deposits, webhook confirmation, ICS attachments, and Google Calendar links.

reservationsStripecalendar
Reservations Feature — Availability, Deposits, Google Calendar