Bukubrow is a WebExtension for Buku, a command-line bookmark manager. This WebExtension is developed to work in at least Firefox, Chromium, and Chrome, however any other browsers that support modern WebExtension standards should also be compatible.
It uses a native binary written in Rust to interface with your Buku database. Secure communication between the binary and the browser extension is handled via native messaging.
This project's foundation was heavily influenced by browserpass, a WebExtension designed to allow a similar kind of synchronicity between the browser and pass.
- Buku
- If building the binary:
- Cargo (Rust)
- If building the WebExtension:
- Node
- Yarn
Installing the binary and registering it with your browser through the installation script is required to allow the browser extension to talk to Buku. If you move the binary you will have to re-register it.
If you've downloaded a binary zip from the releases page, skip to step 3.
- Clone the repo.
- Run
make binary-linux-x64
(Linux) ormake binary-darwin-x64
(macOS). Note that you'll need your target platform installed and configured with Cargo. Your zip file will be located within the./release/
directory. - Move the zip file to a suitable location, for example
~/.bukubrow/
. - Extract the zip file.
- Run
./install.sh
to install the native messaging host. If you want a system-wide installation, run the script withsudo
.
Install the WebExtension from the relevant addon store.
- Chrome: https://chrome.google.com/webstore/detail/bukubrow/ghniladkapjacfajiooekgkfopkjblpn
- Firefox: https://addons.mozilla.org/en-US/firefox/addon/bukubrow/
Alternatively, you can build the WebExtension manually as follows:
- Clone the repo.
- Run
make webext
. Your zip file will be located within the./release/
directory. This zip file is the exact structure expected by all compatible browsers.
This project is made up of two parts, the WebExtension and the binary.
The WebExtension is written in (mostly) scoped, vanilla CSS and TypeScript, using React as the view library and Redux (and Thunks) for state management. Yarn is used for dependency management and task running. Data is fetched from the binary via communication with the WebExtension backend.
The binary is written in Rust stable (1.32.0 at time of writing). The messages it expects to receive from the WebExtension backend follow a faux HTTP format; for instance, to get all the bookmarks, you pass it a JSON object of the following format: { method: 'GET' }
.