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

@auron-labs/harness-detect

v0.2.1

Published

Detect installed LLM harnesses and their config/state locations.

Downloads

238

Readme

@auron-labs/harness-detect

Detect installed LLM harnesses and resolve their config/state paths from a curated JSON registry. The package is dependency-free and targets Node.js 18+.

This is the TypeScript package in a multi-language monorepo that also includes Go, Rust, and Python ports.

Installation

bun add @auron-labs/harness-detect

Supported distribution targets are npm (@auron-labs/harness-detect), Go modules (github.com/auron-labs/harness-detect/packages/golang/harnessdetect, released by packages/golang/vX.Y.Z tags), crates.io (harness-detect), and PyPI (harness-detect). Before the first public release for an ecosystem, these install commands are the intended consumer coordinates and may not resolve yet.

Quick usage

import { checkHarness, detectHarnesses } from "@auron-labs/harness-detect";

const installed = detectHarnesses().filter((result) => result.installed);
const claude = checkHarness("claude-code");

console.log(installed.map((result) => result.key));
console.log(claude.installed, claude.reasons, claude.matchedPaths);

Detection semantics

A harness counts as installed when either of these is true:

  • a matching executable is found on PATH
  • one or more known config, state, cache, install, or project paths exist

Exported APIs

  • getRawHarnessData() returns the full registry object and is the preferred raw-registry API.
  • getHarnessMatrix() is a backwards-compatible alias for getRawHarnessData().
  • listHarnesses() returns the registry's harnesses array.
  • getHarnessSupport returns support metadata for one harness key or alias.
  • listHarnessSupport() returns support metadata for every harness.
  • checkHarness(input, options?) checks one harness key or alias and returns resolved paths, matches, and reasons.
  • detectHarnesses(options?) checks every registry entry and returns all results.
  • detectInstalledHarnesses(options?) returns only installed results.

Both checkHarness(), detectHarnesses(), and detectInstalledHarnesses() accept optional { env, cwd } overrides for path resolution.

Exported data registry

The preferred programmatic raw-registry API is getRawHarnessData(). The package also keeps the @auron-labs/harness-detect/data JSON export for direct registry access.

import { createRequire } from "node:module";

const require = createRequire(import.meta.url);
const harnesses = require("@auron-labs/harness-detect/data");

console.log(harnesses.version);
console.log(harnesses.harnesses.length);

The package exports its local copy at data/harnesses.json, and the canonical monorepo source of truth lives at packages/data/harnesses.json. Each entry includes executables, path templates, environment variable notes, and source URLs used to curate the metadata.

Development commands

See ../../docs/maintainers.md for the full command reference, smoke test details, and the registry editing procedure.

Related guides:

When editing registry data, update packages/data/harnesses.json, run mise run registry:sync, then mise run registry:check. CI uses the read-only registry:check step; the ./data export remains supported for existing consumers.

Support and contribution docs