Server (@foundry/server)
The Express server runs withtsx (no bundler) and connects to Supabase using a service role key.
Key Files
Adding Routes
- Create a route file in
src/routes/ - Export a Router
- Register in
src/index.ts
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Express API server with TypeScript
tsx (no bundler) and connects to Supabase using a service role key.
| 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) |
src/routes/src/index.tspnpm dev --filter=@foundry/server # Starts with tsx watch
