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

@crewhaus/harness-lifecycle

v0.8.0

Published

The back half of a harness's life: retirement and archival, data-retention sweeps over sessions and audit logs, and knowledge sync across harnesses

Readme

@crewhaus/harness-lifecycle

The back half of a harness's life — what happens after it ships, and when it stops.

| Module | Answers | |---|---| | retire | the ordered, evidenced decommission of a harness | | retention | which sessions and audit records are past their TTL | | knowledge-sync | what a harness and the fleet's shared store owe each other |

Retirement refuses before it deletes

retire stops if the spec still has an active deployment pin — an environment pointing at a live version — unless it is forced. Retiring a bot that is still answering people is the worst available failure, so it is the first thing checked, before any state moves.

What follows is ordered so that the evidence outlives the harness: export the durable state, record a final compliance bundle and an audit-verify result, optionally push the knowledge to the shared store, tombstone the registry entry (which clears the env pins), then archive and remove the live state. A retirement.json recording every step and its outcome is written into the archive, so the retirement is itself evidenced. --dry-run prints the plan and touches nothing.

Every heavy step is injected as a seam, which is how the order, the refusal and the archived log are tested without running a real backup.

The policy lives in one place on purpose

retention enforces the same configuration the daemon janitors read, loaded by the same code in @crewhaus/data-retention-engine. A CLI sweep and an unattended sweep that disagreed about a TTL would be worse than either alone. A dry run is the identical computation with the deletion left off, so the plan you review is the plan that runs.

A fragment is named after its own body

knowledge-sync merges memories, grader fragments and prompt snippets by content hash, so pulling twice adds nothing. A .md fragment whose filename hash no longer matches its body was edited in place by somebody — it is skipped with a warning rather than synced, because a silent sync would push one harness's local edit into every other harness in the fleet. Redaction runs through an injected seam, so what leaves a harness for the shared store is tested without the redactor package.

Why this is a package

A packages/tool-* may not depend on an app, and all three modules lived in apps/cli/src.

Testing

bun test packages/harness-lifecycle/src

The /src is load-bearing: bun test matches by path PREFIX, so dropping it also collects sibling packages whose names start the same way.