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

@zx-vibes/asm

v0.2.0

Published

zx-vibes Z80 assembler/disassembler for ZX Spectrum 48K workflows.

Readme

@zx-vibes/asm

TypeScript Z80 assembler/disassembler for zx-vibes ZX Spectrum 48K workflows.

Current package version in this repository: 0.1.2.

The package removes the default need for an external assembler in generated zx-vibes projects. It targets the current starters, toolkit templates, recipes, and examples before claiming full sjasmplus compatibility.

Install

Most projects receive this package through the umbrella zx-vibes package. Install it directly when you want the standalone assembler API or CLI:

pnpm add -D @zx-vibes/asm
pnpm exec zxasm --help

Node.js 20 or newer is required.

Bins

| Bin | Purpose | | --- | --- | | zxasm | Canonical standalone assembler/disassembler CLI. | | spectral-asm | Compatibility alias for older projects. |

zxasm --version reports the @zx-vibes/asm package version.

CLI

pnpm exec zxasm assemble src/main.asm -I lib -DDEBUG=1 --out-dir build
pnpm exec zxasm disasm build/main.bin --org 0x8000 --count 32
pnpm exec zxasm doctor

Successful assembly writes a raw binary, SLD-compatible symbols when available, and any additional artifacts requested through SAVEBIN.

Supported Surface

  • Z80 raw binary assembly.
  • SLD-compatible label and source-line output for zx-vibes debugging.
  • DEVICE ZXSPECTRUM48, ORG, EQU, INCLUDE, DB, DW, DS/BLOCK, ALIGN, ASSERT, DISPLAY, INCBIN, INSERT, BINARY, and SAVEBIN.
  • Optional fill operands for DS/DEFS/BLOCK and ALIGN, such as DS 8,0xAA and ALIGN 16,0xFF.
  • Data aliases including DEFM/DM, DZ, DC, D24, and DEFD/DD/DWORD.
  • Constant assignments with name = expression.
  • Global and local labels.
  • Comparison expressions for compile-time checks.
  • Sjasmplus-style expression helpers/operators including LOW/HIGH, &&/||/!, SHL/SHR/MOD, 0b1010, and 1010b.
  • Include search paths and command-line-style defines through the API and CLI.
  • Source-level DEFINE/UNDEFINE for sjasmplus-style conditional assembly and expression values.
  • Conditional assembly with IF, IFDEF, IFNDEF, ELSEIF, ELSE, and ENDIF.
  • END source termination, including label-prefixed forms such as stop END.
  • Source repetition with DUP/REPT blocks, EDUP/ENDR terminators, and optional counter symbols.
  • Macro expansion with Name MACRO ... / ENDM and indented MACRO Name ... / ENDM, parameters, and per-expansion dotted local labels.
  • MODULE/ENDMODULE scoped labels and module-relative references.
  • SAVEBIN "file", start[, length] binary output artifacts.
  • Indexed CB copy-register forms such as SET 3,(IX+4),A.
  • SLI as a sjasmplus-compatible alias for the undocumented SLL shift.
  • Common sjasmplus instruction aliases such as IN (C), IN F,(C), ADD n, ADC n, SBC n, JP HL/JP IX/JP IY, EXA, and EXD.
  • Sjasmplus LD rr,rr pseudo-copy forms among BC/DE/HL/IX/IY.
  • Sjasmplus index-half aliases XH/XL/YH/YL and HX/LX/HY/LY, with illegal H/L and memory mixes rejected.
  • Square-bracket memory operands such as LD A,[HL], LD [0x4000],A, and SET 3,[IX+4],A.
  • Table-driven disassembly compatible with zx-vibes debugger output.

Unsupported sjasmplus features should fail clearly instead of silently misassembling code.

Relationship To zxs build

@zx-vibes/toolkit uses this package by default. The embedded backend name in zxs build --assembler remains spectral for compatibility with older configuration:

pnpm exec zxs build --assembler spectral

Use the separate sjasmplus backend only when a project intentionally depends on syntax outside this package's current surface.

Development

From the repository root:

pnpm --filter @zx-vibes/asm build
pnpm --filter @zx-vibes/asm typecheck
pnpm --filter @zx-vibes/asm lint
pnpm --filter @zx-vibes/asm test

License

MIT.