Listoca

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/        decisions

Where to change what

To changeEdit
a table, a policya new file in supabase/migrations (bun run db:new <name>)
what devices receivepowersync/sync-config.yaml and packages/sync/src/schema/tables.ts
reads and writes on devicespackages/sync/src/queries/<feature>.ts
a native screenapps/native/src/app/ (Expo Router)
server-side logican RPC in a migration, or packages/functions/src/handlers/<name>.ts
plans and limitspackages/payments/src/config.ts
sign-in methodspackages/auth/src/config.ts and supabase/config.toml
textpackages/i18n/translations/<locale>/<scope>.json

On this page