Getting Started
Architecture
How Foundry’s monorepo is structured
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
How Foundry’s monorepo is structured
foundry/
├── apps/
│ ├── web/ Next.js 15 — frontend + SSR
│ ├── server/ Express 5 — API server
│ ├── supabase/ Migrations + config
│ └── docs/ Mintlify docs
├── packages/
│ └── shared/ Types + constants
└── scripts/ Automation utilities
Browser → Next.js (SSR) → Supabase (auth + data)
↕
Express Server → Supabase (service role)
| Decision | Choice | Why |
|---|---|---|
| Package manager | pnpm | Fast, strict, disk-efficient |
| Monorepo tool | Turborepo | Zero-config, task caching |
| CSS | Tailwind v4 | CSS-first config, no JS config file |
| Auth | Supabase magic link | Passwordless, simple, secure |
| Server runtime | tsx | No bundler needed, TypeScript directly |
| Shared package | No build step | Raw TypeScript via exports field |
