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.
  • 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 known limitations.

Get started

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

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 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.

Python

import bibr

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

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, with support for small models tuned for extraction. 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

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 and Lisa DeBruine (@debruine), for putting faith and patience in the project, and being generous with their time to help make bibr 🦫 better for everyone.

Lisa also contributed to the early paper-structure and metadata design documentation preserved in the project history.

Also, 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 (THUDM, 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bibr-0.5.1.tar.gz (976.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bibr-0.5.1-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file bibr-0.5.1.tar.gz.

File metadata

  • Download URL: bibr-0.5.1.tar.gz
  • Upload date:
  • Size: 976.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for bibr-0.5.1.tar.gz
Algorithm Hash digest
SHA256 04eafeaaee17da1286a6575755d526e44ed9854e8bc99068e9f103365abd8e2d
MD5 230e1009598fec6410b04b1f223f05d5
BLAKE2b-256 93cfaaf25f4164fb07e670bd003ef6dc22598c0688f7cf34c1ddbd62db3a904c

See more details on using hashes here.

Provenance

The following attestation bundles were made for bibr-0.5.1.tar.gz:

Publisher: release.yml on scienceverse/bibr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bibr-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: bibr-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for bibr-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67b4e812c8a6063e86bd0df34bc523b9a95bae465b5ba6bbddec117d6fe541f7
MD5 0b456388cadf8de1b2ce80de7a53a87f
BLAKE2b-256 27d5b3358d88b57ba3236dfd4eb832e69091c9795c03a75f94250e3f3ec6d93e

See more details on using hashes here.

Provenance

The following attestation bundles were made for bibr-0.5.1-py3-none-any.whl:

Publisher: release.yml on scienceverse/bibr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 files

0.5.0

2 files

0.0.2

2 files

0.0.1

2 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