bkmr
Beyond Bookmarks: A CLI Knowledge Management System
bkmr - selected crate of the week 482 - is a fast, feature-rich command-line tool that extends far beyond traditional bookmark management.
Organize, find, and apply your various content types:
- Web URLs with automatic metadata extraction
- Code snippets for quick access and reuse
- Shell commands with execution capabilities
- Markdown documents with live rendering
- Plain text with template interpolation
- Local files and directories
- Semantic embeddings for AI-powered search
Why bkmr?
- Developer-focused: Integrates seamlessly with your workflow and toolchain
- Multifunctional: Handles many content types with context-aware actions
- Intelligent: Full-text and semantic search capabilities
- Privacy-focused: Local database, no cloud dependencies unless enabled
- Fast: 20x faster than similar Python tools
Core Features
# Quick fuzzy search across your content with interactive selection
# Advanced filtering with tags
# Add web URLs, enrich with metadata automatically
# Store code snippets
# shell scripts, added via interactive editor
# Bookmark Template
# Lines starting with '#' are comments and will be ignored.
# Section markers (---SECTION_NAME---) are required and must not be removed.
#!/bin/bash
# Run the script (default action for this content-type is called automatically when search returns excactly one)
> Found )
> Hello
# Store markdown which will be rendered in the browser
# Store environment variables for sourcing in a shell
# Execute shell commands via bookmark (deprecated, use content-type _shell_ instead)
# Semantic search with AI
Bookmarks
Snippets
Demos
See bkmr in action:
-
Overview
-
Getting Started
-
Search and Filter
-
Edit and Update
-
Tag Management
Getting Started
-
Install:
# or via pip/pipx/uv # or via brew -
Setup:
# Configuration # Create database # Optional: Configure location (override config.toml) -
Start using:
# Add your first bookmark # Find it again
Command Reference
| Command | Description |
|---|---|
search |
Search across all content with full-text and tag filtering |
sem-search |
AI-powered semantic search using OpenAI embeddings |
add |
Add new content (URLs, snippets, files, shell commands, etc.) |
open |
Launch or interact with stored items |
edit |
Modify existing items |
tags |
View and manage your tag taxonomy |
set-embeddable |
Configure items for semantic search |
Smart Content Actions
bkmr intelligently handles different content types with appropriate actions:
| Content Type | Default Action | System Tag |
|---|---|---|
| URLs | Open in browser | (none) |
| Snippets | Copy to clipboard | _snip_ |
| Shell Scripts | Execute in terminal | _shell_ |
| Environment Variables | Print to stdout for sourcing in shell | _env_ |
| Markdown | Render and view in browser | _md_ |
| Text Documents | Copy to clipboard | _imported_ |
| Local Files | Open with default application | (none) |
Advanced Features
- Template interpolation: Use Jinja-style templates in URLs and commands
- Content embedding: Store semantic representations for AI-powered search
- Context-aware actions: Different behaviors based on content type
- Multiple output formats: Terminal display, clipboard, or JSON export
For detailed documentation on advanced features:
- Configuration Options
- Content Types
- Smart Actions
- Template Interpolation
- Semantic Search
- Advanced Usage
Developer Workflow Integration
bkmr transforms your terminal into a knowledge hub for development tasks:
- Unified knowledge store - Access code snippets, documentation, and resources with one command
- Reduced context switching - Launch applications and execute commands without leaving your workflow
- Smart clipboard management - Quickly access common snippets without leaving the terminal
- Documentation at your fingertips - Render markdown and technical notes instantly
- Automation shortcuts - Turn complex command sequences into reusable bookmarks
Upgrading from Previous Versions
If you're upgrading from a previous version, bkmr will automatically:
- Check for necessary database migrations
- Create a timestamped backup of your current database
- Apply migrations to support newer features
Community and Contributions
We welcome contributions! Please check our Contributing Guidelines to get started.