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

damon-agent

v0.6.0

Published

Damon agent core — local multi-provider agent daemon

Readme

damon-agent

Prebuilt binaries + zero-dependency Node client for Damon, a local agent-control daemon. Damon drives nine coding-agent CLIs (Claude Code, Codex CLI, Oh My Pi, Pi, Qwen Code, Droid, OpenCode, MiMo, ZCode) over their native bidirectional protocols — the model, tools, credentials, and context management belong to the agents; Damon owns sessions, permission relaying, searchable history, chat channels, and remote access. Your app attaches as a thin client.

import { DamonClient } from "damon-agent";

const client = await DamonClient.connect("ws://127.0.0.1:9470/ws");
await client.hello();
const sessionId = await client.newSession(process.cwd(), "claude"); // backend optional
const turn = client.prompt(sessionId, "hi"); // resolves when the turn ends

for await (const ev of client.events()) {
  // StreamEvents arrive as {type:"event", sessionId, event}; timeline
  // items ride as event {type:"timeline", kind:…}.
  if (ev.type === "event" && ev.event?.kind === "assistant_message")
    process.stdout.write(ev.event.text);
  if (ev.type === "event" && ev.event?.type === "permission_requested")
    await client.respondPermission(ev.sessionId, ev.event.id, { behavior: "allow" });
  if (ev.type === "promptDone") break;
}
await turn;
client.close();

Through a relay (E2E-encrypted)

Connect to a remote daemon through a damon-relay — the relay pipes frames but never sees plaintext: keys come from an X25519 handshake and every frame is AES-256-GCM with direction-separated keys and strict sequence numbers ([src/relay.rs] in the repo). Same client surface:

import { connectRelay } from "damon-agent";

const client = await connectRelay({
  url: "wss://relay.example.com", // the relay's ws(s)://host:port
  name: "home",                   // the daemon's registered relay name
  token: process.env.DAMON_TOKEN, // the daemon's auth_token
});
await client.hello();            // identical API from here on

A dropped link redials with backoff and re-runs the full handshake (a fresh X25519 keypair each attempt), matching the Rust connect_relay. Requires WebCrypto X25519: Node ≥ 22, Chrome 133+, or Safari 17+.

Direct connections require Node ≥ 22 (global WebSocket), or pass a WHATWG-style constructor via DamonClient.connect(url, { webSocket }).

License: MIT OR Apache-2.0.