Menu

I built 35+ PDF tools that never upload your files (Rust + WebAssembly)
📰

I built 35+ PDF tools that never upload your files (Rust + WebAssembly)

DEV Community: rust·David·2 days ago
#wOZGX6hn
#devtorust#devto#dev#memory#file
Reading 0:00
15s threshold

Most online PDF tools work the same way: you upload your file, a server processes it, and you download the result. That's fine for a flyer. It's less fine for a contract, a bank statement, or a medical report.

I wanted to know how far you can get with no server at all. The answer turned out to be: almost all the way. The result is InBrowserPDF , a set of 38 PDF tools where every file is processed entirely on your own device.

How it works

Rust compiled to WebAssembly does the heavy work: parsing, merging, compressing, and encrypting.

Web Workers run that code off the main thread, so the page stays buttery responsive while a multi-megabyte file is being crunched.

The file never leaves the tab. You can check this yourself: open DevTools, go to the Network tab, and run any tool.

Under the hood, I leveraged a few key Rust libraries compiled to WASM.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.