β‘ Scaffold production-ready Express.js TypeScript backends in seconds
npx create-express-forge my-api
# or scaffold in current directory
npx create-express-forge .Interactive prompts let you choose:
| Option | Choices |
|---|---|
| Architecture | Modular (feature-based) Β· MVC |
| ORM | Prisma Β· Sequelize Β· None |
| Database | PostgreSQL Β· MySQL Β· SQLite Β· None |
| Logger | Winston Β· Pino Β· None |
| Testing | Vitest Β· Jest Β· None |
| Docker | Dockerfile + docker-compose |
- β
TypeScript +
tsxhot-reload dev server + Path Aliases (@/) - β Biome β 20x faster linting and formatting (replaces ESLint/Prettier)
- β Zod env validation on startup β fails fast on bad config
- β
Global centralized error handler β
ApiError,ZodError, unknown errors all handled - β
Request validation middleware via
validate(schema) - β
ApiErrorβ custom class with static factories (.notFound(),.unauthorized(), etc.) - β
ApiResponseβ consistent JSON response helpers - β
asyncHandlerβ wraps async routes, no try/catch needed - β Helmet + CORS + compression + rate limiter
- β Graceful shutdown (SIGTERM / SIGINT)
- β Multi-stage Dockerfile with healthcheck
- β docker-compose with correct DB service
- β Automated OpenAPI (Swagger) β Zero-JSDoc documentation via Zod schemas
create-express-forge/
βββ packages/
β βββ create-express-forge/ β The published CLI
β βββ mcp/ β @create-express-forge/mcp Server
β βββ typescript-config/ β Shared internal TS config
β βββ lint-config/ β Shared internal Biome/Lint config
βββ examples/
β βββ modular-postgres-prisma/ β Pre-generated example
βββ .github/workflows/ β CI + Release
Create Express Forge is designed to be AI-friendly. We provide a built-in MCP (Model Context Protocol) server that lets you chat with your AI assistant about the project, fetch documentation, and generate scaffolding commands.
You can run the MCP server directly via npx (recommended) or by building the source.
Option 1: Using npx (Recommended)
Add this to your Claude Desktop config or other MCP client:
{
"mcpServers": {
"create-express-forge": {
"command": "npx",
"args": ["-y", "@create-express-forge/mcp"]
}
}
}Option 2: From Source
- Build the project:
pnpm build - Add to your MCP Client:
{
"mcpServers": {
"create-express-forge": {
"command": "node",
"args": ["/absolute/path/to/express-cli/packages/mcp/dist/index.js"]
}
}
}We also provide machine-readable documentation files for LLMs:
llms.txt: Project summaryllms-full.txt: Full documentation contextai.json: Capability manifest and CLI flags
Documentation for the legacy v3.x (LTS) version is available at https://code-y02.github.io/express-cli/v3/.
To scaffold a project using v3.x, run:
npx create-express-forge@3.3.2 [project-name]See CONTRIBUTING.md.
| Branch | npm tag | Description |
|---|---|---|
main |
latest |
Stable releases |
next |
next |
Pre-releases / beta |
MIT Β© Yatharth Lakhate