Skip to content

harshith-1008/scafflr-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scafflr-cli

A lightweight, opinionated CLI tool for scaffolding production-ready backend projects in seconds.

Why scafflr?

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.

Current Features

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.

Roadmap

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

Quick Start

Installation

Clone and install:

git clone https://github.com/harshith-1008/scafflr-cli.git
cd scafflr-cli
pnpm install

Link the CLI globally:

pnpm run link-cli

Create Your First Project

scafflr init

Follow the prompts to:

  1. Name your project
  2. Select a template (Express + MongoDB in JS or TS)
  3. Watch scafflr generate your project structure

Navigate to your new project and start building:

cd your-project-name
pnpm install
pnpm dev

Development

Want to contribute or modify scafflr? Here's how:

Run in development mode:

pnpm dev

Build the TypeScript source:

pnpm build

Test your changes:

pnpm run link-cli
scafflr init

License

License


Built with pnpm, TypeScript.

About

Instantly create clean, scalable backend boilerplates with one CLI command.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published