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

@rivet-dev/agentos-toolchain

v0.2.19

Published

Build toolchain for agentOS packages (pack npm packages/scripts into self-contained agentOS packages).

Readme

@rivet-dev/agentos-toolchain

Build toolchain for agentOS packages — the only sanctioned way to turn an npm package or a local script into a valid, self-contained agentOS package.

npx @rivet-dev/agentos-toolchain pack <npm-pkg | ./local-dir> [options]

Why this lives in agentos

Packaging is part of agentos's core behavior, so the tool that produces packages lives here, next to the things it packages. agentos owns the VM runtime that runs packages — the kernel, the VFS, the /opt/agentos mount, the $PATH command resolver, and the header/binfmt dispatch — and it owns the package definitions themselves: the generic registry software (software/*) and the agent adapters (software/*). This toolchain is what builds those definitions into the on-disk package format that the runtime resolves. Its header.ts is the same binfmt table the sidecar enforces (crates/sidecar), so keeping it in this repo keeps the producer and the consumer of the format in one place.

agent-os (the product layer) only consumes finished packages via defineSoftware({ name, dir }); it does not need to own the builder. The package name stays @rivet-dev/agentos-toolchain so the documented npx entrypoint is unchanged.

pack

Produces <out>/<name>/<version>/ — a package in the agentOS package format:

The output is a flat, self-contained package directory — a plain npm dependency, no agentOS-specific manifest and no symlinks:

<out>/                       # the package dir itself (default ./<input-name>-package)
├── package.json             # name, version, and the "bin" command map
└── node_modules/            # flat, self-contained dependency closure

Commands are declared in package.json "bin" (command → a real entry file), so the package ships cleanly via npm. The runtime builds the /opt/agentos/bin symlinks itself when it mounts the package — they are never part of the shipped artifact.

Steps

  1. Isolate — a clean temp dir (no host pnpm/workspace bleed-through).
  2. Install flatnpm install <pkg> --omit=dev (full closure, hoisted, no scripts).
  3. Ensure package.jsonname/version from the package plus a "bin" map (each entry gets a #! shebang). No agentos-package.jsonpackage.json is the only metadata.
  4. Lay out flatpackage.json + node_modules written directly into --out.
  5. Verify — every bin entry has a recognized header (#! shebang or \0asm); reject native .node addons (they can't run in V8) — the error names --prune-native as the escape.

Options

| Flag | Meaning | |---|---| | --agent <command> | mark a bin command as the package's ACP entrypoint | | --out <dir> | output dir for the package itself (flat; default ./<input-name>-package) | | --prune-native | delete unreachable native .node addons from the flat closure instead of failing |

Examples

# package a local CLI → ./my-tool-package/
npx @rivet-dev/agentos-toolchain pack ./my-tool

# an agent whose SDK closure carries unreachable native addons → ./pi-package/
npx @rivet-dev/agentos-toolchain pack @agentos-software/pi --agent pi-sdk-acp --prune-native

The package is consumed by an agentOS host as defineSoftware({ name, dir }) — add agent: { acpEntrypoint: "<bin>" } for an agent. The host projects it under /opt/agentos, and openSession({ agent: name }) launches or restores the default session adapter through /opt/agentos/bin/<bin>.