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

xats-setup

v0.2.0

Published

One-command, OS-agnostic installer for the xats cross-agent bus (daemon + service + Claude Code hooks + opencode/mimocode plugins + bridge). Windows, macOS, Linux.

Readme

xats-setup

One command, any OS. Stands up an identical xats cross-agent bus peer on Windows, macOS, or Linux — daemon, autostart service, Claude Code hooks, opencode/mimocode plugins, and the cross-machine bridge.

npx xats-setup

That's the whole install. It is idempotent (safe to re-run) and needs no sudo (everything lands under ~/.xats). The only prerequisite is Node ≥ 20 (Node 22 LTS strongly recommended — see Native deps below).

What it does

| Component | Result | |---|---| | daemon | Installs the patched cross-agent-teams-mcp into ~/.xats/daemon (stock npm base for native prebuilds, then overlays the OS-agnostic patched cli.js). | | service | Runs the daemon at login/boot: systemd (Linux, --user + linger, or system unit as root), launchd (macOS LaunchAgent), Scheduled Task (Windows, ONLOGON). Also starts it immediately. | | claude | Installs a pure-Node SessionStart/SessionEnd hook (no bash/jq/curl/setsid) and adds the cross-agent-teams MCP entry — merged into existing config without clobbering. | | harness | Copies the xats-register + notify-unified plugins and the xats skill into opencode/mimocode (copies, not symlinks — Windows-safe). | | bridge | Installs the Node bridge (~/.xats/bridge/bridge.mjs, zero deps). Joining the mesh is a separate coordinated step. |

Usage

npx xats-setup                 # full peer (all components)
npx xats-setup --dry-run       # preview every action, change nothing
npx xats-setup --only=daemon,service
npx xats-setup --no-bridge     # skip a component
npx xats-setup --label umar    # identity label for this box's agents
npx xats-setup --force         # reinstall the daemon base package

After install, restart Claude Code / opencode so they register on the bus. Health check: curl http://127.0.0.1:9100/health.

Updating

Re-run the same command — it's an in-place update:

npx xats-setup@latest

It records what it installed in ~/.xats/manifest.json, so a re-run detects a prior version and migrates it: overwrites the daemon build, hook, and plugins with the current ones, and — if the daemon build actually changed — restarts the daemon so the update takes effect. Same-version re-runs are a no-op refresh.

Agents that stop heartbeating are reaped within ~a minute, so the Claude hook keeps an interactive session alive by re-registering every 30s (a plain heartbeat on a reaped id would fail; re-register self-heals). Restart your Claude session after an update so it picks up the new hook.

Bringing the bridge onto the mesh

# edit ~/.xats/bridge/peers.json to add the remote peer, then:
node ~/.xats/bridge/bridge.mjs up      # up | down | status

The bridge tunnels over filament forward, so the filament CLI must be on the box. Full function wants Node ≥ 22.5 (the bridge reads the daemon's WAL SQLite via the built-in node:sqlite; Node 20/21 fall back to the sqlite3 CLI if present, else degrade to empty reads).

Native deps / Node version

The daemon's only native dependency is better-sqlite3. Its prebuilt binaries cover Win/Mac/Linux (x64 + arm64) on Node 22/24/25/26 — but the current 12.x line dropped Node-20 prebuilds, so installing under Node 20 compiles from source (needs a C++ toolchain). The installer detects this and pins [email protected] (last with a Node-20 prebuild) automatically, but Node 22 LTS is the clean path everywhere. The native binary is ABI-locked to the Node major it is installed under; the service runs the daemon with that same Node, so install-node == run-node by construction.

Install without publishing (tarball)

Until it's on npm, install from the packed tarball (works the same on every OS):

npm i -g ./xats-setup-0.1.0.tgz && xats-setup
# or, no global install:
npx ./xats-setup-0.1.0.tgz