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

node-express-kit

v1.0.7

Published

A simple and ready-to-use Express.js starter kit with MongoDB, JWT authentication, password reset, and proper folder structure using the MVC pattern.

Readme

Node.js + Express Backend Folder Structure & Starter Template

A ready-to-use starter template for building scalable backend applications using Node.js, Express, and MongoDB. Designed with a clean folder structure and pre-integrated packages to kickstart your development — ideal for real-world projects with authentication, error handling, and more out of the box.


🚀 Quick Start

Run this to create a new Express.js project:

npx node-express-kit your-app-name

Folder Structure

config/ → Environment and database config (e.g., db.js, cloudinary.js) controllers/ → Request handlers and business logic middleware/ → Custom middleware (auth, error handling, logging) models/ → Mongoose schemas for MongoDB collections routes/ → Route definitions services/ → Third-party service handlers (email, cloud uploads, etc.) utils/ → Helper functions (token generator, OTP handler, etc.) validators/ → Input validation logic (e.g., using Joi or express-validator) uploads/ → File upload directory (optional) app.js → Initializes Express, middleware, and routes server.js → Entry point to launch the Node server


Integrated Packages

This starter kit comes pre-configured with essential npm packages for rapid backend development:

  • express – Web server framework
  • cookie-parser – To handle HTTP cookies
  • bcryptjs – For secure password hashing
  • mongoose – ODM to interact with MongoDB
  • jsonwebtoken (JWT) – For token-based authentication
  • cors – Enable CORS for cross-origin requests
  • dotenv – Manage environment variables
  • nodemon – Auto-restart server in development

Features

  • Default error handling (includes MongoDB errors & async error catching)
  • Default success response handler
  • User registration & login
  • JWT-based route protection with role-based authorization
  • Password hashing with bcryptjs
  • Cookie-based auth handling
  • CORS setup included
  • MongoDB integration using Mongoose
  • Scalable MVC architecture for long-term projects
  • Environment-based configuration with dotenv
  • Basic APIs: register-user, login, logout, profile, view-users (admin only)

Thank you for using this npm package. If you have suggestions for additional features or improvements, feel free to share!