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

@soa-harness/cli

v1.3.3

Published

`soa` command-line client for SOA-Harness v1.2. Wraps the Runner HTTP surface + soa-validate binary so operators can chat, check health, tail the audit log, and drive conformance without hand-authoring fetch() calls or Go invocations.

Readme

@soa-harness/cli

soa command-line client for SOA-Harness v1.2 Runners. Wraps the HTTP surface so operators can chat, check status, tail audit logs, and drive conformance without hand-authoring fetch() calls.

Install

npm install -g @soa-harness/cli
# or: npx @soa-harness/cli@latest --help

Quick start

# Health/readiness/version summary
soa status --runner-url http://localhost:7700

# Tail the audit log
export SOA_RUNNER_URL=http://localhost:7700
export SOA_SESSION_BEARER=$MY_BEARER
soa audit tail

# Interactive streaming chat
soa chat --session-id ses_... --model example-adapter-model-id

# Run the conformance suite (wraps soa-validate binary)
soa conform --profile core

Commands

soa status

One-shot /health + /ready + /version probe plus (if bearer provided) the latest audit-row timestamp. Prints JSON. Exits 0 on alive+ready, 1 otherwise. Safe for CI smoke tests and docker-compose healthcheck.

soa audit tail

Polls /audit/tail every 3s (configurable via --poll-interval-ms) and prints new rows as they arrive. --format json emits one JSON object per line; --format pretty (default) is a human-readable timestamp + kind + stop_reason summary. Ctrl-C exits cleanly.

soa chat

Interactive streaming-dispatch REPL. Each prompt is sent as a POST /dispatch with Accept: text/event-stream per §16.6.2; ContentBlockDelta.text chunks stream to stdout as they arrive. Ctrl-C mid-stream fires POST /dispatch/{correlation_id}/cancel per §16.6.4; Ctrl-D quits.

Minimal REPL (no ink/blessed) — adopters wanting fancier TUIs compose RunnerClient.dispatchStream() directly.

soa conform

Thin wrapper around the soa-validate Go binary. Runs the default --profile core invocation with sensible defaults for --impl-url / --spec-vectors / --out. If soa-validate isn't on PATH, prints the install command and exits 2.

Environment variables

| Variable | Purpose | |---|---| | SOA_RUNNER_URL | Default for --runner-url. | | SOA_SESSION_BEARER | Default for --session-bearer. | | SOA_ADMIN_BEARER | Default for --admin-bearer. |

Library use

The CLI's internals — RunnerClient, the command functions, the SSE parser — are exported for downstream programmatic use:

import { RunnerClient, statusCommand } from "@soa-harness/cli";

const client = new RunnerClient({
  runnerUrl: "http://localhost:7700",
  sessionBearer: process.env.SOA_SESSION_BEARER!,
});
const version = await client.getVersion();
console.log(version.spec_commit_sha);

Scope for v1.2

Direct-to-Runner only — no Gateway (that's M11). No OAuth flow. One session per invocation. Adopters with multi-session or Gateway-mediated workflows build on RunnerClient + their own session orchestration.