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

@burdenoff/toolchain

v2026.1205.1

Published

Shared Burdenoff build toolchain: tsconfig bases, ESLint profiles and the boff CLI (sanity, gate, coverage-gate, doctor, sync).

Readme

@burdenoff/toolchain

The shared build toolchain for every Burdenoff repository: TypeScript 7-clean tsconfig bases, ESLint profiles, the bunfig and lefthook managed blocks, a knip base, and the boff CLI (sanity, gate, coverage-gate, doctor, sync, deps-mode, workflow-policy).

It exists so that a lint-rule tweak or a sanity fix ships once, through one exact-pinned devDependency, instead of through ~700 drifted copies of check-coverage.sh, deps-mode.ts, build-limits.sh, Prettier and ESLint configs (plan: infra-specs/engineering/toolchain/00-bun-native-toolchain-migration-plan.md, sections 5, 7 and 9; ticket BOFF-10675).

  • Source: algoshred/toolchain (private). Package: @burdenoff/toolchain on npmjs (public, so PR jobs need no token).
  • Bun: 1.4.4 (.bun-version, packageManager: [email protected], engines.bun: >=1.4.4).
  • Versioning: CalVer YYYY.MDD.PATCH, published by build-publish.yml on every push to main, tagged v<version>. Publishing uses npm trusted publishing (OIDC, no npm token): the trusted publisher is registered for Algoshred/toolchain and build-publish.yml, so that file must keep its name.

Install

Pin the exact version (the fleet installs with --frozen-lockfile, so a caret range would never move anyway):

bun add -d --exact @burdenoff/toolchain@<version>
{
  "devDependencies": {
    "@burdenoff/toolchain": "<version>",
    "eslint": "^9.39.0",
    "@types/bun": "^1.4.4"
  }
}

The ESLint plugins (typescript-eslint, eslint-plugin-sonarjs, eslint-plugin-security, eslint-plugin-import, eslint-plugin-eslint-comments, eslint-plugin-react, eslint-plugin-react-hooks, @eslint/js, globals) are dependencies of the toolchain. Consumers keep only eslint itself (and typescript where typed linting or .d.ts emit runs) and remove their own copies of those plugins plus prettier, @trivago/prettier-plugin-sort-imports, eslint-plugin-prettier and eslint-config-prettier.

Then:

bunx boff sync --type <type> --scripts   # bunfig + lefthook blocks, scripts, boff.type
bunx boff doctor                          # what still needs attention
bun run sanity

Consumer contract

Repo types

boff keys its defaults off package.json → boff.type:

svc, gateway, be-sdk, mfe, fe-libs, app, website, docs, cli, mcp, sdk-node, browser-ext, vscode-ext, plugin, doctor, lib.

When boff.type is absent the type is inferred from fleet naming (wspace-*-svc, *-gateway, microfe-*, *-app, *-website, ...), falling back to lib. Declare it explicitly.

tsconfig

Every base is TypeScript 7 clean: no baseUrl (a hard error in bun check), an explicit types array (TypeScript 7 defaults it to []), bundler or Node16 resolution, and no composite/declaration except backend-library.json.

| Base | For | Notes | | --------------------------------- | -------------------------- | ------------------------------------------------------------------------------------------------- | | tsconfig/base.json | anything | strict, ES2022, bundler resolution, types: [], noEmit | | tsconfig/backend.json | svc | types: ["bun"], decorators + metadata, noUncheckedIndexedAccess, unused locals left to ESLint | | tsconfig/backend-library.json | be-sdk | backend + composite, declaration, declarationMap for .d.ts emit | | tsconfig/gateway.json | gateways | types: ["bun"], unused locals/parameters as errors | | tsconfig/react-lib.json | fe-libs, MFEs | DOM libs, jsx: react-jsx, customConditions: ["types"], types: ["vite/client"] | | tsconfig/react-app.json | app shells, websites | react-lib + noUncheckedSideEffectImports, useDefineForClassFields | | tsconfig/node-lib.json | cli, mcp, sdk-node, plugin | types: ["bun"], isolated modules | | tsconfig/browser-extension.json | browser extensions | DOM libs, types: ["chrome"], emits for ts-loader | | tsconfig/vscode-extension.json | code extensions | CommonJS through Node16, types: ["node", "vscode"], emits for mocha |

