Self-Hosted PDF Reader

Your library, locally hosted & beautifully rendered.

Shelfhost is an open-source, serverless PDF reader and annotation platform. Fast, elegant, and designed to give you a warm, distraction-free reading experience entirely in your control.

Deploy Instantly Star on GitHub
Shelfhost App User Interface Mockup

Designed for readers.

We focused on building a gorgeous interface with zero distractions. The tools appear only when you need them.

Cloudflare Serverless Architecture

Runs as serverless functions via Nuxt Nitro on Cloudflare Pages and Workers. Experience ultra-fast global load times without managing heavy Docker containers or VMs.

Highlights & Bookmarks

Highlight text selections instantly with multi-color highlights. Save your position with page bookmarks and jump back whenever you load your dashboard.

D1 SQLite + R2 Storage

Uses Cloudflare's serverless SQLite engine (D1) for instant database query speeds, and Cloudflare R2 object storage to keep your PDF files completely secure and private.

Global deployment in minutes.

Deploying Shelfhost is as simple as creating your serverless database, provisioning your file storage bucket, and running the build script. All configuration is consolidated into a simple configuration schema.

Since it compiles to pure Cloudflare Pages components, you will pay $0/month under Cloudflare's generous free tier for personal library usage.

Read Full Setup Guide
Bash
# 0. Clone github repo and move into project directory git clone https://github.com/dshaw0004/shelfhost && cd shelfhost # 1. Install packages and login to Cloudflare bun install && npx wrangler login # 2. Create the SQLite database & R2 Bucket npx wrangler d1 create shelfhost-db npx wrangler r2 bucket create shelfhost-pdfs # 3. Apply schema migration to production database npx wrangler d1 migrations apply shelfhost-db --remote # 4. Deploy globally to Cloudflare Pages bun run deploy

Bring your reading library home.

Start organizing, highlighting, and reading your PDFs on your own serverless cloud.

Star on GitHub