Zero configuration • TypeScript ready • Multiple databases • Developer-friendly
https://talhabilal-dev.github.io/create-node-spark.github.io/
We're thrilled to announce that Phase 2 development is now underway! Phase 1 has been successfully completed with all core features implemented. Phase 2 brings exciting new capabilities including PostgreSQL + Prisma integration, Fastify framework support, and enhanced project customization. Stay tuned for groundbreaking updates!
create-node-spark is a powerful, developer-focused CLI tool that eliminates the tedious setup process for Node.js backend projects. Inspired by industry leaders like Create React App and Vite, it provides instant scaffolding for production-ready REST APIs with modern best practices built-in.
Whether you're a beginner seeking guidance or a seasoned developer avoiding repetitive setup, create-node-spark gets you coding in seconds, not hours.
- 🚀 Rapid prototyping and MVP development
- 👨💻 Solo developers and small teams
- 🏢 Enterprise teams needing consistent project structure
- 📚 Learning projects with industry-standard setup
- 🔄 API-first development workflows
Get up and running in under 30 seconds:
# Using npx (recommended - always latest version)
npx create-node-spark@latest
# Or install globally
npm install -g create-node-spark
create-node-spark
That's it! Follow the interactive prompts and you'll have a fully configured backend ready for development.
|
|
📱 Method 1: NPX (Recommended)
npx create-node-spark@latest
✅ Always uses the latest version
✅ No global installation required
✅ Perfect for one-time usage
🌍 Method 2: Global Installation
npm install -g create-node-spark
create-node-spark
✅ Available from anywhere
✅ Faster subsequent usage
✅ Ideal for frequent use
🔧 Method 3: Development Setup
git clone https://github.com/talhabilal-dev/create-node-spark.git
cd create-node-spark
npm install
npm link
✅ Full source code access
✅ Contributing ready
✅ Latest development features
The CLI guides you through a seamless setup process:
- 📝 Project Name: Choose your project identifier
- 📦 Package Manager: Select npm or pnpm
- 💻 Language: JavaScript or TypeScript
- 🚀 Framework: Express.js, Fastify, or vanilla Node.js
- 🗄️ Database: MongoDB, MySQL, PostgreSQL, or none
- ⚙️ Features: ESLint, Multer, and more
⚡ Spark your Node.js backend, skip the boilerplate.
create-node-spark is a powerful CLI (Command Line Interface) tool designed to scaffold production-ready Node.js backend projects with ease. Inspired by tools like Create Next App and Vite, this tool removes the boilerplate pain by generating a clean, structured, and configurable Node.js project — so you can focus on building features, not setting up folders and configs.
Whether you’re a beginner wanting a head start or a seasoned developer tired of setting up the same repetitive structure, create-node-spark helps you spark your next backend project in seconds.
create-node-spark is a flexible scaffolding tool built specifically for Node.js backend projects, focusing on REST API development.
Here’s what it sets up for you under the hood:
-
✅ Choose between JavaScript or TypeScript at scaffold time
-
✅ Uses modern ESM (ECMAScript Modules) — no old CommonJS clutter
-
✅ Built on Express.js & Fastify, popular and battle-tested Node.js frameworks
-
✅ Pre-configured for MongoDB integration with Mongoose
-
✅ Pre-configured for MySQL integration with Knex.js and mysql2
-
✅ Pre-configured for PostgreSQL integration with Prisma ORM
-
✅ Sets up environment variables (.env) out of the box
-
✅ Includes an optional Multer setup to handle file uploads
-
✅ Includes an optional ESLint setup to keep your codebase clean and consistent
-
✅ Depends only on Inquirer (for CLI prompts) — keeping external dependencies light and minimal
Every project follows a professional, scalable structure:
my-awesome-api/
├── 📁 public/ # Static assets
│ ├── css/ # Stylesheets
│ ├── js/ # Client-side scripts
│ ├── images/ # Image assets
│ └── temp/ # Temporary files
├── 📁 src/ # Source code
│ ├── config/ # Configuration files
│ ├── controllers/ # Route handlers & business logic
│ ├── middlewares/ # Custom middleware functions
│ ├── models/ # Database models (Mongoose/Knex)
│ ├── routes/ # API route definitions
│ ├── services/ # Business logic services
│ ├── utils/ # Utility functions
│ └── index.js/.ts # Application entry point
├── 📄 package.json # Dependencies & scripts
├── 📄 .env # Environment variables
├── 📄 .eslintrc.js # Code quality rules (if enabled)
├── 📄 .prettierrc # Code formatting (if enabled)
└── 📄 README.md # Project documentation
|
|
|
- ✅ Multi-language Support: JavaScript & TypeScript
- ✅ Package Manager Choice: npm & pnpm
- ✅ Framework Integration: Express.js & Fastify
- ✅ Database Support: MongoDB, MySQL & PostgreSQL
- ✅ Developer Tools: ESLint & Prettier
- ✅ File Handling: Multer integration
- ✅ Modern Standards: ESM modules
- ✅ Environment Setup: Automatic .env configuration
- ✅ PostgreSQL Integration: Prisma ORM support
- ✅ Fastify Framework: High-performance alternative
- 🔄 Enhanced Customization: Granular folder structure control
- 🔄 Template System: Pre-built project templates
- 🔄 Testing Setup: Automated test configuration
- 📋 GraphQL Support: Complete GraphQL API scaffolding
- 🐳 Docker Integration: Containerization out-of-the-box
- 🔄 CI/CD Templates: GitHub Actions & deployment configs
- 🔌 Plugin System: Extensible architecture
- 🏗️ Project Templates: Industry-specific starter templates
Get from idea to coding in under 30 seconds. No more hours spent on project setup. |
Built specifically for Node.js backend development with modern best practices. |
Choose your stack: TypeScript/JavaScript, npm/pnpm, MongoDB/MySQL. |
Minimal dependencies keep your projects fast and maintainable. |
Professional folder structure and configurations from day one. |
Regular updates and new features based on community feedback. |
🚀 Create a TypeScript API with MongoDB
npx create-node-spark@latest
# Select: TypeScript → Express → MongoDB → ESLint
cd my-api
npm run dev
Your API is now running with TypeScript, MongoDB connection, and ESLint configured!
🐘 Create a PostgreSQL API with Prisma
npx create-node-spark@latest
# Select: TypeScript → Express/Fastify → PostgreSQL → ESLint
cd my-api
npm run dev
Get a modern API with PostgreSQL, Prisma ORM, and full type safety!
⚡ Create a Fastify API with TypeScript
npx create-node-spark@latest my-fast-api --lang ts --framework fastify --db postgresql --yes
cd my-fast-api
npm run dev
Experience blazing-fast performance with Fastify and TypeScript!
⚡ Create a JavaScript API with MySQL
npx create-node-spark@latest
# Select: JavaScript → Express → MySQL → Skip ESLint
cd my-api
npm start
Perfect for rapid prototyping with MySQL database integration!
🛠️ Create a minimal Node.js server
npx create-node-spark@latest
# Select: JavaScript → None → No Database → Skip all features
cd my-server
npm start
Clean Node.js HTTP server ready for custom implementation!
Every generated project includes these npm scripts:
npm start # Start the production server
npm run dev # Start development server with auto-reload
npm run build # Build TypeScript to JavaScript (TS projects)
npm run lint # Check code quality with ESLint
npm run lint:fix # Auto-fix ESLint issues
npm run format # Format code with Prettier
We welcome contributions from developers of all skill levels! Here's how you can help make create-node-spark even better:
- 🐛 Bug Reports: Found an issue? Let us know!
- ✨ Feature Requests: Have ideas? We'd love to hear them!
- 📝 Documentation: Help improve our guides and examples
- 💻 Code Contributions: Submit PRs for new features or fixes
- 🧪 Testing: Help us test new features and report feedback
# 1. Fork & clone the repository
git clone https://github.com/talhabilal-dev/create-node-spark.git
cd create-node-spark
# 2. Install dependencies
npm install
# 3. Create a feature branch
git checkout -b feature/amazing-feature
# 4. Make your changes and test
npm run build
npm start
# 5. Submit a pull request
git add .
git commit -m "Add amazing feature"
git push origin feature/amazing-feature
- ✅ Follow the existing code style and structure
- ✅ Write clear, descriptive commit messages
- ✅ Test your changes thoroughly
- ✅ Update documentation if needed
- ✅ Be respectful and collaborative
Join our growing community of developers!
📧 Email: [email protected]
🐛 Issues: GitHub Issues
💬 Discussions: GitHub Discussions
This project is built with love and powered by these amazing technologies:
Node.js Runtime Engine |
![]() TypeScript Type Safety |
![]() MongoDB Database |
![]() MySQL Database |
![]() PostgreSQL Database |