baseUrl is forbidden (boff doctor fails on it). Write paths values relative to the tsconfig with a leading ./. types in your tsconfig replaces the base's array; repeat the base entries you still need (for example ["vite/client", "bun"] in an MFE whose tests run on bun test). extends resolves relative paths (include, outDir, paths) against the file that declares them, so keep those in your own tsconfig.

// svc
{
  "extends": "@burdenoff/toolchain/tsconfig/backend.json",
  "compilerOptions": {
    // Repeat these two: Bun's transpiler reads decorator options from the nearest
    // tsconfig only, not through `extends` (oven-sh/bun#6326).
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "paths": { "#/*": ["./src/*"], "#generated/*": ["./src/generated/*"] },
  },
  "include": ["src"],
  "exclude": ["**/*.test.ts"],
}
// mfe (bun check -b follows the reference into tsconfig.node.json)
{
  "extends": "@burdenoff/toolchain/tsconfig/react-lib.json",
  "compilerOptions": { "types": ["vite/client", "bun"], "paths": { "#src/*": ["./src/*"] } },
  "include": ["src"],
  "references": [{ "path": "./tsconfig.node.json" }],
}
// app shell / website
{ "extends": "@burdenoff/toolchain/tsconfig/react-app.json", "include": ["src"] }
// gateway
{ "extends": "@burdenoff/toolchain/tsconfig/gateway.json", "include": ["src"] }
// cli / mcp / sdk-node / plugin
{ "extends": "@burdenoff/toolchain/tsconfig/node-lib.json", "include": ["src"] }
// browser extension
{
  "extends": "@burdenoff/toolchain/tsconfig/browser-extension.json",
  "compilerOptions": { "outDir": "dist", "types": ["chrome", "bun"], "paths": { "@/*": ["./src/*"] } },
  "include": ["src"]
}
// code extension
{
  "extends": "@burdenoff/toolchain/tsconfig/vscode-extension.json",
  "compilerOptions": { "outDir": "out", "rootDir": "src" },
  "include": ["src"]
}

ESLint (eslint.config.js)

// svc (be-sdk's factory, same rules and per-path overrides)
import backend from '@burdenoff/toolchain/eslint/backend';
export default backend(import.meta.dirname, { project: './tsconfig.json', ignores: ['scripts/**'] });

// gateway (typescript-eslint strictTypeChecked + stylisticTypeChecked, projectService)
import gateway from '@burdenoff/toolchain/eslint/gateway';
export default gateway(import.meta.dirname);

// mfe / fe-libs / app / website (raw-colour guard, Dialog restriction, react-hooks v7)
import { createEslintConfig } from '@burdenoff/toolchain/eslint/react';
export default createEslintConfig({ ignores: ['src/generated/**'], rawColors: 'error' });

// cli / mcp / sdk-node / plugin / code extension (no Prettier plugin)
import node from '@burdenoff/toolchain/eslint/node';
export default node({ ignores: ['out/**'] });

// browser extension (node + browser and webextension globals, chrome)
import browser from '@burdenoff/toolchain/eslint/browser';
export default browser();

