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

@agent-arc-status/reference

v0.3.2

Published

Reference implementation of the Agent Arc Status Protocol: types, parser, validator, renderer, cadence, state, and delegation-tree tooling. Zero runtime dependencies.

Downloads

540

Readme

@agent-arc-status/reference: Node reference implementation

Reference TypeScript implementation of the Agent Arc Status Protocol v0.2.

Provides:

  • Types matching the wire schema (ArcStatusEvent, ArcStatusPhase)
  • A structural validator (validate)
  • A sequence validator for per-arc phase ordering (validateSequence)
  • JSON / JSON Lines parsers that never throw (parse, parseJsonl)
  • A default human-line renderer (render)
  • Cadence helpers (CadenceController and SilenceWatchdog) that drive the silence backstop and cadence-floor gating
  • reduceArc, which folds an event stream into current arc state

Zero runtime dependencies.

Install

npm install @agent-arc-status/reference

Working from a clone instead? This package is a workspace in the monorepo; run npm install at the repo root and the prepare script builds dist/. The surface is small enough to vendor src/ too.

Use

Emit and validate an event

import { validate, type ArcStatusEvent } from "@agent-arc-status/reference";

const event: ArcStatusEvent = {
  arc_id: crypto.randomUUID(),
  phase: "milestone",
  title: "receiver booted, smoke test passes",
  step: 5,
  total: 11,
  eta_minutes: 25,
  sent_at: new Date().toISOString(),
  protocol_version: "0.1",
};

const result = validate(event);
if (!result.ok) {
  for (const issue of result.issues) {
    console.error(`${issue.path}: ${issue.message}`);
  }
  throw new Error("malformed arc.status event");
}

await postWebhook("https://...", JSON.stringify(result.event));

Parse a JSON Lines stream of events

import { parseJsonl, validateSequence } from "@agent-arc-status/reference";
import { readFileSync } from "node:fs";

const { events, errors } = parseJsonl(readFileSync("./arc.jsonl", "utf8"));

if (errors.length > 0) {
  console.warn(`${errors.length} malformed events skipped`);
}

const seq = validateSequence(events);
if (!seq.ok) {
  console.error("arc phase ordering invalid:", seq.issues);
}

Render for human surfaces

import { render } from "@agent-arc-status/reference";

// "▶ build Pulsefeed v0.1"
render({ ... phase: "started", title: "build Pulsefeed v0.1" });

// "✓ [5/11] receiver booted (ETA 25m)"
render({ ... phase: "milestone", title: "receiver booted", step: 5, total: 11, eta_minutes: 25 });

// "⛔ need finance sign-off on plan-B reclassification\ndetails about what would unblock"
render(event, { body: true });

Development

npm install
npm test         # vitest
npm run build    # tsc → dist/
npm run typecheck

Tests include end-to-end runs against the shipped examples/ JSONL fixtures, so any deviation from the documented examples is caught immediately.

Scope

This package implements structural conformance plus cadence discipline. It does not implement:

  • Transport (HTTP/queue/etc.): the Protocol is transport-agnostic; bring your own.
  • Persistence: emitters and consumers store events as fits their architecture.

The silence backstop and cadence-floor gating ship as CadenceController and SilenceWatchdog (see src/cadence.ts); drive them from a timer independent of your work loop, since an emitter that heartbeats from its own work loop cannot signal liveness in the one case that matters: when that loop has stalled.

For the canonical schema, see spec/schema.json. For the full specification, see spec/v0.2.md.