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

fairbooks-board-pack

v0.2.0

Published

Fairbooks Board Pack: an MCP agent that assembles a board pack from locked source figures and source documents, computes variances, compares with the prior pack, draws charts that trace to figure ids, drafts commentary that cites figure ids, and checks ev

Readme

Fairbooks Board Pack (fairbooks-board-pack)

Board pack assembly from locked source figures and documents, with variance commentary that cites its figures and a claims check on every number. Controller sign-off and distribution are each one human click.

Part of Fairbooks Machine domain agents: one agent, one process, nothing outside its lane. Built on fairbooks-core. MIT, Node ≥ 20, runs on your machine, no account or API key needed.

What it does

Give Fairbooks Board Pack a figures CSV (id, metric, period, actual, budget, prior, source) and the documents that go in the pack (Markdown or text). It:

  • locks the figures file by hash. A pack is only built from locked figures, and sign-off is refused if they change afterwards;
  • computes the variance of each figure against budget (or prior period when there is no budget) and flags material ones (materiality_abs, default 50,000, or materiality_pct, default 10%);
  • drafts commentary, one line per material variance, citing the figure id (for example [F1]). Each "Reason" is left as [TO WRITE] for the line owner, because Fairbooks Board Pack does not guess causes;
  • checks claims: every sentence with a number must cite a known figure id, and each number must match a value of a cited figure (actual, budget, prior, variance or variance %) at the precision written, so $1.23M matches 1,234,000 but 1.3M does not, and up 12% matches a 12.18% variance but up 12.3% does not. A hedge ("about", "roughly", "nearly", "~") widens the match to one full unit of the last digit. A percentage can also be a ratio or change between two cited figures (58.5% of revenue [F3, F1]). When a sentence uses only "up" words (up, above, over, rose…) or only "down" words (down, below, under, fell…), a number that matched a variance must have that sign, so "5,000 above budget" on a figure that is 5,000 under budget is flagged. It reports uncited numbers, unknown citations, mismatches and wrong directions;
  • compares with the prior pack: given last month's figures file, it flags prior-period values that no longer equal what was reported (restatements), same-period values that changed, new and dropped metrics and changed figure ids, and lists every sentence that cites an affected figure so its author can re-read it. With the prior pack-manifest.json it also checks the prior figures file is the one that pack was built from;
  • draws charts from the locked figures only: self-contained SVG (no scripts, no links, no external references) for variance, variance % and actual against budget. Every bar carries data-figure-id, data-field and data-value, and charts.json lists each point, so every mark traces to a figure id;
  • assembles board-pack.md (variance table, commentary, each document with its hash, figure sources, claims-check result), citations.csv and pack-manifest.json, and on request a self-contained board-pack.html (no scripts; the charts inline). The pack hash is recorded as output_sha256 in the audit line.

Sign-off names the pack by its hash. It is refused while claims issues or [TO WRITE] markers remain, unless the controller accepts them with a note, and refused if board-pack.md or board-pack.html changed after assembly. Distribution is refused unless the sign-off matches the current pack exactly. pack-manifest.json is validated against a JSON Schema whenever Fairbooks Board Pack reads it back (fairbooks-board-pack validate-config pack_manifest <file>).

Install

npm install -g fairbooks-board-pack
fairbooks-board-pack demo        # runs on the bundled fictional sample data

As an MCP server

Claude Code

claude mcp add fairbooks-board-pack -- npx -y [email protected] mcp --root /path/to/your/exports

Cursor / Claude Desktop / VS Code / Windsurf

{ "mcpServers": { "fairbooks-board-pack": { "command": "npx", "args": ["-y", "[email protected]", "mcp", "--root", "/path/to/your/exports"] } } }

--root is the only folder the tools can read or write. Paths outside it are refused.

Tools

| Tool | Policy | What it does | |---|---|---| | board_lock_figures | ask (Auto-eligible) | Record the figures file hash in figures.lock.json | | board_variance | allow | Variances and materiality, plus the lock state | | board_draft_commentary | ask (Auto-eligible) | Write commentary.md with cited lines and owner [TO WRITE] reasons | | board_check_claims | allow | Check every number in the documents against its cited figure | | board_compare_prior | allow | Restatements, new/dropped metrics and changed ids against the prior pack's figures, with the sentences they touch | | board_charts | allow | Write SVG charts and charts.json from locked, unchanged figures; every point traces to a figure id | | board_assemble_pack | allow | Write board-pack.md, citations.csv, pack-manifest.json, and board-pack.html with html: true (needs locked, unchanged figures) | | board_record_signoff | ask · one-click | After the controller's named click, write signoff.json for that pack hash | | board_request_distribution | ask · one-click | After a named click, record distribution of the signed pack | | board_portal_upload | block | Listed so agents see the refusal. Fairbooks Board Pack never uploads. | | send_email | block | Listed so agents see the refusal. Fairbooks Board Pack never sends. |

Any other tool name is blocked. fairbooks_info shows the pinned model, mode, caps and every decision.

MCP prompt

board_board_pack (arguments figures, docs, period, optional prior_figures) walks a host model through the whole workflow in order: variances, prior-pack comparison, lock, commentary draft, claims check, charts, assembly, and where the controller's sign-off and distribution clicks come in.

Modes

  • Review (--mode review): read and report only.
  • Assist (default): the policy above. ask returns an approval_id; a person approves once with fairbooks-board-pack approve <id> --as "Your Name".
  • Auto (--mode auto --auto <tool,...>): off by default, opt-in per action, with step/spend caps (--max-steps, --max-spend) and a kill switch (fairbooks-board-pack kill).

board_lock_figures and board_draft_commentary can go on Auto. A controller sign-off is an attestation and distribution is a send, so Fairbooks Board Pack files both under binding_send: they stay one-click even in Auto, and --auto on them is refused. Uploading and emailing stay blocked.

Go-live, revoking access, deleting personal data, moving money, legally binding sends and production deploys always need a person's click, in every Fairbooks pack.

CLI

fairbooks-board-pack tools
fairbooks-board-pack call board_check_claims '{"figures":"figures.csv","docs":["docs/ceo-letter.md","docs/ops-update.md"]}'
fairbooks-board-pack eval          # private evals on the bundled fixtures

Every call is written to .fairbooks/audit.jsonl (hash-chained JSONL; arguments stored as a hash). Read it with fairbooks-audit-evidence or npx -y -p fairbooks-core fairbooks-verify-log .fairbooks/audit.jsonl.

What it is not

  • Not a close or consolidation tool. It does not produce your figures; it checks that the pack matches the figures you lock.
  • The claims check is numeric. It cannot tell whether a sentence without numbers is true, and it checks values, not whether a figure id fits the sentence's meaning. The direction check is a word list (English only); it skips sentences that mix "up" and "down" words, and numbers that also match a level (actual, budget or prior).
  • Prior-pack comparison matches figures by metric name, then by id. A renamed metric shows up as one dropped and one new metric.
  • Charts are plain horizontal bars. They do not replace your board-deck design; amounts on one chart share one scale, so very large lines (such as cash) can dwarf small ones — use ids to chart a subset.
  • Not accounting or audit advice, and it never distributes anything.
  • Not fully autonomous: anything risky waits for a named person.

Data

Everything runs locally on files you choose. No network calls, no telemetry. The bundled fixtures are fictional.

License

MIT © 2026 Kurt Francisco. Source: https://github.com/fpavia111-creator/fairbooks-agents/tree/master/packages/fairbooks-board-pack