@burdenoff/toolchain/eslint/react also exports rawColorRestrictedSyntax, RAW_COLOR_PATTERN and PALETTE_CLASS_PATTERN for repos with a standalone config. Typings ship in eslint/*.d.ts (eslint/index.d.ts holds the shared option types).

Browser-extension tests (testing/browser-extension)

Browser extensions run bun test with happy-dom and a chrome.* mock instead of jest + jsdom. Add @happy-dom/global-registrator as a devDependency (an optional peer of the toolchain), then preload the toolchain entry before the repository's own setup file:

[test]
preload = ["@burdenoff/toolchain/testing/browser-extension/preload", "./tests/setup.ts"]

The preload registers happy-dom (window, document, ...) and adds the jest APIs Bun 1.4.4 lacks to Bun's jest object: jest.isMockFunction, jest.runAllTimersAsync, jest.advanceTimersByTimeAsync, jest.resetModules, jest.isolateModules and jest.isolateModulesAsync (the last three work on Bun's require registry, so require() inside them returns fresh application modules; static imports keep their bindings). The module @burdenoff/toolchain/testing/browser-extension exports them plus:

| Export | Replaces | | ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | installChromeMock(overrides?) / createChromeMock(overrides?) | the hand-written mockChrome trees in tests/setup.ts (every function a bun:test mock, every event with addListener/removeListener/hasListener; overrides merge deeply) | | resetMockTree(tree, { mode }) | the per-test loops that mockReset() every chrome mock | | automock(moduleNamespace) | jest.mock(path) without a factory: import * as m from './x'; jest.mock('./x', () => automock(m)); | | importFresh(specifier, import.meta.url) | a fresh ESM instance of one module (the async alternative to jest.isolateModules) |

Run the suite with "test": "bun test --isolate" (list test under boff.scripts.unmanaged): Bun's mock.module is process-wide, so without --isolate a module mocked in one file stays mocked in the files after it. For type-checked tests add "bun", "bun-types/test-globals" and "@burdenoff/toolchain/testing/browser-extension" to types; the last one declares the jest additions above, jest.mock(id, factory) and the global jest.Mock type. A test file that imports anything from bun:test loses the injected globals (describe, jest, ...), so either import every one you use or none.

Bun's expect(promise).rejects / .resolves waits for the promise as soon as the matcher is created. The jest idiom "create the expectation, run the fake timers, then await the expectation" therefore hangs; attach a handler, run the timers, then assert:

const promise = client.query('q');
promise.catch(() => undefined);
await jest.runAllTimersAsync();
await expect(promise).rejects.toThrow('Rate limit exceeded');

bunfig.toml managed block

boff sync writes these keys between the marker lines # >>> boff managed (do not edit) and # <<< boff managed:

[install]
minimumReleaseAge = "3d"
minimumReleaseAgeExcludes = [ ...every package in the fleet's npm scopes... ]

[test]
coverageReporter = ["text", "lcov"]

TOML forbids defining a table twice, so when the repo already has [install] or [test], the managed keys go inside that table between the markers; otherwise the table is created (before any [install.*] sub-table). Everything outside the markers ([install.scopes], [test] preload, ...) is the repo's and is never touched; an unmarked copy of a managed key is replaced (it would be a duplicate key). When boff sync created the table itself (its header sits inside the markers) and keys were later added below the end marker, those keys belong to that table in TOML, so the next sync moves the header out of the markers instead of re-parenting them. The result is validated with Bun.TOML.parse: the managed keys must read back as written and every setting outside the managed block must parse exactly as before (otherwise boff sync fails and leaves the file alone). The test suite also runs bun install --frozen-lockfile --dry-run against a synced file.

minimumReleaseAge = "3d" is a duration string, which Bun 1.4+ only understands: Bun 1.3.x rejects the whole file ("Invalid Bunfig"). Run boff sync in the same commit that sets .bun-version to 1.4.4 (boff sync prints a note when the pin is older or missing).

minimumReleaseAge has no scope wildcard, so the excludes list names every package the fleet publishes; it ships as bunfig/release-age-excludes.json (regenerated from the registry with bun run gen:excludes). boff sync --refresh-excludes merges the live list from the registry (NPM_TOKEN adds private packages). A sync never removes entries already present.

CI must use the committed bunfig.toml: no cat > bunfig.toml heredocs and no --mount=type=secret,...,target=/app/bunfig.toml in Dockerfiles. boff doctor --ci fails on both and on a bunfig.toml that differs from HEAD after install.

lefthook

boff sync manages the pre-push block of lefthook.yml (when the repo uses lefthook):

# >>> boff managed (do not edit)
pre-push:
  commands:
    sanity:
      run: ./node_modules/.bin/boff sanity --pre-push
# <<< boff managed

boff owns the whole pre-push: key: an unmanaged pre-push block, and any lines indented under the managed one after its end marker, are replaced and reported by boff sync. Put other hooks under their own top-level keys.

lefthook/base.yml holds the whole recommended set (pre-commit deps-guard, pre-push sanity, post-commit deps-restore) for extends:.

knip

// knip.config.ts
import { knipConfig } from '@burdenoff/toolchain/knip/base';
export default knipConfig({ entry: ['src/index.ts'], project: ['src/**/*.ts'] });

Vite chunk budget (app shells)

// vite.config.ts
import { chunkBudget } from '@burdenoff/toolchain/vite/chunk-budget';
export default defineConfig({
  plugins: [react(), chunkBudget({ initialGzipKiB: 1150, chunkGzipKiB: 400, ignore: [/pdf\.worker/] })],
});

