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-oss

v0.0.2

Published

A CLI tool to recurisively find all the npm modules in your project and document them along with their license

Readme

Node OSS

This is a simple npm module for documenting the OSS in your node.js project.

How it works

node-oss piggy packs off of a native npm function npm list. This function recursively returns all the npm modules in your project. node-oss uses this list and finds all the unique projects as npm's nested nature produces many duplicates. It then scrapes the web to find the license for each npm module. Finally it returns a .CSV listing all the modules alphabetically along with their licenses.

What if node-oss fails to find the license?

If it fails to scrape the license, node-oss will place the url for the npm package in its place so you can do what you need to do to find it yourself.

How about non-npm open source?

Assuming you wish to document all the OSS used in your node.js project, you may inform node-oss of root OSS project (like node.js itself) by add a file called osslist.json to your root directory. In osslist.json you can enumerate further OSS projects (see below).

There is also a feature to parse front end projects, documentation coming soon.

Usage

To use node-oss simple run the following command:

 sudo npm install -g node-oss
 

(Note this package does not work in windows! and likely never will.) After you have it installed simple cd to your root directory and run

 node-oss
 

and watch the data come back in your terminal. When its done it will write a .CSV file to the directory called openSource-[date].csv.

If you wish you may declare further OSS to be included in the .CSV, by adding osslist.json to the root directory. Here is an example of how this file is to be formatted:

 {
      "OSS" : {
           "Nodejs" : {
                "url"     : "https://github.com/joyent/node",
                "license" : "https://raw.github.com/joyent/node/master/LICENSE"
           },
           "Another Project" : {
                "license" : "MIT"
           },
           "Yet Another" : {
                "url"     : "path/for/your/refference",
                "license" : "BSD"
           }
      }
 }
 

including the url is entirely optional right now, but may have a use in the future. For the moment its just for your reffernce as a part of documentaion.