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 🙏

© 2024 – Pkg Stats / Ryan Hefner

momino

v0.1.2

Published

Monitors the health of your project's dependencies

Downloads

6

Readme

Momino

Momino is an npm package adoption advisor: it inspects your project's dependencies in order to assign a score based on heuristics about development continuity, community health and global adoption.

Momino

Momino can be used in test mode and integrated in your favourite CI environment or pre-commit hooks.

Momino Test Mode

Install

Momino can be installed as a global npm package:

npm install -g momino

It can also be installed locally:

npm install --save momino
npx momino # Runs local momino installation

Configuration

Momino should work out of the box without any further configuration but you should consider configuring it with a GitHub personal access token to avoid reaching GitHub's guest API limit. You can generate a personal access token from your GitHub's account page.

To input the token you can simply run the configuration wizard:

momino configure

If you don't want to use a personal access token you can just setup momino to ask for your credentials when needed, just add the -A option when executing momino:

momino -A react # Will prompt for your GitHub user and pass

Usage

Running momino without any arguments will analyze the dependencies of any package.json file in the current directory:

momino

You can ask momino to analyze a package which is not currently a dependency yet by using the package name as the first argument:

momino p-queue # This is an alias of "momino study p-queue"

You can also use the --why flag to have momino output detailed information about why and how the score was calculated.

momino chalk --why

You can view all the other supported options by running:

momino help study

Project configuration

You can create a custom configuration file in the root of your project which will be used by default every time momino is run in that directory. The name of the file must be .mominorc.json, the content is a JSON file and the supported options are the same that are supported on the command line.

A custom configuration can look something like:

{
    "ranges": [1000, 2000],
    "allowed": ["data-store"],
    "banned": ["lodash"]
}

The options specified in the configuration file can still be overriden on the command line.

How it works

When given the name of a package momino attempts to extract some information from NPM. It then checks if there's an associated repository and if there is, it starts to analyze it in order to extract meaningful information about the develpment process, the community, etc. All the data collected is then mapped to some value, using custom heuristics, and then a simple linear regression is used on some sample data to output the final value.

This algorithm is far from perfect but it still manages to give useful insights.

License

MIT © Daniele Rapagnani