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

create-nodets-app-nish

v1.0.8

Published

Command line tool to create a new Node.js + Express + MongoDB + TypeScript project template

Readme

create-nodets-app-nish

🚀 A command-line tool to create a new Node.js + Express + MongoDB + TypeScript project with best practices and sensible defaults.

Installation

npm create nodets-app-nish

Or with a project name:

npm create nodets-app-nish my-app

Usage

Interactive Mode

npm create nodets-app-nish

You'll be prompted to enter your project name.

With Project Name

npm create nodets-app-nish my-awesome-app
cd my-awesome-app
npm install
npm run dev

What's Included

The generated project includes:

  • TypeScript - Full TypeScript support out of the box
  • 🚀 Express.js - Fast and lightweight web framework
  • 🗄️ MongoDB - Document database with Mongoose ODM
  • 🔐 Authentication - JWT tokens with bcrypt password hashing
  • 📧 Email Integration - Nodemailer for email sending
  • 🏗️ Clean Architecture - Well-organized folder structure
  • ♻️ Hot Reload - Nodemon for development
  • 🏭 Production Ready - Build scripts for compilation

Package Contents

templates/
└── nodejs-typescript/
    ├── src/
    │   ├── index.ts           # Entry point
    │   ├── app.ts             # Express app config
    │   ├── admin/             # Admin module
    │   │   └── model.register.ts
    │   ├── controllers/        # Route controllers
    │   ├── db/                 # Database setup
    │   ├── interface/          # TypeScript interfaces
    │   ├── middlewares/        # Custom middlewares
    │   ├── models/             # Mongoose models
    │   ├── routers/            # API routes
    │   └── utils/              # Helper functions
    ├── package.json
    ├── tsconfig.json
    ├── .env.example
    └── .gitignore

bin/
└── index.js                    # CLI entry point

Getting Started with Generated Project

cd my-app
npm install
cp .env.example .env
# Edit .env with your configuration
npm run dev

Available Scripts

npm run dev      # Start development server with hot reload
npm run build    # Build TypeScript to JavaScript
npm start        # Run compiled application

Configuration

The generated project includes a .env.example file. Copy it to .env and configure:

PORT=3000
MONGODB_URI=mongodb://localhost:27017/your-app
JWT_SECRET=your-secret-key
CORS_ORIGIN=http://localhost:3000

# Email Configuration
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
[email protected]
SMTP_PASS=your-app-password
[email protected]

Features

Admin Model with Authentication

  • User registration with password hashing (bcrypt)
  • JWT token generation
  • Password verification
  • MongoDB/Mongoose integration

Utility Functions

  • apiResponse - Standardized API response formatter
  • asyncHandler - Express async/await error handling
  • login - Login utility for different models
  • sendMail - Email sending via SMTP

Production Ready

  • TypeScript strict mode enabled
  • ESM modules support
  • Comprehensive tsconfig setup
  • Security best practices included

How It Works

  1. User runs npm create nodets-app my-app
  2. CLI prompts for project name
  3. Creates project directory
  4. Copies template files
  5. Updates package.json with project name
  6. Ready to install and develop!

Publishing to npm

  1. Create npm account at npmjs.com
  2. Login locally: npm login
  3. Publish: npm publish

After publishing, users can use your template:

npx create-nodets-app my-project

License

ISC

Author

krish112407


Made with ❤️ for Node.js developers | Based on professional backend architecture