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 🙏

© 2025 – Pkg Stats / Ryan Hefner

js-distributor

v2.0.4

Published

Distribution of a monolithic JavaScript project across multiple servers

Downloads

52

Readme

JS-Distributor

This is the core engine of the js-distributor tool, packaged separately as an NPM module for reuse and modularity. Below is a breakdown of its structure and main components.

Folder Structure

distributor/
├── bin/
├── src/
│ ├── antlr4/
│ ├── config/
│ ├── helpers/
│ ├── templates/
│ ├── transformations/
│ ├── visitors/
│ └── main.js
├── package.json
└── README.md

bin/ – Binaries and scripts

This folder contains the binary for ANTLR the parser generator used by JS-Distributor. If the grammar needs to change, you need to run it. It requires Java.

src/ – Source code

  • antlr4/ – Contains the ANTLR-generated or custom parsers for JavaScript code
  • config/ – Code for loading the configuration file
  • helpers/ – Different utility classes used by the tool
  • templates/ – Code generation templates
  • transformations/ – AST transformations
  • visitors/ - Visitors for traversing the code
  • main.js - Entrypoint for the tool

package.json

Defines module metadata, dependencies (e.g. antlr4, AST libraries), build/test scripts, and entry points (main, bin, etc.).

README.md

Explains usage of the distributor module, installation steps, API, and examples.


How to release new version via NPM

To publish a new version of the js-distributor module to the NPM registry:

  1. Make sure you're logged in to NPM
npm login

This will prompt for your NPM username, password, and 2FA (if enabled).

  1. Update the version number

Update the version in package.json using semantic versioning:

npm version patch   # for small fixes
npm version minor   # for new features, backward-compatible
npm version major   # for breaking changes

This will:

  • Update the version in package.json
  • Create a Git commit with a tag (e.g., v1.2.0)
  1. Push the changes to GitHub
git push origin main --follow-tags

The --follow-tags flag ensures the Git tag (e.g., v1.2.0) is pushed too.

  1. Publish the package to NPM
npm publish

Make sure you're inside the distributor/ folder

  1. Done!

Your new version will be live at https://www.npmjs.com/package/js-distributor