Private, in-browser PDF and image tools — your files never leave your device.
A self-hostable toolkit for everyday PDF and image tasks. Everything runs entirely in your browser using WebAssembly and the Canvas API — files are never uploaded, processed on a server, or stored anywhere. The server only ships static assets; your documents stay on your machine.
Features
- Compress — reduce file size at selectable levels (Low / Medium / High) by re-encoding embedded images and optimizing streams.
- Merge — combine multiple PDFs into one, in a drag-to-reorder list.
- Organize — a thumbnail view to delete, reorder, and insert pages, sourced from other PDFs or from images.
- Edit — an overlay editor to add:
- text boxes (word-wrap, multi-line, resizable),
- images and signatures,
- freehand drawing, rectangles, lines, and arrows,
- highlights,
- with color/size controls, undo/redo, and multi-page support. The overlay is flattened into the PDF on export.
Image
- Compress — adjustable quality, optional max dimension, and output as JPEG, PNG, or WebP, with a before/after size comparison.
- Crop — an interactive crop box with aspect-ratio presets (Free, 1:1, 4:3, 16:9).
- Convert — change format between JPEG, PNG, and WebP.
HEIC/HEIF input is supported across all image and PDF tools — Apple's photo format is decoded in-browser and used like any other image.
Privacy
- No uploads. All processing happens on the client. Open your network tab and you'll see zero file transfers.
- No storage. Nothing is written to a server or database. When you close the tab, nothing remains.
- Works offline after the first load.
Heavy PDF work runs in a Web Worker (off the main thread); image work uses the Canvas API. WebAssembly powers PDF compression and HEIC decoding.
Tech stack
- Next.js 16 (App Router) + React 19 + TypeScript
- Tailwind CSS v4 + shadcn/ui (on Base UI) +
lucide-react - pdf-lib — PDF structure (merge, organize, edit)
- mupdf (WASM) — PDF compression
- pdf.js — page rendering and thumbnails
- heic-to (WASM) — HEIC/HEIF decoding
- dnd-kit — drag-and-drop reordering
Getting started
Prerequisites
- Node.js 20+
- pnpm (this repo uses a pnpm workspace)
Install and run
pnpm install
pnpm dev
Open http://localhost:3000.
Scripts
| Command | Description |
|---|---|
pnpm dev |
Start the dev server |
pnpm build |
Production build |
pnpm start |
Serve the production build |
pnpm lint |
Run ESLint |
pnpm typecheck |
Type-check with tsc --noEmit |
pnpm format |
Format with Prettier |
devandbuildfirst runscripts/copy-assets.mjs, which copies the mupdf and pdf.js WASM/worker assets intopublic/so they load as static files.
How it works
- Tool registry (
lib/tools/) is the single source of truth. The landing page and navigation are generated from it; adding a tool means one registry entry, one page underapp/{category}/{slug}, and one processor. - PDF pipeline — a single Web Worker (
lib/pdf/pdf.worker.ts) routes jobs to processors built on pdf-lib (merge / organize / edit) and mupdf (compress). - Image pipeline — Canvas operations (
lib/image/operations.ts): decode → draw (optionally cropped/resized) → re-encode viacanvas.toBlob. - HEIC is decoded in-browser (
lib/files/image.ts) and format is detected by file signature rather than extension.
Deployment
The app is fully static and deploys to any static/Next.js host. On Vercel, connect the repository and deploy with defaults — no environment variables or server configuration are required.
License
Licensed under the GNU Affero General Public License v3.0 or later
(AGPL-3.0-or-later) — see LICENSE.
This project bundles the mupdf WebAssembly library (AGPL-3.0), whose copyleft terms extend to the combined work; AGPL-3.0 is therefore the project's license. It also uses heic-to (LGPL-3.0). Under the AGPL, if you run a modified version to provide a network service, you must offer its source to users of that service.
Built with Claude Code.