Shelfhost icon

Shelfhost

Shelfhost is an open-source, self-hosted PDF reader, library, and highlighter for keeping documents under your own control. Runs on Cloudflare Pages, Workers, D1, and R2, with reading, multi-color highlighting, and page bookmarks.

Shelfhost

Overview

Shelfhost is an open-source, self-hosted PDF reader and annotation platform built for people who want to keep a PDF library under their own control. It combines reading, highlighting, and bookmarking in a locally hosted library interface.

The product is built on Cloudflare Pages, Workers, D1, and R2, and is described as serverless and globally deployable. Its setup guide centers on creating the database and storage bucket, applying migrations, and deploying to Cloudflare Pages.

Features

Distraction-free PDF reading

Shelfhost provides a PDF reading interface focused on readability, with the product positioning emphasizing a warm, distraction-free experience and tools that appear only when needed.

Multi-color text highlighting

You can highlight text selections with multiple highlight colors, which supports annotation and later review within the library.

Page bookmarks

The library supports page bookmarks so you can save your place in a document and return to it from the dashboard.

Cloudflare serverless deployment

Shelfhost runs as serverless functions through Nuxt Nitro on Cloudflare Pages and Workers, avoiding the need to manage Docker containers or virtual machines.

D1 database and R2 storage

PDF files are stored in Cloudflare R2, while D1 provides the SQLite-backed database layer for fast queries and library data.

Simple deployment flow

The deployment guide shows a small set of setup steps: clone the repo, install dependencies, log in to Cloudflare, create the database and bucket, apply migrations, and deploy globally.

Use Cases

  • Personal self-hosted library

    Use Shelfhost when you want a private PDF library that you control yourself instead of sending documents to a third-party reading service.

  • Reading and annotation workflow

    Use the highlighting and bookmarking tools when you are reading papers, reports, or long-form PDFs and need to mark passages and resume later from the dashboard.

  • Cloudflare-native hosting

    Use the Cloudflare-based setup if you want a serverless deployment that does not require managing Docker containers or virtual machines.

  • Documented self-deployment

    Use Shelfhost when you prefer a simple deployment path with a documented sequence for creating storage, applying migrations, and publishing the app.

Pros and Cons

Pros

  • Open-source and self-hosted, which keeps the library under the user's control.
  • Reading UI is presented as distraction-free, with tools that appear only when needed.
  • Supports multi-color highlighting and page bookmarks for active PDF study.
  • Uses Cloudflare Pages, Workers, D1, and R2 for a serverless deployment model.
  • Deployment is documented with a concise setup flow in the guide.

Cons

  • The source does not describe collaboration features such as shared libraries or team workflows.
  • Pricing details beyond Cloudflare free-tier personal usage are not specified in the source.
  • The deployment guide indicates Cloudflare-specific setup, so it is not presented as a generic hosting-agnostic package.

FAQ

How do you deploy Shelfhost?

Shelfhost is designed to run on Cloudflare Pages and Workers, with D1 for its SQLite database and R2 for PDF storage. The deployment guide shows cloning the repository, installing packages, logging in with Wrangler, creating the D1 database and R2 bucket, applying migrations, and running the deploy script.

What does Shelfhost do?

The product is positioned as a self-hosted PDF reader, library, and highlighter. The source specifically describes highlighting text selections, saving bookmarks, and reading PDFs in a locally hosted library.

Who is Shelfhost for?

Shelfhost is presented as open-source and self-hosted, so it is aimed at readers who want to keep their PDF library under their own control rather than using a hosted reading service.

What does Shelfhost cost?

The source says Shelfhost compiles to pure Cloudflare Pages components and can be used under Cloudflare’s free tier for personal library usage. It does not provide a full paid plan breakdown or explicit plan limits.

Quick Facts

Category
Self-hosted PDF reader
Platform
Cloudflare Pages, Workers, D1, and R2
Primary workflow
Read, highlight, bookmark, and store PDFs in a self-hosted library
License/availability
Open-source
Deployment model
Serverless
Source domain
shelfhost.dipankarshaw.qzz.io