A lightweight, opinionated CLI tool for scaffolding production-ready backend projects in seconds.
Setting up a new backend project means repeating the same setup tasks: configuring Express, connecting to MongoDB, organizing folder structures, setting up TypeScript, and writing basic middleware. scafflr eliminates this busywork by generating battle-tested starter templates so you can focus on what matters—building your application.
Interactive Project Initialization
Run scafflr init and answer a few prompts to generate a complete project structure with sensible defaults.
Multiple Templates
Choose between JavaScript or TypeScript templates, both featuring Express.js and MongoDB integration out of the box.
Zero Configuration
Get a working backend instantly with proper folder structure, environment setup, and essential middleware pre-configured.
Next additions:
- Module Generators - Generate authentication, file uploads, payments, and more with a single command
- Additional Templates - Go, Spring Boot, Python/FastAPI, and other popular backend stacks
- Plugin System - Extend scafflr with custom generators and templates
Clone and install:
git clone https://github.com/harshith-1008/scafflr-cli.git
cd scafflr-cli
pnpm installLink the CLI globally:
pnpm run link-cliscafflr initFollow the prompts to:
- Name your project
- Select a template (Express + MongoDB in JS or TS)
- Watch scafflr generate your project structure
Navigate to your new project and start building:
cd your-project-name
pnpm install
pnpm devWant to contribute or modify scafflr? Here's how:
Run in development mode:
pnpm devBuild the TypeScript source:
pnpm buildTest your changes:
pnpm run link-cli
scafflr initBuilt with pnpm, TypeScript.