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

jsnotebook2

v0.0.24

Published

Interactive NodeJS Notebook cli-tool

Readme

jsnotebook2

Interactive NodeJS Notebook cli-tool

Rationale

Notes help us think, document, experiment and play with ideas. That's the main reason for creating this project. I'm a big fan of jupyter notebooks, gists, pastebins and cloud documents but I'm still searching for something better to comunicate, express myself and save my JS notes.

Installation

Install the command line cli-tool to have a better experience:

$ npm i -g jsnotebook2
$ jsnotebook2

Otherwise you can try the version online with limited features or view the screencast

Examples

  • Insert math formulas, like the following: \sum i = 1 + 2 + 3 + ... + n
  • Execute javascript code rows by pressing shift+enter during edition, you can repeat this operation multiple times and receive the updatedstdout, stderr
  • To take the most out of the experience you might consider looking into markdown and mathjax language references

Usage

Here's a basic description of the capabilities

  • Select the row type and hit the plus (+) button on the toolbar to create new rows: Markdown, Mathajax, Code
  • You can use the arrow keys (up and down) to move between cells, hit shift+enter for edition and esc to escape edition mode
  • The row selected will be highlighted in blue and the cell under edition in green
  • You can move rows to a different position in the document, using the up and down buttons in the tool bar
  • Also you can perform cut , copy , paste and remove operations on the selected row
  • Notebook can be printed and source code be downloaded as json by clicking the download button
  • All of your changes are automatically persisted to your browser local storage
  • Click the save floppy disk button to restore a previous session or copy source to your clipboard

Dependencies

This package uses

  • vm2 to create a secure sandbox vm to digest nodejs code
  • express to mount a web server via cli and serve static files
  • body-parser to parse incoming request bodies source code
  • opener to open a new tab in your favorite browser

Credits

Developed by Cristian Cortez cortez.cristian[at]gmail.com

Special thanks to https://www.nodeknockout.com/ that challenges and inspires me to get creative every year