How dicklesworthstone/beads_viewer works
Beads Viewer is a local terminal application for exploring Beads issue-tracker data, with robot-oriented structured output and dependency analysis. The primary flow is to invoke the CLI, load a Beads workspace, analyze its issues and dependencies, then present results in the TUI or as machine-readable output. The README also highlights graph navigation and insights such as bottlenecks, cycles, and critical paths. The graph groups related implementation areas; some package links rely on the CLI import index, and the browser WASM algorithm integration is not established by the excerpts.
Components 21
Application entry
- CLI entry
cmd/bv/main.go - Robot output
cmd/bv/robot_registry.go
Workspace data
- Workspace loader
pkg/loader/loader.go - Workspace resolution
pkg/workspace/loader.go - Issue sources
internal/datasource - SQLite access
internal/datasource/sqlite.go - Issue model
pkg/model/types.go
Analysis and insights
- Dependency analysis
pkg/analysis/graph.go - Triage context
pkg/analysis/triage_context.go - Issue correlation
pkg/correlation - Semantic search
pkg/search - Drift detection
pkg/drift/drift.go - Metric baseline
pkg/baseline/baseline.go - Browser graph algorithms
bv-graph-wasm/src/algorithms - Directed graph core
bv-graph-wasm/src/graph.rs - Reachability queries
bv-graph-wasm/src/reachability.rs - What-if analysis
bv-graph-wasm/src/whatif.rs
User experience
- Terminal interface
pkg/ui - Background processing
pkg/ui/background_worker.go - Graph and reports
pkg/export
Other components
- User or agent
Connections 21
- User or agent → CLI entry: invokes
README.md - CLI entry → Workspace loader: loads workspace
cmd/bv/main.go - CLI entry → Workspace resolution: resolves workspace
cmd/bv/main.go - CLI entry → Issue sources: selects source
cmd/bv/main.go - Issue sources → SQLite access: reads database
- SQLite access → Issue model: maps issues
internal/datasource/sqlite.go - Workspace loader → Issue model: loads issues
- CLI entry → Dependency analysis: requests analysis
cmd/bv/main.go - CLI entry → Triage context: builds triage
- CLI entry → Issue correlation: requests correlations
cmd/bv/main.go - CLI entry → Semantic search: runs search
cmd/bv/main.go - CLI entry → Drift detection: checks drift
cmd/bv/main.go - Drift detection → Metric baseline: compares baselines
pkg/drift/drift.go - CLI entry → Terminal interface: launches interface
cmd/bv/main.go - Terminal interface → Background processing: uses worker
pkg/ui/background_worker.go - CLI entry → Robot output: formats robot output
cmd/bv/main.go - CLI entry → Graph and reports: generates exports
cmd/bv/main.go - Browser graph algorithms → Directed graph core: uses graph
bv-graph-wasm/src/algorithms/coverage.rs - Reachability queries → Directed graph core: queries graph
bv-graph-wasm/src/reachability.rs - What-if analysis → Directed graph core: analyzes graph
bv-graph-wasm/src/whatif.rs - Graph and reports → Browser graph algorithms: may embed algorithms