@beads/bd

中文文档
1.3.4发布于 2026/11/04MITCommonJS零依赖构建来源已验证近 30 天下载 4.3万

Beads issue tracker - lightweight memory system for coding agents with native binary support

原始使用文档
文档目录10 节
  1. Installation
  2. What is Beads?
  3. Quick Start
  4. Common Commands
  5. Claude Code for Web Integration
  6. Platform Support
  7. Full Documentation
  8. Why npm Package vs WASM?
  9. License
  10. Support

@beads/bd - Beads Issue Tracker

npm version License: MIT

Give your coding agent a memory upgrade

Beads is a lightweight memory system for coding agents, using a graph-based issue tracker. This npm package provides easy installation of the native bd binary for Node.js environments, including Claude Code for Web.

Installation

npm install -g @beads/bd

Or as a project dependency:

npm install --save-dev @beads/bd

What is Beads?

Beads is an issue tracker designed specifically for AI coding agents. It provides:

  • ✨ Zero setup - bd init creates project-local database
  • 🔗 Dependency tracking - Four dependency types (blocks, related, parent-child, discovered-from)
  • 📋 Ready work detection - Automatically finds issues with no open blockers
  • 🤖 Agent-friendly - --json flags for programmatic integration
  • 📦 Version-controlled - Dolt database with full history and branching
  • 🌍 Distributed by design - Share one logical database via Dolt remotes

Quick Start

After installation, initialize beads in your project:

bd init

Then tell your AI agent to use bd for task tracking instead of markdown:

echo "Use 'bd' commands for issue tracking instead of markdown TODOs" >> AGENTS.md

Your agent will automatically:

  • Create and track issues during work
  • Manage dependencies between tasks
  • Find ready work with bd ready
  • Keep long-term context across sessions

Common Commands

# Find ready work
bd ready --json

# Create an issue
bd create "Fix bug" -t bug -p 1

# Show issue details
bd show bd-a1b2

# List all issues
bd list --json

# Start work
bd update bd-a1b2 --claim

# Add dependency
bd dep add bd-f14c bd-a1b2

# Close issue
bd close bd-a1b2 --reason "Fixed"

Claude Code for Web Integration

To auto-install bd in Claude Code for Web sessions, add to your SessionStart hook:

# .claude/hooks/session-start.sh
npm install -g @beads/bd
bd init --quiet

This ensures bd is available in every new session without manual setup.

Platform Support

This package downloads the appropriate native binary for your platform:

  • macOS: darwin-amd64, darwin-arm64
  • Linux: linux-amd64, linux-arm64
  • Windows: windows-amd64

Full Documentation

For complete documentation, see the beads GitHub repository:

Why npm Package vs WASM?

This npm package wraps the native bd binary rather than using WebAssembly because:

  • ✅ Full SQLite support (no custom VFS needed)
  • ✅ All features work identically to native bd
  • ✅ Better performance (native vs WASM overhead)
  • ✅ Simpler maintenance

License

MIT - See LICENSE for details.

Support

版本与发布记录

@beads/bd 共发布 76 个版本,首次发布于 2025/11/04;过去 12 个月发布了 71 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.3.4latest2026/11/043 天前
1.3.32026/11/043 天前
1.3.22026/10/2414 天前
1.3.12026/10/011 个月前
1.3.02026/09/161 个月前
1.2.22026/08/152 个月前

关于 @beads/bd 的常见问题

@beads/bd 是什么?

Beads issue tracker - lightweight memory system for coding agents with native binary support

如何安装 @beads/bd?

在项目目录运行 npm install @beads/bd,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 bd,可以用 npx bd 直接运行。

@beads/bd 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/beads__bd 是否存在。

@beads/bd 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@beads/bd 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=14.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@beads/bd 可以商用吗?

@beads/bd 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@beads/bd 的下载量有多少?

根据 npm 官方下载统计,@beads/bd 在 2026/10/08 – 2026/11/06 这 30 天内被下载 42,520 次,日均约 1,417 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@beads/bd 还在维护吗?

最新版本 1.3.4 发布于 2026/11/04(3 天前);至今共发布 76 个版本,其中过去 12 个月发布了 71 个;首次发布于 2025/11/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。