Skip to content

cloakyard/cloakpdf

CloakPDF — private, in-browser PDF toolkit

A fast, private PDF toolkit that runs entirely in your browser.

No uploads, no servers, no tracking — your files never leave your device.

pdf.cloakyard.com

MIT License Platform: Web & PWA OpenSSF Scorecard

CloakPDF editor


✨ What it does

Drop a PDF and it opens in a single, canvas-based editor — a Photoshop-like workspace for one document at a time. 22 editor tools and 7 standalone utilities cover everything from a quick tick on a printed form to redaction, OCR, and on-device AI:

  • ✏️ Annotate & sign — draw, highlight, shapes, text (14 fonts, bold / italic / underline), form-filling icons (tick / cross / dot / circle), signatures (draw with a real-pen ink feel, or a pressure-sensitive stylus — Apple Pencil, Wacom, S-Pen), fill & flatten forms (or auto-fill flat printed ones)
  • 📄 Pages — reorder, rotate, delete, crop (auto-trim & straighten), strip repeating headers/footers, N-up & booklet, OCR, plus split / extract / contact-sheet on export
  • 🔒 Privacy — redact (burned into the page), select or find & box text, erase regions (fill / blend / pixelate), scrub hidden data, edit or strip metadata
  • 🏷️ Stamps & numbering — watermarks (with dynamic date/page tokens), QR & barcode stamps, page numbers, headers & footers, Bates numbering, bookmarks, file attachments

Export to PDF, images (ZIP), a contact sheet, or split pages — with optional compress / grayscale / flatten / repair / strip-metadata.

The editor is keyboard-friendly: press ⌘K / Ctrl+K to jump to any tool from a command palette, and undo/redo with the usual shortcuts.

A few standalone tools cover the jobs the single-PDF editor can't — these mirror the categories on the home screen:

  • 🧩 Combine & Convert — merge PDFs, build a PDF from images, or extract embedded images
  • 🔑 Secure & Sign — add a password & permissions, sign with a certificate, or compare two PDFs
  • 🤖 On-device AIAsk your PDF: chat with a document using a small model that runs entirely in your browser, no API key or server

🛡️ Privacy first

Everything runs client-side — there is no server to upload to. No accounts, no analytics, no tracking. It's an installable PWA that keeps working offline once loaded, and the on-device AI needs no API key or inference server.


🧰 Tech stack

Area Technology
Framework React 19 + TypeScript 6
Styling Tailwind CSS 4
Build & tooling Vite+ (vp)
PDF manipulation @pdfme/pdf-lib
PDF rendering PDF.js
Layout-aware OCR LlamaIndex LiteParse + Tesseract.js
On-device AI Transformers.js + LangGraph
Deployment Cloudflare Workers

🚀 Getting started

git clone https://github.com/cloakyard/cloakpdf.git
cd cloakpdf
vp install   # needs Node ≥ 24 and `npm i -g vite-plus`
vp dev       # http://localhost:5173
Command Description
vp dev Dev server with hot reload
vp build Type-check + production build
vp check Format, lint, type-check
vp test Run unit tests

🤖 On-device AI

Ask your PDF runs a full retrieval-augmented Q&A pipeline in the browser — the model weights download once from Hugging Face, cache, and work offline after. For the architecture (LangGraph state machine, hybrid retrieval, model choices), see docs/local-ai.md.


🤝 Contributing & license

Contributions are welcome — see CONTRIBUTING.md. Licensed under the MIT License.

Built with ❤️ by Sumit Sahoo

About

A fast, modern, and privacy-focused PDF toolkit that runs entirely in your browser. No uploads, no servers, no tracking — your files never leave your device.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors