Server (@foundry/server)
The Express server runs withtsx (no bundler) and connects to Supabase using a service role key.
Key Files
| File | Purpose |
|---|---|
src/index.ts | App entry: middleware, routes, error handling |
src/routes/health.ts | Health check endpoint |
src/lib/supabase.ts | Supabase client (service role) |
Adding Routes
- Create a route file in
src/routes/ - Export a Router
- Register in
src/index.ts