After the bundle is generated, the plugin gzips every JS chunk and fails the build when the initial load (entry chunks plus their static imports) or any single chunk not matched by ignore is over budget. Record each shell's current sizes first and set the budget a little above them (plan section 11.3); mode: 'warn' reports without failing.

package.json

{
  "packageManager": "[email protected]",
  "engines": { "bun": ">=1.4.4" },
  "boff": {
    "type": "svc", // repo type (see above)
    "sanity": {
      "steps": ["format", "lint", "typecheck"], // optional: replaces the type's default step list
      "extra": ["check:migration"], // optional: package.json scripts run as extra steps
      "formatPaths": ["src", "tests"], // optional: limit bun fmt (default: whole repo)
      "codegenCommitted": [".hive-schema.graphql"], // optional: files codegen must leave unchanged
    },
    "coverage": {
      "global": 70, // aggregate lines + functions floor (%)
      "lines": 63, // optional: lines floor (%), overrides global for lines
      "functions": 84, // optional: functions floor (%), overrides global for functions
      "diff": 80, // changed-lines floor (%)
      "exclude": ["src/legacy/**"], // extra lcov excludes
    },
    "scripts": { "unmanaged": ["test"] }, // keys boff sync --scripts must leave alone
    "depsMode": {
      // optional, for boff deps-mode
      "paths": { "@burdenoff/be-sdk": "../../../burdenoff-be-sdk-node" },
      "stateFile": ".vibe-env.json",
    },
  },
}

Unknown keys under boff are rejected, so a typo never passes silently.

boff sync --scripts writes these scripts (per type):

| Script | Value | | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | type:check | boff gate -- bun check --no-pretty (-b for mfe, fe-libs, website; -p tsconfig.typecheck.json for app shells that have one; vscode-ext also checks src/webview-ui/tsconfig.json when present) | | format / format:check | bun fmt / bun fmt --check (plus formatPaths) | | lint | eslint . | | test | bun test (not for vscode-ext and docs) | | sanity / sanity:force | boff sanity / boff sanity --force | | audit | bun audit --audit-level=high |

docs repos get only sanity, sanity:force and audit.

CLI

boff <command> [options]

boff sanity

The hash-stamped sanity runner (plan section 9).

boff sanity [--force] [--only step,...] [--print-keys] [--pre-push]
  • Steps, in order: format, codegen, gendb, migrate, lint, typecheck, build, test, knip, audit, then boff.sanity.extra scripts. Default lists per type:

    | Type | Steps | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- | | svc | format, codegen, gendb, migrate, lint, typecheck, build, test, knip | | mfe, app | format, codegen, lint, typecheck, build, test | | gateway, be-sdk, fe-libs, website, cli, mcp, sdk-node, browser-ext, vscode-ext, plugin, lib | format, lint, typecheck, build, test | | doctor | format, lint, typecheck, test | | docs | build |

    A step that does not apply (no codegen script, no eslint config, no test files, no DATABASE_URL for migrate, ...) is skipped with the reason printed. With an explicit boff.sanity.steps list a step that cannot run is a configuration error (exit 2), except migrate without a database.

  • Commands: bun fmt --check; bun run codegen plus git diff --exit-code on committed outputs (.hive-schema.graphql for svc); bun run gendb; bun run migrate:deploy; bun run lint --cache (or eslint . --cache); bun run type:check (or bun check --no-pretty [-b]); bun run build:bundle (svc) / bun run build; bun test --coverage --reporter=junit followed by boff coverage-gate (svc, gateway, be-sdk, or any repo with boff.coverage.global), or bun run test when the test script is not bun test; knip --cache; bun audit --audit-level=high. A script named sanity:<step> overrides any built-in command.

  • Keys: sha256 over a base (package.json, bun.lock, bunfig.toml, .bun-version, toolchain version, Bun version, CI flag, repo type), the step's commands, the contents of its input files (from git ls-files -co --exclude-standard, so untracked-but-not-ignored files count) and the keys of the steps it depends on (lint/typecheck/test fold in codegen and gendb; build folds in typecheck). migrate also folds in a hash of host:port/db of the local DATABASE_URL (never the URL) and expires after 24 hours.

  • Stamps: an empty file node_modules/.cache/sanity/<step>.<key>, written only when the step exits 0; timings.jsonl beside them records {step,key,ms,rc,ts} for every executed step. Output is teed to sanity.log. Each step is spawned directly and its own exit code is used; the runner exits with the first failing step's code. SIGINT/SIGTERM kill the running step, remove partial state and exit 130/143.

  • Gate: keys are computed before a build slot is taken. A full cache hit exits immediately; otherwise one slot is held for all missed steps and BOFF_BUILD_SLOT_HELD=1 is exported so nested boff gate, with-buildslot.sh and build-limits.sh --gate calls do not re-gate. Output steps re-run whenever a step that reads their gitignored output runs, because a stamp records that a step passed, not its output, and CI restores stamps without it: the generators (codegen, gendb) for the steps that fold them in, and build (with the generators it reads through typecheck) for every boff.sanity.extra script, so a smoke test that packs or loads dist/ never runs against a missing or stale build.

  • --force / SANITY_FORCE=1 ignore stamps (use on main and releases). --only a,b runs a subset. --pre-push (and BOFF_GATE_STRICT=1) fail with exit 75 instead of running ungated when no slot frees in time.

  • --print-keys (alias: boff print-keys) prints step=key lines and all=<key> without running anything.

