DEV Community

ke jia
ke jia

Posted on • Originally published at npmjs.com

How I Built a CLI That Generates 12 Project Templates in 3 Seconds

Every developer knows the pain: you have a great idea, open your terminal, and then... spend the next 30 minutes setting up boilerplate.

npm create vite@latest my-app -- --template react-ts
cd my-app
npm install
npm install tailwindcss @tailwindcss/vite
# configure tsconfig...
# set up folder structure...
# write boilerplate components...
Enter fullscreen mode Exit fullscreen mode

I got tired of it. So I built ScaffoldX.

What is ScaffoldX?

A zero-dependency CLI that generates complete, production-ready starter code for 12 different project types. One command, 3 seconds, start coding.

npx scaffoldx-cli
# Choose template -> Enter name -> Done!
Enter fullscreen mode Exit fullscreen mode

What's Inside

Template Stack Files
React + Vite TS, Tailwind v4, Vite 6 9
Next.js App Router, TS 8
Express API Prisma, Zod, JWT 8
FastAPI Async, Pydantic, pytest 8
Chrome Extension Manifest V3 6
Discord Bot discord.js v14 3
+ 6 more CLI Tool, Landing Page, Electron, Python Script, Vanilla HTML/CSS, Empty TS ...

Why It's Different

Most "project generators" give you skeleton files that don't actually work. Every ScaffoldX template:

  • Compiles with zero errors
  • Has proper TypeScript strict mode
  • Includes best-practice configs
  • Auto-initializes git
  • Runs immediately after npm install && npm run dev

Tech Stack

Pure Node.js. Zero dependencies. The entire CLI is a single file.

Try It

npx scaffoldx-cli
Enter fullscreen mode Exit fullscreen mode

Available on npm: npmjs.com/package/scaffoldx-cli

What templates should I add next? Drop a comment!


☕ Support This Project

If ScaffoldX saved you time, consider buying me a coffee

🛠️ More Tools by the Same Dev

Check out my other open-source CLI tools:

  • dotguard — Scan .env files for exposed secrets and security risks
  • gitpulse — Git repo analytics dashboard in your terminal
  • snippetx — Code snippet manager for the command line
npx dotguard      # Find leaked secrets
npx gitpulse      # See your repo stats  
npx snippetx      # Manage code snippets
Enter fullscreen mode Exit fullscreen mode

All zero-dependency, pure Node.js, MIT licensed. Happy coding! 🚀

Top comments (0)