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

memgo

v1.0.0

Published

An in-memory MongoDB Data API, primarily useful for integration test suites.

Readme

Memgo

An in-memory MongoDB Data API.

This is primarily meant for integration test suites.

Install

The normal way:

npm install --save-dev memgo

Using

This is meant to be used as a CLI tool, so you would start it simply like this:

$ memgo
In-memory MongoDB instance started at mongodb://127.0.0.1:27017/
2022-05-07T03:06:21.997Z Data API running on port 3007

Options

There aren't many options to configure, just these:

  • apiPort - The port that the Data API uses. Default: 3007
  • mongodbPort - The port that the in-memory MongoDB instance uses. Default: 27017
  • key - To require an authentication key for the Data API. Set the flag multiple times for multiple keys. Default: no authentication required.
  • verbose - Set this flag if the Data API should be more verbose.

Here are some examples:

# default ports, but add a key
memgo --key battery-horse-staple
# add multiple keys
memgo --key secret1 --key secret2
# set the data api to a new port
memgo --apiPort 5001
# use mongodb on a different port
memgo --mongodbPort 27018

MongoDB

The in-memory database is provided by the excellent mongodb-memory-server library.

From their documentation:

This package spins up an actual/real MongoDB server programmatically from within nodejs, for testing or mocking during development. By default it holds the data in memory. A fresh spun up mongod process takes about 7Mb of memory. The server will allow you to connect your favorite ODM or client library to the MongoDB server and run integration tests isolated from each other.

On install, this package downloads the latest MongoDB binaries and saves them to a cache folder. (only mongodb-memory-server-core does not download on postinstall)

Data API

The official MongoDB Atlas Data API is mocked using the mongodb-local-data-api library, which attempts to match it as exactly as possible.

License

Published and released under the Very Open License.

If you need a commercial license, contact me here.