AI News Hub Logo

AI News Hub

I built create-fast-express-structure to stop rebuilding the same Express setup every time

DEV Community
Youssef Selk

Every time I started a new Express.js project, I ended up repeating the same work. Create the folders. So I decided to build a CLI for it. create-fast-express-structure is a production-focused scaffolder for Express.js apps with a clean MVC structure and optional features you can actually choose based on your project. A lot of generators either feel too minimal or too opinionated. Sometimes you just want: a solid MVC base clean structure good defaults optional add-ons only when you need them a setup that does not look like a toy project I wanted something that works for real projects, not just hello-world demos. With one command, you can generate an Express.js project with support for: TypeScript or JavaScript ES Modules or CommonJS minimal MVC structure by default optional security middleware optional Tailwind + EJS views optional JWT auth starter and RBAC optional MongoDB/Mongoose or PostgreSQL with Prisma or Drizzle optional Vitest or Jest optional ESLint or Biome Prettier, Docker, Git, Husky, Commitlint dry-run, skip-install, presets, and CI-friendly flags npm create fast-express-structure@latest my-ap Or with more control: npx create-fast-express-structure my-api --template secure-api --language ts --module esm A few more examples: fes my-api --yes --skip-install fes my-api --auth --validation --rate-limit --env fes data-api --db postgresql --orm prisma --env --no-tailwind fes my-api --dry-run --template mvc-full I did not want the CLI to dump everything into the project whether the user needs it or not. So the prompts are dynamic. I’m still improving it, and I’d really like feedback from people who build Express APIs in real projects. What would you expect from a scaffolding tool like this? If you do not choose auth, it does not keep asking auth-related questions. The goal was simple: keep the experience clean, but still powerful. NPM: https://www.npmjs.com/package/create-fast-express-structure GitHub: https://github.com/YoussefSelk/fast-express-structure