Skip to main content

Brave Bookmarks

@readwithai - X - blog - machine-aided reading

This is a command-line script to query Brave's bookmark. It was written on linux but can be quickly adapted for other systems.

Alternative's and prior work

There are other some other command-line tools to search browser bookmarks from the command-line. Many of these do not support Brave but instead support a combination of Firefox and Chrome. Brave is based on chromium and appears to keep bookmarks in the same format so these could likely be adapted to Brave. However, this task is quite simple and I wanted something that worked with Brave without modification or indeed any configuration.

browser bookmark manager by Frisch is a command line tool to search browsers with Firefox or Chrome.

pbm is a bookmark search tool for chrome.

Firefox, Chrome and Brave all have quite easily accessible bookmark data. Chrome and Brave's format is simpler as they provide human readable JSON. Firefox provides and sqlite database. For more programmatic use cases, you might prefer to read these files directly.

Install

This package is written in Python, you can use pipx to install it.

pipx install brave-bookmarks

Usage

bravemarks

Will list the names of all bookmarks

bravemark $name

Will show the url of the bookmark named $name.

You can use this script as is, but if you access bookmarks a lot you might like to add a little automation. I use my zshnip snippet framework together with fzf and xclip to make some useful snippets to make using these commands even more convenient. These features are not merged into the program because they would both be brittle and different users likely want different automations. Users might like to combine these with command-line shell scripts, shell aliases, or GUI keyboard shortcuts (potentially together with a GUI fuzzy selector- like rofi)

I use the following zshnip snippets.

bmz -> bravemarks | fzf
bmg -> bravemarks | grep
bmzcli -> bravemarks | fzf | xargs bravemark | xclip -selection clipboard -i

Support

If you found this piece of software useful you can donate ($2 maybe) to my ko-fi.

This will incentivize me to respond to feature requests for this project and create similar command-line tools.

About me

I am @readwithai. I make tools related to reading and research sometimes usings Obsidian.

If you found this repository interesting you might like to:

  1. Check out this page of similar useful command-line tools
  2. Have a look at my command-line snippet tool, zshnip
  3. Follow me on X where I post about this sort of thing.

You could also look at my blog where I write about reading and research; or check out the machine-aided reading subreddit

readwithai logo

Metadata

Release files for brave-bookmarks 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brave-bookmarks 1.2.1
File Size Uploaded Provenance Actions
brave-bookmarks-1.2.1.tar.gz 4.1 kB Without provenance Details for brave-bookmarks-1.2.1.tar.gz

Release files / brave-bookmarks-1.2.1.tar.gz

Download URL brave-bookmarks-1.2.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e0c2deea88fe695258785c746b95692ba348ab4757e02bf948da09caa32a2a55
BLAKE2b-256 checksum
How to use checksums
be54e842c6fef7464c24d5602f5b53514775927fa7a4500eb0ba16bb5631eefe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Security for brave-bookmarks 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page