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

@by-association-only/harness

v0.10.0

Published

The agent harness from unisian-next: rulebook, fence, hooks, prose lint and verification, for any Vite+ repo.

Readme

@by-association-only/harness

The agent harness from BAO's unisian-next, for any Vite+ repo: a rulebook for coding agents, lint and prose lint that fail on the shortcuts agents take, git and Claude Code hooks that agents can't skip, and a browser driver so an agent proves a change the way its user sees it.

Set up a repo

The repo needs pnpm and Vite+ (vite-plus and a vite.config.ts).

pnpm add -DE @by-association-only/harness
pnpm exec harness init

Then open the repo in Claude Code and run /harness-setup. The skill reads the repo and fills each part of AGENTS.md that only the repo can answer, with you, until pnpm check and pnpm test pass.

After a bump of the package, pnpm exec harness rulebook --update brings its text in AGENTS.md, the docs and the skills up to date. It rewrites only the text between <!-- harness:begin --> and <!-- harness:end --> markers, so the repo's own text stays as it is.

Init also sets the repo up for Ultimate in .ultimate/; its README.md there says what each file does. A repo that ran init before 0.7.0 gets the .ultimate/ files from harness rulebook --update, except .ultimate/automations/ci-watch/, which a second harness init copies, skipping every file the repo already has.

pnpm exec harness init github --yes adds the issue labels, merge-commit-only merges and branch protection on the default branch. In a repo whose layer names protectedBranches, such as a theme's Shopify-*, it also adds a ruleset that stops those branches being deleted or force-pushed. Without --yes it prints the calls and runs none.

What you get

| Command | What it does | | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | harness init | Copies the rulebook, docs, skills, git hooks and CI into the repo, and wires the Claude Code hooks to run from the package; never overwrites | | harness rulebook --check | Fails when a block of harness text in the repo differs from the installed package; or when the repo's own text that loads in every session is over its budget (harness.rulebookBudget in package.json, 12,288 bytes by default); --update rewrites the blocks and nothing outside them | | harness green-tree run <script> | Runs <script>:steps, skipping it when it already passed on this exact tree. An agent's check and test wait for a free slot on the machine | | harness worktree <branch> | Makes a worktree for an agent; --done <branch> cleans up a merged one | | harness second-opinion "<q>" | Asks a fresh, read-only agent for a pick before an agent asks you | | harness ci-watch | Prints a FIRE line for each failed Actions run on the default branch; Ultimate's .ultimate/automations/ci-watch runs it | | harness sighting <message file> | Refuses a commit whose Sighting: <slug> trailer git log already holds, until it stages the rule or tool; commit-msg runs it | | harness verify <command> | Drives the product in a real browser and writes evidence | | harness vendor-agent-sources | Clones pinned upstream sources so agents read them, not their memory | | harness pins --check | Fails when docs/pins.md and the installed versions disagree | | harness peers | Lists public repos that pin at least two of the prerelease lines in docs/pins.md, marking those missing from the repo's roster | | prose-lint | Fails on AI-slop prose an agent writes in docs, skills and commit messages |

The lint plugins load from @by-association-only/harness/lint; spread harnessLint into vite.config.ts.