Skip to main content

bibr 🦫 — bibr chew paper.pdf | bibr.org

PyPI version Docs License: AGPL v3 Made in Europe Lifecycle: experimental codecov

bibliography rodent 🦫 - a modern scientific extraction pipeline. Chews through papers, powered by open source and Metascience. Originally built for Metacheck with accuracy as a priority.

  • Reads PDF, DOCX, JATS XML, HTML, and ePub.
  • Extracts metadata, references, full text, tables, figures, and equations into a versioned JSON format, and writes whole corpora as Parquet tables for pandas, polars, DuckDB, or R.
  • Includes sentence and page references to help check extractions against the source.
  • Works through the CLI, Python, an HTTP API, a web demo, or MCP.
  • Lets you choose local or cloud models, limit page ranges, and skip extraction stages.

Alpha: Expect bugs and uneven extraction quality. Current evaluation is strongest for English-language social science papers. See where bibr is strong and where it isn't.

Get started

To try bibr on one paper without installing anything, upload it at try.bibr.org.

Requires Python 3.11–3.14 and the system prerequisites. Install from PyPI in a project managed by uv:

uv init --python 3.12 paper-extraction
cd paper-extraction
uv add bibr
uv run bibr setup
uv run bibr chew paper.pdf -o result.json   # any PDF you copied into the folder

In an existing Python environment, you can also install with python -m pip install bibr and run bibr setup / bibr chew directly.

The setup wizard detects your hardware, configures OCR and the LLM, and offers to install any additional dependencies. Core installs run bibr's trained models through ONNX Runtime; PyTorch, the demo, MCP, and hardware-specific serving runtimes are optional extras. The first run may download models and runtimes. See the tester guide for platform-specific instructions and the source installation guide for development setup.

Usage

Command line

uv run bibr chew papers/ -o results/   # Process a directory
uv run bibr batch papers/ --out corpus/  # Resumable corpus run, plus Parquet tables
uv run bibr tables results/ --out tables/  # JSON exports → one Parquet file per table
uv run bibr chew paper.pdf --dry-run   # Preview the processing plan
uv add 'bibr[demo]'                    # Add the optional web demo
uv run bibr demo                       # Open it locally

References are parsed locally by default. Use --refs llm to parse them with the LLM, or --refs off to skip them. More options: CLI reference.

bibr setup picks a local model when your hardware can run one. Otherwise it offers Claude Haiku 5.5, which receives the page images and extracted text and needs an Anthropic API key. Without a .env from bibr setup (in the current folder or ~/.bibr/), metadata extraction uses Google Gemini and needs GOOGLE_API_KEY. bibr chew paper.pdf --dry-run shows where each stage runs before anything is sent.

Python

import bibr

result = bibr.chew("paper.pdf")
print(result.title)
references = result.references.df  # pandas DataFrame
result.save("result.json")

bibr.write_tables(bibr.chew("papers/"), "tables/")  # corpus → Parquet, keyed by paper_id

See the Python guide for batch processing and reusing loaded models with bibr.Chewer.

LLM use

bibr uses LLMs selectively for tasks such as front-page metadata. bibr setup recommends a model for your hardware: bibr's fine-tuned Qwen3.5 4B or 2B model on an NVIDIA GPU, or Claude Haiku 5.5 as a hosted model (how they compare). You can disable downstream LLM extraction with --no-llm, which returns structural output; PDF OCR may still use a vision-language model. The LLM use note covers these choices and how agentic LLMs helped develop bibr. It is a work in progress.

Documentation

Citation

If you use bibr in research, please cite the software and report the version you used. Use GitHub's Cite this repository button or the citation metadata to generate a citation. When a Zenodo archive is available for your release, cite its version-specific DOI so readers can identify the exact software used. Otherwise, cite the repository URL together with the version or commit.

Contributing

Bug reports, test papers, and contributions are welcome. See CONTRIBUTING.md for development setup, tests, and pull requests.

Development began privately in December 2025. This public repository starts with a clean source snapshot for the 0.5.0 launch; the earlier development history remains private. Selected early design documents and their original contributions are preserved in the project history.


Acknowledgments

Special thanks to Daniël Lakens (@Lakens) and Lisa DeBruine (@debruine), for putting faith and patience in the project, and being generous with their time and insight to help make bibr 🦫 better for everyone.

Also thanks to the whole Metacheck team, and TU Eindhoven.

We are grateful to the open-source projects that bibr builds on:

  • PaddleOCR-VL-1.6 (PaddlePaddle) — default OCR recognizer
  • GLM-OCR (Z.ai / Tsinghua University) — explicit compatibility backend and fallback
  • GROBID — a major source of inspiration for structured scientific document parsing
  • LitServe (Lightning AI) — serving infrastructure
  • PP-DocLayoutV3 (PaddlePaddle) — document layout analysis
  • wtpsplit — sentence segmentation
  • Crossref — reference metadata enrichment

License

AGPL-3.0-or-later. The export schema documents in docs/schema/ are dedicated to the public domain under CC0 1.0, so other tools can adopt the format freely.

Metadata

Release files for bibr 0.7.3

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

Source distribution (sdist)

Source distribution for bibr 0.7.3
File Size Uploaded
bibr-0.7.3.tar.gz 1.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for bibr 0.7.3
File Interpreter ABI Platform
bibr-0.7.3-py3-none-any.whl Python 3 none any Details

Total release size: 3.4 MB

Release files / bibr-0.7.3.tar.gz

Download URL bibr-0.7.3.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
ea79b8528db62661a4c4dd3d6c56cfb415b7c6c6bb87de364a282519c8deecdf
BLAKE2b-256 checksum
How to use checksums
7a33bc9c22cd93afcee02319b37e4278d259c8ea5d61cea40faffe4237d98e8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / bibr-0.7.3-py3-none-any.whl

Download URL bibr-0.7.3-py3-none-any.whl
Size 1.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
85276de588d97b73f0ee345509d7b1c29fe30c4733021b07b43bb03c45939467
BLAKE2b-256 checksum
How to use checksums
13cf5d454928d4bf67b3a08e49579a5770825804df2d224b29c571e186ce673f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.7.3 This release

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

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