Introduction
Self-hosted API that converts documents and web pages into Markdown, chunks and images for LLMs
Papyrus is a self-hosted HTTP API that converts documents and web pages into Markdown, chunks and images for LLM and agent pipelines. It reads PDFs, Office files, emails, HTML pages and other formats listed in File formats, and returns content in a shape that models and retrieval systems can use directly.
How it works
Papyrus takes a document from an upload, a URL or an object in your S3 bucket. It detects the format from the file content, converts or renders it, and returns Markdown, chunks or images in the response, or writes them back to your bucket.
Papyrus includes LibreOffice for Office formats, PDFium for PDF rendering and headless Chromium for web pages. They run in separate processes that start with the server, and production hardening covers untrusted documents and websites. Your agents call one API and receive clean content.
Deployment
Papyrus ships as a single stateless Docker image with every component included. It stores nothing between requests, and throughput scales horizontally by adding replicas behind a load balancer. Docker setup and Sizing describe the configuration and capacity planning.
Papyrus is built by Axelered.