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

nodex_gen

v1.0.2

Published

A Node.js project generator CLI tool to quickly scaffold Express applications with authentication, configurations, and pre-installed dependencies.

Readme

Nodex Gen - Node.js Project Generator 🚀

Nodex Gen is a comprehensive and interactive Command Line Interface (CLI) tool crafted to streamline the process of bootstrapping Node.js applications. It eliminates the repetitive setup of folders, configuration files, and core dependencies, allowing you to focus immediately on building business logic.

Whether you are a beginner looking for a best-practice starting point or an experienced developer needing a quick prototype, Nodex Gen has you covered.

🌟 Why Nodex Gen?

  • ⚡ Efficiency: Save 15-30 minutes of setup time per project.
  • 🏗️ Standards: Starts your project with a clean, industry-standard Model-Controller-Service architecture.
  • 🛡️ Security: "With Auth" mode provides robust security features (Password Hashing, JWT, standard headers) out of the box.
  • 📘 TypeScript Support: First-class support for TypeScript with a pre-configured tsconfig.json and strict type safety settings.

✨ Key Features

1. 🖥️ Interactive Setup

Forget remembering long command-line arguments. Our CLI guides you through every step:

  • Project Naming: Sets up your package.json name.
  • Language: One-click selection between JavaScript (ES6+ via CommonJS) or TypeScript.
  • Authentication: Choose a full auth scaffold or a blank slate.
  • Package Selection: Interactively toggle libraries like Mongoose, CORS, Dotenv, etc.

2. 🔐 Built-in Authentication System

If you choose "With Auth", you get a production-ready auth module:

  • User Model: Complete Mongoose schema with validation.
  • Secure Passwords: Automatic hashing using bcryptjs.
  • JWT & Sessions: Stateless authentication with JSON Web Tokens.
  • Flows:
    • Registration with Email Verification.
    • Login & Logout.
    • Password Reset & OTP implementation.
    • Protected Route Middleware.

3. 📂 Modular Architecture

The generated project organization promotes scalability:

  • src/controllers: Handles incoming HTTP requests and responses.
  • src/services: Contains business logic, keeping controllers clean.
  • src/models: Database schemas (Mongoose).
  • src/routes: API route definitions.
  • src/middlewares: Express middlewares (Auth, Error Handling, Logging).
  • src/config: centralized configuration (DB connection, Nodemailer, etc.).

4. ⚙️ Automatic Configuration

  • Dependencies: Automatically runs npm install for you.
  • Dev Server: Sets up nodemon (JS) or ts-node-dev (TS) and starts the server.
  • Environment: Creates a .env file template.
  • TypeScript: Generates a valid tsconfig.json compatible with the project structure.

📦 Installation

Option 1: Run with npx (Recommended)

This ensures you always use the latest version without cluttering your global packages.

npx nodex_gen

Option 2: Install Globally

If you prefer to have the tool installed globally on your machine:

npm install -g nodex_gen

Global Usage

Once installed, you can run the tool from any directory by simply typing:

nodex_gen

This is useful if you plan to generate multiple projects frequently.

📔 Usage Guide

After running the tool, follow these steps to get your project running:

  1. Navigate to your project:

    cd <your-project-name>
  2. Environment Setup: Open the .env file and configure your variables (MongoDB URI, JWT Secret, SMTP credentials, etc.).

  3. Start Development: The tool automatically tries to start the server. If you stopped it, simply run:

    npm run dev

🧩 Generated Tech Stack

The projects created by Nodex Gen harness the power of:

  • Runtime: Node.js
  • Framework: Express.js
  • Database: MongoDB (via Mongoose)
  • Language: JavaScript (ES6+) or TypeScript
  • Tools:
    • nodemon / ts-node-dev (Hot Reloading)
    • dotenv (Environment Management)
    • cors (Cross-Origin Resource Sharing)
    • morgan (HTTP Logging)

❓ Troubleshooting

Q: "Command not found" after global install? A: Ensure your npm global bin directory is in your system's PATH. Alternatively, use npx nodex_gen.

Q: TypeScript "moduleResolution" errors? A: Ensure you are using the generated tsconfig.json which is specifically tuned for this project structure ("moduleResolution": "node", "esm": false for ts-node).

Q: MongoDB connection fails? A: Make sure you have MongoDB running locally (mongodb://localhost:27017) or update the MONGO_URI in .env to point to your Atlas cluster.

📄 License

This project is open-source and available under the ISC License.