Skip to content

docs: npm README as a front door for humans, agents and the npm index - #85

Merged
BitmapAsset merged 1 commit into
mainfrom
docs/npm-readme
Oct 29, 2026
Merged

BitmapAsset merged 1 commit into
mainfrom
docs/npm-readme

Conversation

@BitmapAsset

Copy link
Copy Markdown
Owner

The npm page today shows a 1,663-byte README with no image and nothing for agents. This rewrites npm/README.md (10,111 bytes) as a compressed front door, built from the repository README's first sections. Every claim is true of the published 0.13.0.

What the page has, in order: positioning line, hero, badges (CI, npm version, license) · "What it is, in 20 seconds" · "Install and try it in 30 seconds" (npm install -g probbit, then 7 lines with the expected output on each) · the flow diagram + four sentences (normalise → program → exact solve or sample → gate → receipt) · "Use it from your harness" (MCP, OpenClaw plugin, Node, Python or any language, wasm, CI) · "For AI agents reading this" · FAQ (5) · the wrapper's own section (platforms, sha256, --ignore-scripts, the four environment variables, exit codes), now last.

npm/package.json: description tightened (289 chars), keywords 15 → 20 (from the discoverability keyword table), homepage → https://bitmapasset.github.io/probbit/. Version unchanged (0.13.0). The page reaches npmjs.com only with the next publish (0.13.1, after a v0.13.1 GitHub release, because install.js fetches v<package version>).

Checks

  • Render: GitHub markdown API (gfm), 0 raw </> outside code; 5 images, all HTTP 200 image/*, PNG/JPG for the raw-GitHub ones (no .svg from raw GitHub, which serves it as text/plain); 19 links and command URLs, all 200 (npmjs.com answers 403 to curl, so the registry was checked: 200); npm pack --dry-run lists README.md.
  • Stranger test: fresh HOME, npm install -g probbit@0.13.0 into a temp prefix, every command of the try block and the harness table run line by line, extracted verbatim from the README. Linux x86_64: 12 PASS, 0 FAIL. macOS arm64: 12 PASS, 0 FAIL. Not run (3): claude mcp add and openclaw plugins install change a harness's configuration (probbit-stance is checked on npm instead: 0.2.0), and the wasm build needs Rust. The test found one bug in the first draft: node decide.mjs with no argument reads a file that exists only in a clone. The harness row now passes its own router document.
  • Scrape: 17/17 of the chosen keywords in the first 2,500 bytes, 1 H1.
  • Sweep (the discoverability pass's pattern): 0 hits on the README, package.json and every added line.

Compresses the repository front door into the npm page: positioning line, hero, badges, a 30-second try block (7 lines, expected output on each, stranger-tested against the published 0.13.0 on Linux and macOS), how one decision flows, a harness table, a block for AI agents, a 5-question FAQ, and the wrapper's install, checksum and environment details last. package.json: tighter description, 20 keywords, homepage = the front door. No version change.
@BitmapAsset
BitmapAsset merged commit d5453e9 into main Oct 29, 2026
20 checks passed
@BitmapAsset
BitmapAsset deleted the docs/npm-readme branch October 29, 2026 05:12
BitmapAsset added a commit that referenced this pull request Oct 29, 2026
…ELOG fix, front door, npm README, package metadata)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant