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

jisu

v1.0.4

Published

Work in progress JavaScript parser

Readme

JISU

A work in progress JavaScript tokeniser and parser. Currently only supports a subset of the JavaScript language and is not ECMAScript compliant.

Install via npm install jisu

An online demo is available at https://ben-sb.github.io/jisu

About

JISU is a recursive descent parser (roughly). I say roughly as it uses the precedence climbing method to parse binary and logical expressions.

Currently I've been working on this in my free time, which I don't have a lot of right now, but I do plan to continue supporting more of the JS language, and may eventually start using this parser in production at my company (Ocule) if it reaches that level. I may also write some AST manipulation tools for the obfuscation/deobfuscation enjoyers out there.

Specs

The repo has two exports:

  • parse - Parses a full program
  • parseExpression - Parses a single expression

Both take the input as a string and optionally a set of parser options.

interface ParserOptions {
    emitLogs?: boolean;
    omitLocations?: boolean;
}

I'm a big fan of Babel and as a result the format of the AST JISU produces is extremely similar to Babel's. As a result @babel/generator can be used on the AST (as seen in src/demo.ts). I also took inspiration from the @babel/types package and implemented a similar system in src/parser/ast.

Tests

Unit tests can be run via npm test Currently there are very few tests but I plan to add more.

To Do

  • Rewrite object member parsing
  • Allow semi-keywords (e.g. await, async, of) to be treated as identifiers
  • Support numbers expressed in hexadecimal, octal and scientific notation
  • Support regular expressions
  • Probably a lot more

To Fix

  • Object patterns are treated as normal object expressions even when not used as a pattern
  • Spread elements are allowed in sequence expressions
  • Spread elements are allowed on their own in parenthesised expressions