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

@harnessconfig/core

v1.0.0-alpha.10

Published

Alpha TypeScript core for the Harness config specification proposal: validation, projection, profiles, ignores, dir composition, and activation planning.

Readme

@harnessconfig/core

Website Specification npm @harnessconfig/core Security License

Alpha TypeScript reference implementation for the Harness config specification proposal.

Harness config lets tools validate, preview, and activate repository-owned AI agent configuration from a neutral .harness source tree into explicit runtime folders, while preserving files that the runtime owns after first projection.

Website: https://www.harnessconfig.dev/

Specification: https://www.harnessconfig.dev/specifications/v1/

API

  • resolveHarnessPaths(root, options): returns selected manifest, conventional .harness, and configured resources and dir source paths, expanding supported path patterns to existing directories.
  • parseHarnessConfigToml(raw): parses and validates a Harness config TOML manifest.
  • parseHarnessIgnore(raw): parses repo-relative .harnessIgnore rules.
  • parseHarnessMutable(raw): parses repo-relative .harnessMutable rules.
  • loadHarnessIgnoreMatcher(root): loads ignore rules for projection planning.
  • listHarnessProjectionTargets(config): returns the explicitly declared target-local paths.
  • resolveHarnessTargetRoot(root, target): resolves a target's optional parent plus required static path to the physical output root.
  • inferHarnessOverrideDirectory(path): derives the source override folder from a target path.
  • validateHarnessConfig(root): returns read-only issues and warnings.
  • planHarnessInitialization(root): returns an inspectable initialization plan.
  • applyHarnessInitialization(root, options): applies confirmed initialization actions.
  • planHarnessActivation(root, options): returns an idempotent copy projection plan for declared targets.
  • applyHarnessActivation(root, options): dry-runs by default and applies only when called with { yes: true }.
  • copyHarnessResourceItemProjection(options): applies the same copy, .harnessIgnore, and override rules to one resource item.
  • harnessResourceItemProjectionMatchesTarget(options): checks whether one resource item already matches a target copy.
  • planHarnessDir(root, config): returns the dir composition + copy plan for configured [[dir]] source roots, including .harnessComposable leaves.

This package does not run background services. Mutating helpers preview by default and require explicit confirmation before writing projection targets. It does not collect telemetry or make network requests; callers provide the repository files and receive validation, planning, and activation results locally.

The manifest defaults to ./.harness/harness.toml and may also be selected from another repo-local path by callers that pass configPath. The manifest may declare ordered [[resources]] source roots. If none are declared, resource projection is disabled.

The manifest may also declare ordered [[dir]] source roots. When present, planHarnessActivation and applyHarnessActivation walk those sources and produce dir outputs: directories carrying an empty .harnessComposable marker compose their numeric-prefix parts into one output file, and any other directory or file copies as-is to repo-relative paths. Dir outputs that fall under a declared [[targets]] path are merged into that target's projection, including targets with an external parent; outputs that would replace or contain a declared target root are rejected.

The manifest may also declare top-level extensions under [extensions.<id>]. Core validates the shared version and activation fields and preserves extension-owned fields for registered extension packages.

The core standard treats resource kinds as source-tree names under configured resources sources. skills, rules, hooks, and plugins are conventions, not reserved schema concepts, and direct files such as .harness/resources/hooks.json can project to target roots when using the default source path. Targets are explicit outputs with required static target-local paths and optional parents; source paths and target parents may use wildcard patterns, but no target folder name is created, reserved, or projected by default.

Use the activation helpers when a consuming tool projects resource views into a live harness. Source catalogs can contain metadata, logs, or local state, but matched files are excluded by .harnessIgnore or marked seed-only by .harnessMutable. Repeated activation with the same inputs, cleanup policy, and mutable policy should produce the same target tree.

.harnessIgnore can be repo-root, source-local under .harness, the configured resources sources, or configured dir sources, or target-output-local under existing target/output folders. Target-output rules match final output paths and existing target-output .harnessIgnore files are preserved during cleanup. Precedence uses logical directory depth: profile ignores run at their overlay location, target-derived override ignores run at their logical source and target locations, and target-output ignores remain the final boundary.

.harnessProfile selectors can activate .harnessProfileRoot overlays under .harness, a configured resources source, or a configured dir source. Active profile roots merge by logical source path for resources and dir outputs; generic profile overlays do not beat target-specific resource overrides. Profile-local .harnessIgnore files can suppress base files or composable parts. Optional .harnessProfileIsolation files can suppress matching non-profile resource and dir candidates while preserving active same-name profile roots and unrelated paths.

Unmanaged target entries are preserved by default and reported at one level; pass { cleanupUnmanaged: "remove" } to plan and apply explicit cleanup. Files declared mutable in .harnessMutable are created once from source and skipped on later activations because the live target bytes are runtime-owned. Managed target files that differ from the current projection are reported as updates by direct comparison and overwritten on apply. Target symlinks that occupy projected paths are conflicts unless the selected target symlink policy is "replace".