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

zuzu-js

v0.6.0

Published

JavaScript runtime, compiler, and browser bundle for ZuzuScript.

Readme

ZuzuScript JavaScript Runtime

zuzu-js is the JavaScript implementation of ZuzuScript. It provides a Node command-line runtime, a browser bundle, an Electron launcher, and a compiler that can emit standalone JavaScript from ZuzuScript source.

Installation

npm install -g zuzu-js

The global npm bin directory must be in your PATH. After installation, the package provides these commands:

  • zuzu: dispatches to the first available ZuzuScript implementation in PATH, checking zuzu-rust, zuzu.pl, then zuzu-js.
  • zuzu-js: runs ZuzuScript with the JavaScript runtime.
  • zuzu-js-compile: compiles a ZuzuScript program into standalone JavaScript.
  • zuzu-js-electron: runs GUI-oriented ZuzuScript programs through Electron.

Set ZUZU to force the dispatcher to use a specific implementation:

ZUZU=zuzu-js zuzu -e 'say("Hello from ZuzuScript");'

Command Line

Run inline source:

zuzu-js -e 'say("Hello, world");'

Run a script:

zuzu-js path/to/script.zzs

Compile a script:

zuzu-js-compile path/to/script.zzs -o script.js
node script.js

Use zuzu when you want the first installed ZuzuScript implementation available on your PATH:

zuzu -e 'from std/string import kebab; say kebab("hello world");'

Browser Bundle

The package includes prebuilt browser assets:

  • dist/zuzu-browser.js
  • dist/zuzu-browser-worker.js

Load the browser bundle from an installed package, copied asset, or your application bundler:

<script src="dist/zuzu-browser.js"></script>
<script>
const runtime = ZuzuBrowser.createBrowserRuntime();
const result = runtime.zuzu_eval('say("Hello from the browser");');
console.log(result.stdout);
</script>

The package also contains internal browser bundle helper scripts under bin/, but they are not installed as global npm commands.

JavaScript API

const { createNodeRuntime } = require('zuzu-js');

const runtime = createNodeRuntime();
runtime.runSource('say("Hello from JavaScript");').then((result) => {
	process.stdout.write(result.stdout);
});

The public API is still evolving. The command-line tools and bundled runtime entry points are the most stable interfaces.

Standard Library

The npm package includes JavaScript-backed runtime modules under modules/ and pure ZuzuScript standard-library modules under stdlib/modules/. Pure ZuzuScript modules are loaded, parsed, and evaluated through normal ZuzuScript runtime semantics.

Licence

zuzu-js is free software; you may redistribute it and/or modify it under the terms of either the Artistic License 1.0 or the GNU General Public License version 2 or later.

SPDX-License-Identifier: Artistic-1.0 OR GPL-2.0-or-later