npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ultimate-node-generator

v1.1.0

Published

A CLI tool to generate production-ready Node.js project boilerplates with interactive configuration

Readme

Ultimate Node Generator 🚀

A powerful CLI tool to generate production-ready Node.js project boilerplates with interactive configuration.

Features

  • Interactive CLI - Easy-to-use prompts for project configuration
  • 🗄️ Multiple Databases - MongoDB, PostgreSQL, MySQL support
  • 🔧 ORM/ODM Options - Mongoose, Prisma, Sequelize, TypeORM
  • 🔐 Authentication - JWT and Passport.js (Local, Google)
  • 📦 Additional Features - Email, file upload, logging, rate limiting, validation
  • 🎯 TypeScript Support - Optional TypeScript configuration
  • 📁 Best Practices - Well-organized folder structure
  • Quick Setup - Get started in seconds

Installation

You can use this package directly with npx (no installation required):

npx ultimate-node-generator my-project

Or install globally:

npm install -g ultimate-node-generator
ultimate-node-generator my-project

Usage

  1. Run the command:
npx ultimate-node-generator my-awesome-project
  1. Answer the interactive prompts:

    • Project name
    • Database selection (MongoDB, PostgreSQL, MySQL, None)
    • ORM/ODM choice (based on database)
    • Authentication method (JWT, Passport.js, None)
    • TypeScript preference
    • Additional features (email, file upload, logging, etc.)
    • Git initialization
  2. Navigate to your project and start coding:

cd my-awesome-project
npm run dev

What Gets Generated?

Project Structure

my-project/
├── src/
│   ├── config/          # Database and other configurations
│   ├── controllers/     # Route controllers
│   ├── middleware/      # Custom middleware (auth, error handling)
│   ├── models/          # Database models
│   ├── routes/          # API routes
│   ├── services/        # Business logic
│   ├── utils/           # Utility functions
│   └── server.js        # Application entry point
├── .env.example         # Environment variables template
├── .gitignore
├── package.json
└── README.md

Features Based on Configuration

MongoDB + Mongoose + JWT

  • Mongoose connection setup
  • User model with authentication fields
  • JWT-based authentication (register, login, profile)
  • Auth middleware for protected routes

PostgreSQL + Prisma

  • Prisma schema configuration
  • Database connection setup
  • Prisma Client integration

Additional Features

  • Email Service: Nodemailer configuration
  • File Upload: Multer middleware
  • Logging: Winston logger setup
  • Rate Limiting: Express rate limit middleware
  • Validation: Joi validation utilities
  • CORS: Cross-origin resource sharing enabled

Example

$ npx ultimate-node-generator my-api

🚀 Welcome to Ultimate Node Generator!

? Project name: my-api
? Select database: MongoDB
? Select ORM/ODM: Mongoose
? Select authentication method: JWT
? Use TypeScript? No
? Select additional features: Logging, Rate Limiting, CORS
? Initialize Git repository? Yes

📁 Creating project at /path/to/my-api...

✓ Project structure created
✓ Files generated
✓ package.json created
✓ Dependencies installed
✓ Git repository initialized

✨ Success! Your project is ready.

To get started:

  cd my-api
  npm run dev

📝 Don't forget to:
  1. Copy .env.example to .env
  2. Update your database connection string in .env
  3. Read the README.md for more information

Environment Variables

After project generation, copy .env.example to .env and configure:

# Server
PORT=5000
NODE_ENV=development

# Database (example for MongoDB)
MONGODB_URI=mongodb://localhost:27017/my-api

# JWT (if selected)
JWT_SECRET=your-super-secret-jwt-key
JWT_EXPIRE=7d

# Email (if selected)
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
[email protected]
EMAIL_PASSWORD=your-password

Supported Options

Databases

  • MongoDB
  • PostgreSQL
  • MySQL
  • None

ORMs/ODMs

  • For MongoDB: Mongoose, Prisma
  • For PostgreSQL/MySQL: Prisma, Sequelize, TypeORM
  • None

Authentication

  • JWT (JSON Web Tokens)
  • Passport.js (Local Strategy)
  • Passport.js (Google OAuth)
  • None

Additional Features

  • Email Service (Nodemailer)
  • File Upload (Multer)
  • Logging (Winston)
  • Rate Limiting
  • CORS
  • Validation (Joi)

Requirements

  • Node.js 14.0.0 or higher
  • npm or yarn

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

Author

Created with ❤️ for the Node.js community


Happy Coding! 🎉