1.7 KiB
1.7 KiB
Workspace
Overview
Standalone TypeScript API server with Replit run and deployment configuration.
Stack
- Node.js version: 24
- Package manager: pnpm
- TypeScript version: 5.9
- API framework: Express 5
- Build: esbuild
Provider Endpoints
Use Replit AI Integrations endpoints. The app reads these environment variables automatically:
AI_INTEGRATIONS_OPENAI_BASE_URLAI_INTEGRATIONS_OPENAI_API_KEYAI_INTEGRATIONS_ANTHROPIC_BASE_URLAI_INTEGRATIONS_ANTHROPIC_API_KEY
CLI flags are still available for manual overrides:
--openai-base-url--openai-api-key--anthropic-base-url--anthropic-api-key
Never use public official provider endpoints.
Key Commands
pnpm install --ignore-workspace— install dependencies without joining a parent workspacenode build.mjs && node --enable-source-maps dist/index.mjs— build and run API server locally on port3000pnpm run typecheck— typecheck the serverpnpm run build— typecheck and builddist/index.mjspnpm run build:fast— builddist/index.mjswithout typecheckingpnpm start— run the built server
Replit Configuration
.replitrunbuilds withnode build.mjsand runsdist/index.mjs.replitonBootusespnpm install --ignore-workspace- publishing from a parent workspace should configure root
.replitdeployment and create a shell web artifact
Server Overrides
--hostorHOST--portorPORT--proxy-api-keyorPROXY_API_KEY
Routes
/and/dashboard— static model dashboard/api/healthz— health check/v1/models— OpenAI-compatible model list/v1/chat/completions— OpenAI-compatible chat proxy