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

generator-express-micro

v0.1.5

Published

Generator for APIs using Express as a microservice server

Readme

The Express Micro API Generator

David Status bitHound Score

Starting a project from scratch with Express is easy -- there are already countless generators that do so. However, these projects are entirely based around building websites. In an age of microservices and small APIs, the standard structure of an Express app is cumbersome and does not help with the separation of concerns we expect.

The Express Micro API Generator is here to help you with scaffolding all the boring details of an API. Logging? Got you covered, bunyan and its companion middleware are already set up from the start. Storage? Well, we don't enforce database designs, but repositories come with Rx and events bundled. Authentication? We put jwt, but you can swap it for Passport.JS or passwordless!

Installing

Do I have to explain everything to you?

npm install -g generator-express-micro

There. Copy and paste. Doesn't get any easier.

What's included

The following is a short list of all the goodies we install:

  • bluebird
  • bunyan
  • cors
  • jsonwebtoken
  • lodash
  • request
  • rx
  • webworker-threads

Don't like something? Send a pull request with an option to make it optional! Most of these libs are only loosely coupled with the app, so it's not difficult. ;)

Commands

We assume you already set up your local repo and project folder. You know, the place where you will put your README.md, .gitignore and LICENSE.md (remember your license!). If you haven't, just mkdir my-awesome-project and cd inside it.

yo express-micro

Will create all the folders, files and stuff you need for the project to work. It will ask you for a project name! Usually it's the same as the parent folder. Be creative!

yo express-micro:controller myController

Will create a new controller. It will not bind it to a route or to the app just yet, working on that! (we're still far from 1.0!)

Other commands are:

yo express-micro:middleware middleware
yo express-micro:repository myRepo
yo express-micro:service myService

Stats

Because why not?

NPM