Case study
ShieldTools
Zero-Knowledge Security. Brutal Financial Clarity.
Lead Full-Stack Architect & Product Strategist — 100% In-Browser Privacy & E-Commerce Financial Intelligence.
An ultra-modern, zero-server-cost web utilities platform engineered to solve identity theft and COD return losses. Features DocShield™ for 100% in-browser CNIC/ID watermarking with zero file uploads, and EcomShield™ for COD return loss isolation and breakeven CAC modeling.

Overview
ShieldTools is a zero-server-cost web utilities suite solving two pervasive digital problems: unsecured identity document sharing (DocShield™) and blindspot cash burn on Cash-on-Delivery e-commerce returns (EcomShield™). Operating on a Zero-Knowledge Architecture, all image transformations and financial calculations execute client-side in browser RAM—incurring $0 server costs while guaranteeing zero data leaks.
The problem
Millions of citizens share scans of national ID cards (CNIC, Aadhaar, Passports) via WhatsApp/email for SIMs, jobs, and banking, leaving them vulnerable to loan fraud and identity theft. Meanwhile, 70-85% of emerging-market e-commerce runs on COD with up to 30% RTO rates; merchants mistakenly calculate profits without factoring in double courier penalties and burned ad spend.
The solution
DocShield™ delivers zero-upload document watermarking with fraud-proof purpose stamping, institution locking, and cross-grid patterns in client RAM. EcomShield™ computes exact courier return penalties, marketing CAC burn, and diagnostic health matrices with 1-click WhatsApp and PDF reports.
- DocShield™ Dual Document Studio: Single-card and dual-side front & back stitching with automated vertical and horizontal layout merging.
- Fraud-Proof Preset Stamping: 1-click purpose presets ('FOR SIM VERIFICATION ONLY', 'FOR BANK KYC ONLY') with institution recipient locking and date stamps.
- Security Cross-Grid Matrix: Full-coverage diagonal security pattern to defeat AI inpainting, clone stamping, and crop attempts.
- EcomShield™ Return Loss Isolator: Isolates cash burned on reverse courier penalties, packaging loss, and wasted ad spend.
- Breakeven CAC Formula: Calculates the exact tolerable cost per acquisition before a product or campaign turns unprofitable.
- Viral Embed Engine: Distraction-free iframe widgets with attribution pills delivering organic backlink authority.
Technical architecture
Zero-Knowledge In-Memory Graphic Processing
Engineered entirely on the HTML5 Canvas API in browser memory. Uploaded files pass through FileReader into memory buffers without network transmission. High-resolution exports generate locally via jsPDF and Canvas blob serialization.
Hydration Race-Condition PWA Engine
Injected an inline early-capture script into the HTML head to intercept beforeinstallprompt before Next.js React hydration finishes, caching the prompt on window.__pwaPrompt and triggering custom install modals smoothly.
Tailwind CSS v4 Custom Variant Theme Engine
Implemented @custom-variant dark (&:where(.dark, .dark *)) in globals.css paired with an early-execution localStorage script to guarantee instant theme switching without Flash of Unthemed Content (FOUC).
Zero Marginal Cost Static Architecture
Statically prerendered all 22 routes via Next.js Static Site Generation (SSG). Delivers sub-second initial load times worldwide on Vercel Edge Network with $0 monthly infrastructure overhead.
Problems I ran into
…and how I worked through them.
The problem
Sensitive Document Privacy Vulnerability: Traditional watermarking tools upload user national IDs to server disks or third-party cloud buckets, risking privacy leaks.
How I solved it
Architected a 100% client-side pipeline using HTML5 Canvas and jsPDF, processing all pixel manipulations strictly inside browser RAM.
The problem
Next.js App Router PWA Prompt Race Condition: Native beforeinstallprompt fires prior to React hydration, causing install buttons to miss the prompt event.
How I solved it
Engineered an early-capture script in document head that stores the prompt reference and fires a custom event once UI mounts.
The problem
COD Profit Blindspot in Emerging E-Commerce: Sellers calculate profits on retail price minus wholesale cost, ignoring reverse courier penalties on 25%+ RTO.
How I solved it
Developed an automated diagnostic health matrix classifying margins (Healthy, Vulnerable, Cash Burning) and computing exact Breakeven CAC.
Results
- Deployed to production with $0 monthly server costs serving unlimited global traffic.
- Engineered 100% private document processing with zero server-side telemetry or file storage.
- Integrated Schema.org JSON-LD (SoftwareApplication, FAQPage, Organization) for AI Answer Engine Optimization (Perplexity, SGE).
- Built standalone PWA running with zero address bar across desktop and mobile devices.