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

jsdocgen

v0.2.4

Published

JSDoc documentation generator

Readme

Documentation Generator

This project serves as a utility wrapper for JSDoc.

Overview

This package provides the following advantages over using JSDoc by itself:

  • provides ready made configuration that is ready to use out of the box
  • is integrated with git and GitHub Pages

Simply run npm run docPublish to create a gh-pages branch in your repository, generate the documentation from your source, and push it to GitHub. After that all you need to do is find the link under <Project> -> Settings -> GitHub Pages and make it the project website link on the projects home page in GitHub. See the Usage section for more details.

This project will take your README.md file and turn it into a homepage with links to the documentation from your source code as defined by JSDoc. See jsdocgenTest as an example.

Requirements

JSDoc

npm install -g jsdoc

JSDoc cannot be used as library and must be installed globally.

Package.json

Add the following snippets to your package.json file:

Development Dependencies

From NPM
{
   "devDependencies": {
      "jsdocgen": "^0.2.1"
   }
}
From GitHub
{
   "devDependencies": {
      "jsdocgen": "git+https://github.com/h2oboi89/jsdocgen.git#<commit-ish>"
   }
}

<commit-ish> can be any tag, sha, or branch. Default is nothing (master). See here for more information.

Commit-ish | Example ---------- | ----------------------------------------------------------- Nothing | .../jsdocgen.git Branch | .../jsdocgen.git#master Tag | .../jsdocgen.git#v0.2.0 SHA | .../jsdocgen.git#3fbba539739989842d8fbf86ee90bbfbd5cd9ef5

NOTE: First two examples are functionally identical.

Scripts

{
   "scripts": {
      "docClone": "jsdocgen clone",
      "docGenerate": "jsdocgen generate",
      "docPublish": "jsdocgen publish"
   }
}

These provide a means of running jsdocgen. See Usage for more details.

Repository

{
   "repository": {
      "type": "git",
      "url": "<repo SSH link>"
   }
}

This is how jsdocgen will know where to put the documentation.

Get the <repo SSH link> by copying the URL provided by GitHub SSH clone URL.

Example: [email protected]:h2oboi89/jsdocgenTest.git

NOTE: you can use the HTTP clone URL if you so desire, but we recommend the SSH clone URL instead.

Usage

From your project root call the following via npm run <Command>:

Command | Result ------------- | -------------------------------------------------------------------------------- docClone | clones the project repository into ./doc/ and checks out the gh-pages branch docGenerate | generates the documentation using JSDoc docPublish | pushes updated documentation to origin:gh-pages

NOTE: each step will automatically call the preceding step (docPublish -> docGenerate -> docClone)

Advanced

You can tweak the JSDoc settings by modifying jsdoc.json.

You can tweak the GitHub integration by modifying the files found in ./src.

Testing

The jsdocgenTest repository serves as a means to test this project and also provides some examples on how to use JSDoc.