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 🙏

© 2025 – Pkg Stats / Ryan Hefner

nim-nodex-init

v1.0.1

Published

nim-nodex-init is a powerful CLI tool that scaffolds a complete Node.js & Express.js app with your preferred database, ORM, authentication system, and organized folder structure — all in seconds.

Readme

🚀 nim-nodex-init

nim-nodex-init is a powerful CLI tool that scaffolds a complete Node.js & Express.js app with your preferred database, ORM, authentication system, and organized folder structure — all in seconds.


📦 Install & Usage

You can use the CLI directly with npx (recommended):

npx nim-nodex-init

Or install it globally if you prefer:

npm install -g nim-nodex-init

Then run it from anywhere with:

nim-nodex-init

⚙️ What It Does

When you run:

npx nim-nodex-init

It guides you through an interactive setup to:

  • 🏷️ Set project name
  • 💻 Choose language: JavaScript or TypeScript
  • 🛢️ Select a database: MongoDB, MySQL, PostgreSQL, or SQLite
  • 🔌 If SQL, choose ORM: Sequelize or Prisma
  • ⚙️ Automatically install dependencies
  • 📁 Generate a fully structured Express project:
    • DB configuration
    • Environment setup
    • Clean project architecture

🧠 Why Use nim-nodex-init?

  • No need to manually configure Express, database, routes, controllers, or middleware.
  • Great for quickly bootstrapping REST APIs.
  • Flexible with JS or TS.
  • Includes modern best practices: JWT, bcrypt, input validation.

🛠️ Tech Stack

  • Node.js
  • Inquirer.js — CLI prompts
  • Chalk — Terminal output styling
  • Execa — Shell command execution
  • fs / path — File generation
  • dotenv — Environment management

💡 How It Works

When you run the command, nim-nodex-init will:

  1. Prompt for:
    • Project name
    • Language: JavaScript or TypeScript
    • Database (MongoDB, MySQL, PostgreSQL, SQLite)
    • ORM (Sequelize or Prisma)
  2. Create a project folder with:
    • Configured server.js or server.ts
    • Connected .env file
    • Installed dependencies
    • JWT auth (register & login)
    • Folder structure: routes, models, controllers, config
  3. Add sample user model and controller
  4. Set up static public directory

✨ Example CLI Interaction

$ npx nim-nodex-init

🛠️  Welcome to nim-nodex-init!

✔ Project name: my-api
✔ Use JavaScript or TypeScript? → JavaScript
✔ Choose a database → MySQL
✔ Choose ORM → Sequelize
✔ Add register/login logic with real hashing? → Yes

📦 Installing packages...
📁 Creating folders and boilerplate...
✅ Setup complete!
👉 cd my-api
👉 npm run dev

📂 Generated Project Structure

your-project/
├── server.js                 # Entry point
├── .env                      # Environment variables (DB_URI, PORT, BASE_URL)
├── public/                   # Static assets
├── config/
│   └── db.js                 # Database connection logic
├── routes/
│   └── AuthRoute.js          # /auth routes
├── controllers/
│   └── AuthController.js     # Register & Login logic
├── models/
│   └── User.js               # User model based on DB/ORM
├── package.json              # Scripts and metadata

🔐 Auth Features

Includes:

  • /auth/register — Create new user with hashed password
  • /auth/login — Authenticate user and return JWT

🧪 Scripts

npm start        # Run app with node
npm run dev      # Run app with nodemon (auto-reloads)

📝 Environment File (.env)

PORT=5000
BASE_URL=http://localhost:5000
DB_URI=mysql://username:password@localhost/dbname
JWT_SECRET=your_jwt_secret_here

🧠 Future Improvements

  • Add CLI flags for non-interactive usage
  • Optional frontend boilerplate integration
  • Testing setup with Jest or Vitest
  • Docker support

📦 Contributing

Feel free to fork, improve, and make PRs — your contributions are welcome!


🙏 Credits

Built by ZaYn Miraj
CLI Creator: @zaynmiraj


🏁 License

MIT © 2025 Zayn Miraj