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

@aria_asi/harness-http-client

v0.1.3

Published

HTTP client for Aria's canonical harness — injects live cognitive state + plan context into LLM calls. Full control plane with output validation, pre-action gates, 8-lens cognition, and garden memory.

Readme

Aria Harness HTTP Client

What This Is

@aria_asi/harness-http-client is the small SDK and runtime discipline pack that binds an LLM, agent, CLI, worker, or app to Aria's harness control plane.

It is not a prompt template. It gives the model the right context at the start of work, checks risky actions before they run, validates output before completion claims, and writes outcomes back so the next context window learns from what happened.

Customer Mental Model

The harness works as a control plane around your model:

  1. The model stays the renderer and executor for the current turn.
  2. Aria provides continuity, doctrine, memory, decision rules, and quality gates.
  3. The SDK fetches the live harness packet and injects it into the model's working context.
  4. The SDK checks actions before they mutate state.
  5. The SDK validates outputs before the model claims work is complete.
  6. The SDK writes governance outcomes back to Garden memory so future turns start smarter.

This lets a short-context model behave like it has persistent memory and operational discipline without pretending the model weights remembered anything.

LLM Session Learning Contract

Every harness-bound session should learn this file before the first non-trivial action and after any context reset, compaction, gate block, or repeated drift.

Required session-start order:

  1. Read the surface-specific ARIA_MUST_READ.md file if present.
  2. Read this README or the installed copy at ~/.aria/HARNESS_README.md.
  3. Fetch a live harness packet with getHarnessPacket() or getBoundHarnessAndPrompt().
  4. Hydrate Garden continuity with hydrateGardenContinuity() or runWithGovernance().
  5. Proceed only after the model can state the current goal, constraints, evidence already known, and next measurable predicate.

Required context-refresh triggers:

  1. A new context window starts.
  2. The assistant is compacted or summarized.
  3. A governance, skill, action, or output gate blocks.
  4. The task crosses from planning into mutation, deploy, publish, or customer-facing reporting.
  5. The assistant discovers a defect, missing evidence, or package/runtime drift.
  6. More than one substantial tool sequence has happened since the last harness packet.

During a long turn, refresh learning at phase boundaries instead of relying on stale memory. The safe loop is: read current obligation state, fetch or reuse a fresh-enough harness packet, run the next action, validate the result, then write the outcome.

Core APIs

import {
  HTTPHarnessClient,
  getBoundHarnessAndPrompt,
  runWithGovernance,
} from '@aria_asi/harness-http-client';

Use HTTPHarnessClient when you need direct control over packet fetches, action checks, output validation, Garden continuity, or governance outcome writes.

Use runWithGovernance() when you want one wrapper to hydrate continuity, run a cognition-bound action, validate output, and persist the result.

Minimum Correct Integration

A consumer is harness-bound only when all of these are true:

  1. It fetches and injects a live harness packet before non-trivial model work.
  2. It checks risky actions before executing them.
  3. It validates output before completion claims.
  4. It records discovered obligations until fixed and verified.
  5. It writes outcomes back to Garden or an equivalent durable governance ledger.

Packet injection alone is not enough. A package that only prepends context but never gates actions or validates output is not fully harness-bound.

Installed Runtime Files

When installed, the package writes universal runtime guidance and CLIs under ~/.aria:

  1. ~/.aria/ARIA_MUST_READ.md gives the shortest mandatory startup contract.
  2. ~/.aria/HARNESS_README.md is the customer and LLM learning guide copied from this README.
  3. ~/.aria/bin/aria-governance-gate blocks unresolved obligations and missing doctrine-triggered skills.
  4. ~/.aria/bin/aria-write-deploy-justification and ~/.aria/bin/aria-verify-deploy-justification provide runtime-agnostic deploy justification.
  5. ~/.aria/bin/aria-first-class-compliance checks first-class runtime surface contracts.

Surfaces such as Codex and OpenCode also receive their own ARIA_MUST_READ.md copy when their config directories exist.

Customer Setup

npm install @aria_asi/harness-http-client

Set these environment variables for a private control plane:

ARIA_RUNTIME_URL=https://harness.yourcompany.com
ARIA_HARNESS_TOKEN=<tenant-or-owner-token>

Then wire the SDK into your agent loop or use the packaged governance CLIs from hooks.

Operational Rule

Truth beats smoothness. If the harness blocks, the correct response is to load the missing learning, fix the source issue, or record and resolve the obligation. Do not weaken the gate, remove the field, strip the output, or claim readiness without evidence.