How raisubham1024/bmm works
bmm is a local-first terminal bookmark manager. Users enter through either the scriptable CLI or keyboard-driven TUI; both support capturing, organizing, searching, and managing bookmarks stored locally in SQLite. The TUI also covers database switching and folders, backup/restore, link checks, browser/clipboard actions, and updating. The graph preserves the README’s major capabilities; some links between unsampled command handlers and storage are documented at the CLI level rather than verified in handler excerpts.
Main entry points: get.rs SQLite persistence · cli CLI commands · app.rs TUI runtime · commands.rs TUI commands
Components 29
User interfaces
- CLI commands
src/cli - Command arguments
src/args.rs
Bookmark workflows
- Bookmark model
src/domain/bookmark.rs - Tag model
src/domain/tags.rs - Save and import
src/cli/save.rs - Search and listing
src/cli/search.rs - Link checking
src/cli/check.rs - Description fetching
src/cli/fetch.rs - Tag management
src/cli/tags/rename.rs
Local data
- SQLite persistence
src/persistence/get.rs - Database setup
src/persistence/init.rs - Bookmark notes
src/persistence/notes.rs
Interactive experience
- TUI runtime
src/tui/app.rs - Event mapping
src/tui/message.rs - State transitions
src/tui/update.rs - View state
src/tui/model.rs - Terminal views
src/tui/view.rs - TUI commands
src/tui/commands.rs - Database ordering
src/tui/db_order.rs - Database folders
src/tui/folders.rs - TUI help
src/tui/help_content.rs
External actions
- Browser and clipboard
src/platform.rs - Backup and restore
src/tui/backup.rs - Self updater
src/self_update.rs
Other components
- Terminal user
- Websites
- System browser
- System clipboard
- Update download host
Connections 33
- Terminal user → Command arguments: provides options
src/args.rs - Command arguments → CLI commands: dispatches commands
src/cli/mod.rs - Terminal user → TUI runtime: opens interface
- CLI commands → Save and import: runs capture
src/cli/mod.rs - CLI commands → Search and listing: runs queries
src/cli/mod.rs - CLI commands → Link checking: checks links
src/cli/mod.rs - CLI commands → Description fetching: fetches descriptions
src/cli/mod.rs - CLI commands → Tag management: manages tags
src/cli/mod.rs - Save and import → SQLite persistence: saves bookmarks
src/cli/save.rs - Search and listing → SQLite persistence: queries bookmarks
src/cli/search.rs - Tag management → SQLite persistence: updates tags
src/cli/tags/rename.rs - SQLite persistence → Bookmark model: loads bookmark data
src/persistence/get.rs - Bookmark model → Tag model: uses tag data
src/domain/bookmark.rs - TUI runtime → Event mapping: maps input
src/tui/app.rs - TUI runtime → State transitions: updates state
src/tui/app.rs - TUI runtime → Terminal views: renders views
src/tui/app.rs - TUI runtime → TUI commands: executes commands
src/tui/app.rs - State transitions → View state: changes state
src/tui/update.rs - View state → Database ordering: orders databases
src/tui/model.rs - View state → Database folders: tracks folders
src/tui/model.rs - Terminal views → View state: renders state
src/tui/view.rs - Terminal views → TUI help: renders help
src/tui/view.rs - TUI commands → SQLite persistence: runs data commands
src/tui/commands.rs - TUI commands → Browser and clipboard: requests system actions
- TUI commands → Backup and restore: requests backup
- TUI commands → Self updater: requests updates
- SQLite persistence → Database setup: initializes storage
- Bookmark notes → SQLite persistence: stores notes
- Description fetching → Websites: fetches page details
- Link checking → Websites: checks links
- Browser and clipboard → System browser: opens links
- Browser and clipboard → System clipboard: copies links
- Self updater → Update download host: downloads binary
src/self_update.rs