How midday-ai/v1 works
Project type and purpose
• This is an opinionated, full‑stack, monorepo SaaS starter kit (“Create v1”) comprising:
• A Supabase‑backed API (Postgres + Auth + Edge Functions)
• A Next.js “app” product (protected dashboard)
• A Next.js marketing “web” site
• Shared utility and UI packages (analytics, email, jobs, kv, logger, supabase client, ui)
• Tooling layers (Turborepo, Biome, TypeScript configs)
File structure
• Top‑level “apps” folder:
• apps/api → Supabase configuration, Edge Functions, DB migrations, seed script
• apps/app → the main product Next.js application, server‑actions, i18n, Sentry, Tailwind, Dub link‑sharing
• apps/web → marketing Next.js site, subscribe form, embedded calendar
• “packages” folder: shared libraries:
• analytics (OpenPanel)
• email (React Email templates + Resend)
• jobs (Trigger.dev background tasks)
• kv (Upstash Redis caching & rate‑limit)
• logger (central logging)
• supabase (typed queries, mutations, client wrappers)
• ui (Shadcn/Tailwind UI primitives)
• Tooling folder contains shared TypeScript configs; root hosts Turbo (monorepo build orchestrator) and Biome (formatter/linter).
Key architecture notes from README
• Monorepo, code reuse via shared packages
• Next.js at the frontends, Supabase as “backend” plus Edge Functions
• External SaaS integrations: Upstash, Resend, Trigger.dev, OpenPanel, Dub, Sentry