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-nem-api

v0.3.0

Published

Boilerplate code for REST API with MongoDB, Node.js and Express

Readme

NEM API

Boilerplate for REST API, that can be used as a starting point for various projects based on REST APIs with users related functions already implemented.

Technological Stack

The code is based on Node.js, Express and MongoDB. In terms of testing there is also Mocha framework inital configuration added.

Libraries

  • bcrypt
  • chai
  • dotenv
  • express
  • jsonwebtoken
  • mocha
  • mongo-sanitize
  • mongoose
  • supertest

Installation

  1. Install it globally with command npm i create-nem-api -g
  2. Create new project with command npx create-nem-api <nameofyourapp>

API Routes

Users routes can be found here

Source Code

Source code can be found here

Configuration

  1. After cloning the repository install dependencies with the command npm install / yarn install
  2. Create .env file in the main directory
  3. Create MongoDB cluster and database.
  4. Add your database address to the .env file as MONGO_URI=<yourDBaddress>
  5. Add test database address to the .env file as MONGO_URI_TEST=<yourDBaddress>
  6. Add SendInBlue API key to the .env file as SI_APIKEY=<yourSendInBlueAPIaddress>
  7. Add SendInBlue email address to the .env file as SI_EMAIL=<yourSendInBlueEmailAddress>
  8. Add SendInBlue SMTP Endpoint, port, and sender addresses as
SMTP_ENDPOINT=<smtpEndpoint>
SMTP_PORT=<smtpPort>
SENDER_EMAIL=<email>
  1. Add JWT secret key (it's up to your personal choice) to the .env file as JWT_SECRET=<yourJWTsecretKey>
  2. Type in npm start to run the server