Back to services

Buku

Powerful bookmark manager and a personal textual mini-web.

View alternatives to Buku
Suggest edit
Open source
Self-hostable
GPL-3.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

Buku is an open-source, mainly command-line bookmark manager developed by jarun. The author created it because he couldn't find a flexible command-line bookmark tool that used a private, portable, mergeable database and also worked smoothly with a graphical interface. Buku can import bookmarks from browsers, and it can also fetch a URL's title, tags and description online. Users can add and edit bookmarks in their favorite text editor and search instantly in a variety of ways.

Users who prefer a graphical interface can use the companion Bukuserver. It starts a local web server that provides a browsable front end, along with an HTTP-based API. The official documentation states that this API is intended for personal use only.

Key Features

  • Automatic metadata fetching: When you add a bookmark, the page's title, tags and description are retrieved automatically. You can also add bookmarks offline with --offline.
  • Browser import: Automatically imports bookmarks from Firefox, Google Chrome, Chromium, Vivaldi, Brave and Microsoft Edge.
  • Multiple import and export formats: Supports HTML (Firefox format), XBEL, Markdown, Org files, RSS/Atom, Firefox JSON backups and other Buku databases.
  • Powerful search: Match any or all keywords, with support for regex search, deep substring matching (--deep), tag search, keyword exclusion and field-specific markers. There is also a continuous search mode in which you can switch search methods at any time during a search.
  • Tag management: Replace or delete tags in bulk, manage tags with redirection symbols such as >>, > and <<, and get suggestions for similar tags when adding a bookmark.
  • Dead link handling: Browse archived versions of pages through the Wayback Machine. During a bulk refresh, bookmarks can be tagged or deleted automatically based on HTTP errors or permanent redirects.
  • Multithreaded full-database refresh: Updates the titles and descriptions of all bookmarks concurrently, with an adjustable number of concurrent connections (1–10).
  • Manual encryption: Encrypt or decrypt the database with --lock / --unlock.
  • Editor integration: Write and edit bookmarks in $EDITOR.
  • Python library: Buku can also be used as a Python library, and API documentation is available.
  • Random rediscovery: A built-in "Easter egg" feature lets you open bookmarks at random.

Target Users and Use Cases

  • Developers and Linux users who are used to working in the terminal and want to save, find and open bookmarks quickly from the keyboard.
  • Privacy-conscious users: Buku has no tracking, no hidden history, no usage statistics, and it never "phones home".
  • People who need to organize, merge and migrate bookmarks across multiple devices or browsers.
  • People who want to manage large numbers of links through scripts or automated workflows, for example by exporting JSON and passing it to other tools.

Core Strengths

  • Lightweight, with a clean interface and customizable output colors.
  • A portable, mergeable database that makes it easy to sync between different systems.
  • Thorough documentation: the man page includes plenty of examples, and completion scripts are provided for Bash, Fish and Zsh.
  • A rich surrounding ecosystem, including browser add-ons and other related projects.

Installation

Dependencies: Python 3.10+, plus certifi, urllib3 (HTTPS), cryptography (encryption), and beautifulsoup4 and html5lib (HTML parsing). Copying a URL to the clipboard relies on system tools, such as xsel/xclip on Linux, wl-copy on Wayland, pbcopy on macOS and clip on Windows.

Install from PyPI:

pip3 install buku

Other options:

  • Install with the package manager of the major distributions (if the version is outdated, use another method).
  • Download the automatically generated packages from the GitHub Releases (command-line component only), available for Arch Linux, CentOS, Debian, Fedora, openSUSE Leap and Ubuntu.
  • Install from source: sudo make install, with PREFIX available to set the installation location.
  • Run standalone: chmod +x buku.py && ./buku.py.
  • On Android, install it in Termux with pip3 install buku.

Usage Examples

buku -a https://example.com tag1,tag2   # 添加书签并打上标签
buku -s keyword                          # 搜索包含任一关键词的书签
buku --ai                                # 从浏览器自动导入书签
buku -e bookmarks.md                     # 导出为 Markdown

Notable Characteristics

  • Primarily designed for the command line; use Bukuserver when you need a graphical interface.
  • Supports JSON output, making it easy to integrate with other tools.
  • Cross-platform: runs on Linux, macOS, Windows and Termux.