Bogrep – Grep your bookmarks
Bogrep downloads and caches your bookmarks in plaintext without images or videos. Use the Bogrep CLI to grep through your cached bookmarks in full-text search.

- Install Bogrep
- Usage
- Getting help
- Import bookmarks
- Specify bookmark folders
- Ignore URLs
- Diff websites
- Manage internal bookmarks
- Request throttling
- Supported operating systems
- Testing
Install Bogrep
Install Bogrep from crates.io
# Build and install bogrep binary to ~/.cargo/bin
To update bogrep to a new version, run cargo install bogrep again. Versions
0.x will not be backwards compatible and breaking changes are expected. Remove
Bogrep's configuration directory (see Supported operating
systems) if you experience an issue when running
Bogrep.
Install Bogrep from github.com
# Build and install bogrep binary to ~/.cargo/bin
Usage
Settings and cache are installed to the configuration path, after Bogrep has been run for the first time. The configuration path depends on your operating system (see Supported operating systems).
# Configure the path to the bookmarks file (e.g. of your browser)
# Import bookmarks
# Fetch and cache bookmarks
# Search your bookmarks in full-text search
Search
Getting help
# Check version
# Print help
# Print help for subcommands
Import bookmarks
Currently, bookmarks in JSON format for Firefox, Chrome, Chromium, and Edge are supported. Bookmark files in HTML format are not supported yet.
The path of bookmarks may be different for your operating system.
Firefox
Configure Firefox as source for bookmarks, where <my_profile> is your Firefox profile:
# Ubuntu (snap package)
# Ubuntu (apt package)
# macOS
Directory bookmarkbackups contains multiple compressed backup files (in
format .jsonlz4), and bogrep will choose the most recent bookmarks file.
Chrome
Configure Chrome as source for bookmarks:
# Ubuntu
# macOS
Chromium
Configure Chromium as source for bookmarks:
# Ubuntu (snap package)
Edge
Configure Edge as source for bookmarks:
# Ubuntu
Specify bookmark folders
Specify which bookmark folders are imported. Multiple folders are separated by comma:
Ignore urls
Ignore specific urls. The content for these urls will not be fetched and cached.
It can be useful to ignore urls for video or music platforms which usually don't include relevant text to grep.
# Ignore one or more urls
Diff websites
Fetch difference between cached and fetched website for multiple urls, and display changes:
Manage internal bookmarks
If you need to add specific URLs to the search index, use the bogrep add subcommand.
# Add URLs to search index
# Remove URLs from search index
# Add URLs to search index and fetch content from URLs
Request throttling
Fetching of bookmarks from the same host is conservatively throttled, but can
also be configured in the settings.json usually
placed at ~/.config/bogrep in your home directory:
where request_throttling is the waiting time between requests for the same
host in milliseconds.
Too speed up fetching, set max_concurrent_requests to e.g. 1000. The maximum
number of available sockets depends on your operating system. Run ulimit -n to
show the maximum number of open sockets allowed on your system.
For the available settings see https://docs.rs/bogrep/latest/bogrep/struct.Settings.html.
Supported operating systems
Bogrep assumes and creates a configuration path at
$HOME/.config/bogrepfor Linux,$HOME/Library/Application Support/bogrepfor macOS,C:\Users\<Username>\AppData\Roaming/bogrepfor Windows,
in your home directory for storing the settings.json, bookmarks.json, and
cache folder.
You can configure the configuration path via the environment variable
BOGREP_HOME.
Testing
# Run unit tests
# Run integration tests
# Run unit and integration tests