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

unifiedharnessprotocol

v0.1.2

Published

The Unified Harness Protocol (UHP) as data: versions, conformance classes, task states, the streaming event vocabulary, the error taxonomy, and the endpoint map.

Readme

unifiedharnessprotocol

The Unified Harness Protocol, as data.

A harness is a complete agent runtime — a loop that plans, calls tools, edits files and reports back. UHP is the HTTP contract for driving one: start a task, follow it, continue the conversation, cancel it, collect the files it produced.

This package contains no network code. It is the specification's vocabulary in machine-readable form, so that a client, a server, or a test suite can agree on the strings without each one retyping them out of the prose and getting one subtly wrong.

npm install unifiedharnessprotocol
import {
  PROTOCOL_VERSION, EVENTS, TASK_STATUS, ERROR_CODES,
  isTerminal, isRetryable, checkDiscovery, checkSequence,
} from 'unifiedharnessprotocol';

PROTOCOL_VERSION;                       // '2026-08-11'
isTerminal(TASK_STATUS.IN_PROGRESS);    // false
isRetryable({ code: 'quota_exhausted' }); // false — nothing changes until the quota does

What's in it

| Export | What it is | |---|---| | PROTOCOL_VERSION, VERSION_HEADER | The version this package describes, and the header that carries it | | CONFORMANCE_CLASSES, CLASS_CAPABILITIES | core / extended / full, and what each one obliges a server to implement | | CAPABILITIES | The capability keys of the discovery document | | TASK_STATUS, TERMINAL_STATUSES | in_progress, completed, failed, incomplete, cancelled | | EVENTS, TERMINAL_EVENTS | The streaming event vocabulary | | ERROR_TYPES, ERROR_CODES, RETRYABLE_CODES | The failure taxonomy and which parts of it are worth retrying | | ID_PREFIXES, objectTypeForId | Which kind of object an id points at | | ENDPOINTS | Every path, so nobody spells one wrong |

Two checks worth running

Does the server's class claim match its capabilities? A class claim that contradicts the capability list tells a client two different things, and it is cheap to notice.

const discovery = await fetch('http://localhost:3000/v1/uhp').then((r) => r.json());
const { ok, problems } = checkDiscovery(discovery);
if (!ok) console.warn(problems);

Did the stream drop an event? sequence_number starts at 0 and increases by exactly 1. That rule exists so a client can tell a lost event from a quiet agent — but only if it checks.

const { ok, missing } = checkSequence(events);   // { ok: false, missing: [7, 8] }

Related

Specification

https://github.com/HarnessRouter/harnessrouter/tree/main/protocol

Apache-2.0.