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

jsbook45

v1.3.1

Published

[Click here to demo](https://user-images.githubusercontent.com/65809527/114284254-dbc24280-9a4e-11eb-974d-593109a046a3.gif)

Readme

jsbook45

Click here to demo

jsbook45 is a simple JavaScript code editor with Markdown note functionality.

JSNote is managed by Lerna

How to install

npm install jsbook45

How to run

  • Default: npx jsbook45 serve (With this command, a file named notebook.js(default file name) is created in the current folder and the application starts to run on port 4500 (default port).The changes in the notebook.js file are automatically saved and the user can open this file again with the following command. see Option1 )
  • Option1: npx jsbook45 serve notebook.js
  • Option2: npx jsbook45 serve mycode.js (With this command, if there is mycode.js in the current folder, the file is opened, or the file named mycode is created and the application starts to run on port 4500)
  • Option3: npx jsbook45 serve -p 4000 or npx jsbook45 serve -port 4000 (With this command, the application can be opened on the desired port.)
  • Option4: npx jsbook45 serve mynotes.js -p 2510 (This command is a combination of other options and the application can be run on the desired port with the desired filename)

show() funtion

This function is the default function and renders the parameter in the field for the editor's right side. See examle below.

Development Notes

Main tools used in the development phase:

  1. React with typescript
  2. Redux/Redux thunk --for state management
  3. Express js --to create local API
  4. esbuild-wasm-- execution of the bundle phase
  5. Monaco code editor
  6. Markdown editor

What am I building?

A CLI to launch an interactive development environment for writing and documenting code. Support JS, and MarkDown

Challanges at development and solutions

Code will be provided to Preview as a string. We have to execute it safely ?

  A solution is esbuild-wasm.ESBuild can transpile + bundle code all in the browser. 
  --- ESBuild Bundling Cycle ---
  1. Figure out where the index.js is stored (onResolve)
  2. Attemp to load up the index.js file (onLoad)
  3. Parse the index.js file, find any import/require/exports
  4. If there's any import/require/exports, figure out where the requested file is (onResolve) => UNPKG
  5. Attemp to load up the file
  (Used localforage (indexedDB) to cache)
  

Source Code: Click here