bibox-0.1.0 is not a library.
bibox
A terminal-based bibliography manager built in Rust. Add papers by PDF, DOI, ISBN, arXiv ID, or URL — metadata is fetched automatically. Manage your library through a three-panel TUI or a scriptable CLI designed for AI agent workflows.
Features
- Smart import — Drop a PDF and bibox extracts the DOI, fetches metadata from Crossref, and files it automatically
- Multiple sources — Add entries via PDF, DOI, ISBN, arXiv ID, URL, or title search
- Three-panel TUI — Collections, entries, and preview (info/notes/PDF) side by side
- Vim-style navigation —
hjkl,gg/G,{n}j,Ctrl+d/u, multi-select withSpace - AI-agent friendly notes — Markdown notes with
--stdin,--section, and--templateflags for programmatic access - Portable home —
bibox init ~/biboxputs everything in one folder, ready for Git sync - Export — BibTeX, YAML, RIS, CSV. Include PDFs. Copy to clipboard.
Install
# From crates.io
# From source
Build dependencies: OpenSSL (brew install openssl on macOS, sudo apt install libssl-dev pkg-config on Ubuntu).
Quick Start
# Add a paper by PDF (auto-extracts DOI → fetches metadata)
# Add by DOI, arXiv ID, ISBN, or URL
# Search by title on Crossref
# Launch TUI
TUI
┌ Collections ─┬ Entries ──────────┬ Info │ Note │ PDF ──┐
│ > All (15) │ 1 kim2025 ◆ │ Title: Rust Syst.. │
│ cs (8) │ 2 dijkstra1968 │ Author: Kim, J. │
│ ml (5) │ 3 manco2017 ◆ │ Year: 2025 │
│ │ │ DOI: 10.1234/... │
├──────────────┴───────────────────┴────────────────────┤
│ h←collections l→preview / search ? help q quit │
└───────────────────────────────────────────────────────┘
Keybindings
| Key | Action |
|---|---|
h/l |
Focus left/right panel |
j/k |
Navigate within panel |
gg/G |
Jump to top/bottom |
{n}j |
Move n lines (e.g., 5j) |
Ctrl+d/u |
Half-page down/up |
Tab |
Switch preview mode (Info → Note → PDF) |
Space |
Toggle select entry |
V |
Select/deselect all |
/ |
Search (live filter) |
s |
Sort menu |
o |
Open PDF (or fetch from web) |
e |
Export menu |
y |
Copy citekey to clipboard |
c |
Manage collections |
t |
Edit tags |
N |
Edit note in $EDITOR |
, |
Settings |
? |
Help |
q |
Quit |
CLI
Notes (AI Agent Workflow)
Notes are stored as Markdown files, one per entry. Designed for both human editing and AI agent pipelines:
# Initialize with a template
# AI agent writes sections
|
|
# Read note back
# Human edits in $EDITOR
Built-in templates: ai-summary, reading-notes. Custom templates go in ~/.config/bibox/templates/.
Portable Home & Git Sync
# Initialize a portable bibox home
# Everything lives in one folder
# Sync with Git
&& && &&
# Or use the TUI: press , → Git → Enter to sync
Settings
Press , in the TUI or edit ~/.config/bibox/config.toml:
= "absolute" # absolute, relative, none
= [2, 4, 4] # left : center : right
= "." # BibTeX export location
= "~/Downloads" # Other exports location
= "~/bibox" # Portable home (set by bibox init)
Tech Stack
- Rust — clap, serde, reqwest, ratatui, crossterm, arboard
- APIs — Crossref, Unpaywall, arXiv, OpenLibrary
- Storage — JSON database, flat PDF directory, Markdown notes
License
MIT