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

jack-compiler

v0.2.0

Published

Jack-to-binary compiler for the nand2tetris Hack platform - compiles .jack, .vm, and .asm down to runnable .hack binaries, OS included

Readme

jackc

compiler for jack! this package compiles between

  • jack (.jack)
  • vm code (.vm)
  • assembly (.asm)
  • binary (.hack)

for the nand2tetris hack computer.

compiler is written in java, and test GUI is from the nand2tetris software suite (not built by me!).

installation

you can find the package on npm here!

if you have npm on your computer, just run npm install -g jack-compiler to install it. to use the emulators, you must have a java runtime installed!

background

jack is a language very similar to java but much easier to compile, designed for the nand2tetris course! it runs on the hack computer (also from the course).

the nand2tetris software suite contains many emylators to test scripts/chips, and two are bundled into this package! those are the vm emulator, cpu emulator, and hardware simulator (not useful for right now - but i may add features in the future that need it!).

commands

usage: jackc [-i <asm|vm|jack>] [-o <hack|asm|vm>] <file-or-folder>

  -i, --in <type>   input file type (inferred from extension if omitted)
  -o, --out <type>  output file type (default: hack)
  -h, --help        show this message

if <file-or-folder> is a folder, all matching files in it and its subfolders are compiled

emulators (official nand2tetris tools - need java installed):
  jackc vm-emulator [file.tst]         run VM programs (built-in OS, no 32K limit)
  jackc cpu-emulator [file.tst]        run compiled .hack binaries
  jackc hardware-simulator [file.tst]  simulate .hdl chip designs
with no .tst file they open interactively; with one they run it in batch mode

usage

if you want to compile a script and run it, you have two choices:

  • compile to binary (.hack) and run in the cpu emulator (works for jack, vm, and assembly code)
  • compile to vm and run in the vm emulator (work for jack code)

the vm emulator will allow you to run much larger scripts than the cpu emulator, which has a much smaller memory limit (the OS takes up a significant amount of the available memory).

you can use the snake script that i wrote in jack here as a test! it's too big to compile to binary - it'll only run in the vm emulator.

how it's built

the package has a lot of different parts.

  • the compiler is written in java and is here
  • the OS was written in jack (compiled to vm) and can be found here
  • the test snake script was written in jack and can be found here