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

zexplorer

v0.1.0

Published

A headless Z-Machine explorer and debugger

Downloads

75

Readme

npm license node

zexp is the developer's companion to quendor, the Z-Machine engine it's built on. Where quendor plays a story, zexp takes it apart: dump the header and object tree, disassemble reachable routines, inspect a Blorb's resources, run a story headless, or drop into an interactive step-through debugger. It's in the lineage of the classic ztools (infodump, txd).

Install

npm install -g zexplorer

This puts the zexp command on your path.

Commands

zexp <command> [args]

| Command | Description | | -------------------------------------- | ------------------------------------------------------- | | header <story-file> | Parse and print the story header. | | abbrevs <story-file> | Decode the abbreviation table. | | dump <story-file> [out-file] | Dump the header plus the object/property tables. | | disasm <story-file> [hex-addr] | Disassemble every reachable routine/jump/branch target. | | run <story-file> [options] | Execute the story headless (stdin/stdout). | | debug <story-file> [options] | Step through a story in the interactive debugger. | | blorb <blorb-file> [--extract <dir>] | Inspect a Blorb's resources (optionally extract them). |

Run zexp --help for the full usage summary.

Options (for run and debug)

| Flag | Description | | ------------------------- | -------------------------------------------------------------- | | --trace <file> | Log every executed instruction to <file> (for run). | | --seed N | Fix the RNG seed for reproducible playthroughs. | | --tandy | Set the v1–3 "Tandy" flag. | | --interpreter N | Interpreter number reported to the game (default 6, IBM PC). | | --interpreter-version C | Interpreter version letter (default A). |

Debugger

zexp debug <story-file> drops into a gdb-style REPL over the running machine:

| Command | Description | | ----------- | ------------------------------------------------------------- | | s [n] | Step one instruction (or n). | | c | Continue until a breakpoint, watchpoint, input, or halt. | | b <a> | Set a breakpoint at hex address a; db <a> clears it. | | w <a> | Watch the word at a (breaks on change); dw <a> unwatches. | | bt | Backtrace — the current call stack. | | regs | Program counter, state, current locals, and eval stack. | | globals | The non-zero global variables. | | x <a> [n] | Examine n bytes of memory at a (default 16). | | i <text> | Supply a line of input when the game is waiting for one. | | q | Quit the debugger. |

Addresses are hexadecimal; step counts and byte counts are decimal. Saving in-game writes a Quetzal <story-file>.qzl slot beside the story.

Example session

$ zexp debug zork1.z3
zexp debugger. commands: s[n] c b <a> db <a> w <a> dw <a> bt regs globals x <a> [n] i <text> q
  0x4f05:  call            #2779 -> sp
(zexp) b 5000
breakpoints: 0x5000
(zexp) c
[paused at 0x5000]
(zexp) regs
  pc=0x5000  state=paused  #insn=137
  locals=[0x0001, 0x0000]
  stack=[]
(zexp) w 2680
watchpoints: 0x2680, 0x2681
(zexp) c
[watchpoint 0x2680: 0x0000 -> 0x0001]
(zexp) q

Development

vp install   # install dependencies
vp test      # run the tests
vp pack      # build the CLI (dist-cli)
vp dev       # run the companion web explorer

zexplorer is part of a larger project — a Z-Machine engine (quendor) plus this debugger — developed in the open as a study in specification-accurate implementation.

License

MIT © Jeff Nyman