Setup

Notion connection and seed flow.

The app already works with demo content. To switch it to your real library, wire in a recipes database and run the seed script if you want starter entries.

Current state

Notion connected Recipes are loaded directly from your Notion data source.

Environment variables

  • NOTION_TOKEN
  • NOTION_RECIPES_DATABASE_ID
  • ADMIN_BEARER_TOKEN

Expected database properties

  • Name (title)
  • Slug (rich text)
  • Summary (rich text)
  • Category (select)
  • Tags (multi-select)
  • Duration (rich text)
  • Status (select or status)
  • Cover (files, optional)

Seed command

pnpm seed:notion

The seed script creates a few starter recipes directly in Notion so you can exercise the public site and agent-facing API.

API shape

Versioned routes live under /api/v1. Public reads use GET /api/v1/recipes and GET /api/v1/recipes/:slug. Admin writes use bearer-protected routes under /api/v1/admin/recipes.