Expand description
Bookmark Manager - Import, search, organize, and generate knowledge graphs from browser bookmarks
§Features
- Multi-browser support: Chrome, Firefox, Safari, Edge
- Search and open bookmarks
- Export bookmarks and history
- Remove duplicates and organize into folders
- Generate knowledge graphs (DOT, JSON, GEXF)
§Library Usage
use bookmark::BookmarkManager;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let manager = BookmarkManager::new();
// Export bookmarks
let bookmarks = manager.export_bookmarks("chrome")?;
// Search
let results = manager.search("github")?;
// Generate knowledge graph
let graph = manager.graph_from_bookmarks(&bookmarks)?;
Ok(())
}§CLI Usage
# Build with CLI feature (default)
cargo build --release
# Export bookmarks
bookmark export --browser all
# Search
bookmark search github
# Generate graph
bookmark graph --format dot -o graph.dot§MCP Server Usage
# Build with MCP feature
cargo build --features mcp
# Run MCP server
bookmark-mcpRe-exports§
pub use crate::exporter::Bookmark;pub use crate::exporter::UrlEntry;pub use crate::graph::GraphConfig;pub use crate::graph::GraphBuilder;pub use crate::graph::KnowledgeGraph;
Modules§
- browser
- config
- deduplication
- exporter
- graph
- graph_
output - Graph output handling for different formats
- organization
- processor
- search
- utils
- Utility functions for file I/O and platform-specific operations
Structs§
- Bookmark
Manager - Main bookmark manager API