DoctorDocs.in
// Privacy-First WebAssembly Document Suite
DoctorDocs addresses a major privacy flaw in document manipulation: uploading sensitive personal tax, health, and legal files to third-party servers. All transformations (PDF merging, page rotation, image conversion, OpenCV edge detection) compile to WebAssembly and run inside browser Web Worker threads. Text extraction employs an intelligent multi-engine cascade (PDF.js text layer → fast cloud inference fallback → client-side WebAssembly Tesseract.js). Deployed live on Vercel with $0 infrastructure running costs.
100% Client-Side
200+ Tools
$0 Server Cost
01 / PDF.js Native Text
02 / Tesseract WASM
03 / Gemini Vision 1.5
04 / Tally XML Export
[ ARCHITECTURAL INSPECTOR ]
System Design & Code
Architectural Overview & Pipeline
DoctorDocs.in executes client-side WebAssembly compute across 200+ document utilities, keeping zero user files on remote disk. Its ingestion pipeline runs an intelligent 4-tier OCR cascade: Native PDF.js character extraction (Tier 1) cascades to WebWorker Tesseract.js SIMD with OpenCV contrast/deskew pre-processing (Tier 2), falling back to Gemini Vision on low-confidence thresholds (Tier 3). Structured financial documents are validated with custom GSTIN Modulo-36 checksum logic and serialized to Tally-compliant XML envelopes in browser memory.
Primary Stack:
Engineering Challenges & Solutions
Constructed a Worker lifecycle pool that recycles memory heaps after 10 consecutive page renders and forcibly unlinks OffscreenCanvas backing stores to prevent mobile browser tab crashes.
Engineered an OpenCV.js adaptive Gaussian thresholding pre-pass that calculates line angle variance and deskews the bitmap prior to feeding character blobs into the Tesseract neural engine.