Project structure
Where everything lives.
apps/
native/ the product: the iOS and Android app (Expo)
web/ admin area + optional web companion (TanStack Start)
marketing/ the public website, blog, legal, pricing
docs/ these docs (fumadocs)
mail-preview/ previews of every email template
packages/
supabase/ generated database types, client factories, test helpers
sync/ the local database: schema, connector, local queries, live hooks
functions/ the Edge Functions as tested handlers
auth/ sign-in rules both clients share: config, permissions, error codes
payments/ plans, limits, entitlements, RevenueCat
i18n/ translations (en, de)
mail/ email templates and providers
ui/ shared web components and design tokens
… analytics, pricing, notifications, storage, ai, app-pages, utils, config
supabase/
config.toml the local stack's settings
migrations/ the schema, row level security, functions, scheduled jobs (SQL)
seed.sql local settings; scripts/seed-users.ts adds the demo users
powersync/
service.yaml the PowerSync service
sync-config.yaml the sync streams
deploy/ production: Caddy, PowerSync, the apps; the Supabase setup
docs/adr/ decisionsWhere to change what
| To change | Edit |
|---|---|
| a table, a policy | a new file in supabase/migrations (bun run db:new <name>) |
| what devices receive | powersync/sync-config.yaml and packages/sync/src/schema/tables.ts |
| reads and writes on devices | packages/sync/src/queries/<feature>.ts |
| a native screen | apps/native/src/app/ (Expo Router) |
| server-side logic | an RPC in a migration, or packages/functions/src/handlers/<name>.ts |
| plans and limits | packages/payments/src/config.ts |
| sign-in methods | packages/auth/src/config.ts and supabase/config.toml |
| text | packages/i18n/translations/<locale>/<scope>.json |