boff gate -- <command>

boff gate [--pre-push] -- <command> [args...]

The machine-wide build semaphore with thread caps (plan section 5 item 7).

| Variable | Default | Meaning | | ---------------------- | ---------------------- | -------------------------------------------------------------------- | | BOFF_BUILD_SLOTS | clamp(cores/8, 1, 4) | concurrent heavy commands per machine | | BOFF_BUILD_THREADS | clamp(cores/4, 2, 8) | thread cap exported to children | | BOFF_BUILD_WAIT | 900 | seconds to wait for a slot | | BOFF_GATE_STRICT | unset | 1: fail (exit 75) on timeout instead of running ungated | | BOFF_BUILD_SLOT_HELD | unset | 1: an ancestor holds a slot; run directly (set by the gate itself) | | BUILDSLOT_HELD | unset | legacy re-entrancy flag from with-buildslot.sh, honoured too | | BOFF_BUILD_SLOT_DIR | see below | override the lock root | | BOFF_GATE_IN_CI | unset | 1: take slots even when CI=true |

  • Lock root: /run/user/$UID/boff-build-slots, falling back to $HOME/.cache/boff/build-slots. Never /tmp and never derived from TMPDIR, so every session, container build and agent on the machine shares one pool. Locks are flock(2) (released by the kernel when the holder dies).
  • The command runs under nice -n 10 and ionice -c3 when available.
  • Exported to the command: BOFF_BUILD_THREADS, RAYON_NUM_THREADS, ROLLDOWN_WORKER_THREADS, ROLLDOWN_MAX_BLOCKING_THREADS, and the held flags.
  • Injected flags when absent: --threads=N into bun check and bun fmt, --parallel=N into bun test --parallel, --maxWorkers=N into vitest.
  • CI=true: the runner is a dedicated machine, so no slot is taken; thread caps still apply. Inside a Docker build without /run/user, the $HOME/.cache fallback is used.

boff coverage-gate

boff coverage-gate [--lcov coverage/lcov.info] [--global N] [--lines N] [--functions N] [--diff N]
                   [--compare-branch REF] [--no-diff] [--run-tests]

