npm-package/SUMMARY.md
This npm package wraps the native bd (beads) binary for easy installation in Node.js environments, particularly Claude Code for Web.
npm-package/
├── package.json # Package metadata and dependencies
├── bin/
│ └── bd.js # CLI wrapper that invokes native binary
├── scripts/
│ ├── postinstall.js # Downloads platform-specific binary
│ └── test.js # Package verification tests
├── README.md # Package documentation
├── LICENSE # MIT license
├── .npmignore # Files to exclude from npm package
├── PUBLISHING.md # Publishing guide
├── CLAUDE_CODE_WEB.md # Claude Code for Web integration guide
└── SUMMARY.md # This file
@beads/bd (scoped to @beads organization)bd commandWhat it does:
npm installhttps://github.com/gastownhall/beads/releases/download/v{VERSION}/beads_{VERSION}_{platform}_{arch}.{ext}bin/ directorybd versionPlatforms supported:
npm install -g @beads/bdnode scripts/postinstall.jsbd version to confirmbd command is available globallybd <command>bin/bd.js executes✅ npm install: Successfully downloads and installs binary (darwin-arm64 tested) ✅ npm test: All tests pass (version check, help command) ✅ Binary execution: Native bd runs correctly through wrapper ✅ Version: Correctly reports bd version 0.21.5
npm loginnpm publish --access publicSee PUBLISHING.md for complete instructions.
All success criteria from bd-febc met:
Chosen approach: Native binary wrapper
Advantages:
Trade-offs:
Chosen approach: npm package
Advantages for Claude Code for Web:
Chosen approach: Scoped to @beads organization
Advantages:
Note: Requires creating @beads organization on npm.
Automated Publishing
Binary Caching
Integrity Verification
Progress Indicators
Platform Auto-Detection Fallback
npm Audit