I built 67 file tools that never upload your files. Here's how the browser does it all
Disclosure: I'm the founder of Capy Files . This post is about how it works, including the parts that were hard. Most "free online PDF tools" work the same way: you upload your file to their server, they process it, you download the result. That's fine for a meme. It's less fine for a payslip, a contract, a medical letter or a client's tax return. So I wanted to see how far a browser can go on…
This report explores a browser-based solution to online PDF tools, which typically upload files to a server for processing before returning the result. The author, founder of Capy Files, demonstrates how their platform allows editing, redaction, compression, video trimming, background removal, OCR, and transcription to occur entirely on the user's device, without ever uploading the file to their server.
To validate this claim, the author provides two methods:
1. Opening the tool and using the DevTools to check for network requests containing the user's file, or
2. Using the tool while disconnected from Wi-Fi.
Regardless of the method, the author confirms the claim that no file data is uploaded to the server. The processing occurs in Web Workers using WebAssembly and browser APIs, including PDF.js, pdf-lib, LibreOffice, jSquash codecs, Mediabunny, ONNX models, Transformers.js, ONNX models, PaddleOCR, and more. These components work together to perform various tasks without requiring server-side processing.
The site is a pre-rendered React app hosted on Cloudflare, with only the server responsible for serving files, handling sign-in, and processing payments. The author emphasizes the challenges faced during development, such as model downloads, memory limitations on phones, cross-origin isolation, updates to deployed versions, and ensuring offline functionality through service workers.
Overall, the report aims to demonstrate that a browser-based tool can perform most PDF editing tasks without compromising user privacy or data security by avoiding file uploads to third-party servers.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to