Skip to content

Self-Hosting Guide

BentoPDF can be self-hosted on your own infrastructure. This guide covers various deployment options.

Quick Start with Docker / Podman

The fastest way to self-host BentoPDF:

bash
# Docker
docker run -d -p 3000:8080 ghcr.io/alam00000/bentopdf:latest

# Podman
podman run -d -p 3000:8080 ghcr.io/alam00000/bentopdf:latest

Or with Docker Compose / Podman Compose:

yaml
# docker-compose.yml
services:
  bentopdf:
    image: ghcr.io/alam00000/bentopdf:latest
    ports:
      - '3000:8080'
    restart: unless-stopped
bash
# Docker Compose
docker compose up -d

# Podman Compose
podman-compose up -d

Podman Quadlet (Linux Systemd)

Run BentoPDF as a systemd service. Create ~/.config/containers/systemd/bentopdf.container:

ini
[Container]
Image=ghcr.io/alam00000/bentopdf:latest
ContainerName=bentopdf
PublishPort=3000:8080
AutoUpdate=registry

[Service]
Restart=always

[Install]
WantedBy=default.target
bash
systemctl --user daemon-reload
systemctl --user enable --now bentopdf

See Docker deployment guide for full Quadlet documentation.

Building from Source

bash
# Clone and build
git clone https://github.com/alam00000/bentopdf.git
cd bentopdf
npm install
npm run build

# The built files are in the `dist` folder

Configuration Options

Simple Mode

Simple Mode is designed for internal organizational use where you want to hide all branding and marketing content, showing only the essential PDF tools.

What Simple Mode hides:

  • Navigation bar
  • Hero section with marketing content
  • Features, FAQ, testimonials sections
  • Footer
  • Updates page title to "PDF Tools"
bash
# Build with Simple Mode
SIMPLE_MODE=true npm run build

# Or use the pre-built Docker image
docker run -p 3000:8080 bentopdfteam/bentopdf-simple:latest

See SIMPLE_MODE.md for full details.

Base URL

Deploy to a subdirectory:

bash
BASE_URL=/pdf-tools/ npm run build

Deployment Guides

Choose your platform:

Configuring AGPL WASM Components

BentoPDF does not bundle AGPL-licensed processing libraries. Some advanced features require you to configure WASM modules separately.

AGPL Components Not Included

The following WASM modules are not bundled with BentoPDF and must be configured by users who want to use features powered by these libraries:

ComponentLicenseFeatures
PyMuPDFAGPL-3.0EPUB/MOBI/FB2/XPS conversion, image extraction, table extraction
GhostscriptAGPL-3.0PDF/A conversion, compression, deskewing, rasterization
CoherentPDFAGPL-3.0Table of contents, attachments, PDF merge with bookmarks

How to Configure WASM Sources

  1. Navigate to Advanced Settings in the BentoPDF interface
  2. Enter the URLs for the WASM modules you want to use
  3. You can use:
    • Your own hosted WASM files
    • A WASM proxy you deploy (handles CORS)
    • Any compatible CDN hosting these packages

Hosting Your Own WASM Proxy

If you need to serve AGPL WASM files with proper CORS headers, you can deploy a simple proxy. See the Cloudflare WASM Proxy guide for an example implementation.

Why Separate?

This separation ensures:

  • Clear legal compliance for commercial users
  • Users make informed choices when enabling AGPL features
  • BentoPDF's core remains under its dual-license (AGPL-3.0 / Commercial)

System Requirements

RequirementMinimum
Storage~100 MB (core without AGPL modules)
RAM512 MB
CPUAny modern processor

TIP

BentoPDF is a static site—there's no database or backend server required!

Dual-licensed under AGPL-3.0 and Commercial License.