Replaces every scripts/check-coverage.sh (no python, no diff-cover).

  • Reads coverage/lcov.info; drops generated code, tests and node_modules (**/generated/**, **/*.generated.ts, **/__tests__/**, **/*.test.*, **/*.spec.*, src/test/**, test/**, tests/**) plus boff.coverage.exclude.
  • Aggregate: summed lines and functions must each reach the global threshold (--global, else GLOBAL_THRESHOLD, else boff.coverage.global, else 80). A repo whose current gate has different floors per metric sets boff.coverage.lines / boff.coverage.functions (--lines/--functions, LINES_THRESHOLD/FUNCTIONS_THRESHOLD); each defaults to the global one. --lcov takes a path relative to the repo root or an absolute path.
  • Diff: lines added since the merge base with COMPARE_BRANCH (default origin/main, git diff -U0) that lcov instruments must reach the diff threshold (--diff, DIFF_THRESHOLD, boff.coverage.diff, else 80). When the base ref is missing the diff check is skipped locally and fails in CI (use fetch-depth: 0).
  • Prints a table plus the uncovered changed lines, exits 1 on failure. --run-tests runs bun [--env-file=.env.local] test --coverage first, as a drop-in for the old script.

Never lower an existing threshold when migrating; copy the repo's current GLOBAL_THRESHOLD/DIFF_THRESHOLD defaults into boff.coverage.

boff doctor [--ci]

Checks: .bun-version is 1.4.4; packageManager and engines.bun; no baseUrl in any tsconfig; managed blocks present and unmodified (sync --check, including scripts when boff.type is set); no cat > bunfig.toml in workflows or composite actions and no bunfig secret mount in Dockerfiles; no literal bun-version: and no oven/bun:<other> base; oven-sh/setup-bun pinned by full SHA; a pull_request workflow with a job named exactly PR Gate; bunfig.toml unchanged versus HEAD. Without --ci failures are warnings (exit 0); with --ci any failure exits 1.

boff sync

boff sync [--check] [--type <type>] [--scripts] [--refresh-excludes]

Writes the bunfig and lefthook managed blocks; --scripts also writes the per-type scripts; --type records boff.type. Idempotent. --check writes nothing and exits 1 on drift.

boff deps-mode

boff deps-mode <status|remote|local|check> [--silent] [--skip-install]
boff deps-mode guard <pre-commit|post-commit>

Replaces the scripts/deps-mode.ts and scripts/deps-guard.sh copies. remote (alias npm) restores @burdenoff/* values from git HEAD (falling back to the installed or published version); local (alias workspace) rewrites them to workspace:* for an MFE inside a Bun workspace root, file: paths for app shells, and relative paths for svc/gateway/sdk repos (found from boff.depsMode.paths, deps-local-paths.json, or the fleet's directory conventions). check fails on any local reference in package.json or bun.lock (CI gate). The guard hooks keep commits registry-only and restore local mode afterwards (python-free).

boff workflow-policy [root]

The TypeScript port of check-workflow-policy.sh: pinned-uses, floating-latest, remote-script, exact-exec, frozen-install, unsafe-interpolation, hashed-pip. Prints GitHub error annotations; exit 0 clean, 1 violations, 2 usage error.

root is the repository root (.github/workflows/* and .github/actions/**/action.yml under it); passing the .github directory itself checks its repository. Local ./ actions and same-repository $/ references (resolved at the commit the workflow runs from) count as pinned.

boff version

Prints the toolchain version (boff --version).

CI usage

Restore the sanity stamps with keys from print-keys, then run sanity:

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
  with:
    bun-version-file: .bun-version
- run: bun install --frozen-lockfile
- run: bunx boff doctor --ci
- id: keys
  run: bunx boff print-keys >> "$GITHUB_OUTPUT"
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
  with:
    path: |
      node_modules/.cache/sanity
      node_modules/.cache/eslint
      node_modules/.cache/tsc
    key: sanity-${{ runner.os }}-${{ steps.keys.outputs.all }}
    restore-keys: sanity-${{ runner.os }}-
- run: bunx boff sanity

On main and release runs use boff sanity --force. Keep the required PR Gate job in the caller workflow (if: always(), failing unless every needed job succeeded).

Developing the toolchain

bun install --frozen-lockfile
bun check --no-pretty
bun fmt --check
bun run lint
bun run test:coverage     # unit tests + boff coverage-gate on itself (>= 80%)
bun run selftest          # every fixture through boff sanity
bun run build             # dist/cli.js (+ dist/knip/base.js, dist/vite/chunk-budget.js)

fixtures/<type> holds one minimal repo per type (svc, gateway, be-sdk, mfe, app, website, cli, mcp, sdk-node, browser-ext, vscode-ext, plugin, lib). The selftest copies each into .selftest/, links this checkout as node_modules/@burdenoff/toolchain, runs boff sync, boff doctor --ci and boff sanity cold and warm, introduces a type error (must fail and leave no stamp) and a formatting-only change (must invalidate only the format key).

Rule: a toolchain change must keep every fixture green. If a change needs consumer-side edits, change the fixture in the same commit so the selftest shows exactly what consumers must do. The PR workflow runs static checks, unit tests with the coverage gate, the build smoke test and the selftest, and PR Gate fails unless all of them pass. A published version that breaks a consumer is rolled back by re-pinning the previous version (never unpublish).