01The Challenge: Sensitive Tax Data vs Brittle Spreadsheets
Indian e-commerce sellers pull monthly sales reports from 5–10 separate marketplaces, each shipping incompatible CSV schemas, Excel serial dates, forward/reverse return signs, and PDF tax invoices. Traditional portals require uploading customer GSTINs, party addresses, and revenue ledgers to third-party servers behind paywalls.
Server-Side GST Portals
- Invoices & buyer GSTINs stored on remote servers
- Mandatory login walls before checking outputs
- Upload wait times & per-invoice credit meters
Client-Side InvoiceToGSTR
- 100% browser RAM parsing (CSV, XLSX, PDF)
- Zero login, zero telemetry of financial numbers
- Instant inline cell fixes & multi-format ZIP exports
02Client-Side Parsing Pipeline
Every dropped file runs through readRawSourceFile, which reads local ArrayBuffer bytes directly via browser File APIs. Multi-sheet workbooks decode with SheetJS, CSVs parse via header-normalized streaming, and PDFs route to a local pdfjs-dist worker served from /pdf.worker.min.mjs.
File[] -> readRawSourceFile()
├── .csv -> normalized header + quoted field decoder
├── .xls/.xlsx -> SheetJS workbook reader + serial date parser
└── .pdf -> PDF.js local worker -> Y/X coordinate row builder
↓
NormalizedSourceRecord[] (in-memory only)03On-Device Memory Lifecycle & Local History Persistence
Active parsed rows and undo/redo snapshots execute inside local Zustand memory with zero server uploads. For user convenience, saved exports and drafts remain strictly on your own device via browser localStorage and IndexedDB (visible under Recent generations and Starred), and generated downloads are cleaned up via URL.revokeObjectURL whenever cleared. Read full details in our Privacy Policy.
04PDF Coordinate Line Reconstruction
Instead of brittle plain-text dumps, the invoice extractor reads affine transform matrices per glyph span (`transform[4]` = X, `transform[5]` = Y), groups spans into horizontal rows by baseline tolerance, and pairs buyer GSTINs, HSN numbers, quantities, and CGST/SGST/IGST columns cleanly.
05GST Schema Normalization & Structural Validation
Once marketplace rows normalize into canonical records, mapRecordsToTemplate routes entries across 31 GSTR-1 and 11 GSTR-2 schedules while validateGstDataset checks GSTIN regex patterns, POS codes, negative tax imbalances, and mandatory voucher numbers before Step 5 download.
06Multi-Format JSON, Offline Excel & ZIP Bundles
Single-format exports emit GSTN-compliant nested JSON (grouping multiple rate lines under a single invoice itms[] array), GST Offline Utility XLSX, or importable CSV. Multi-format selections bundle every active schedule cleanly into a single client-generated JSZip archive.
07Zero-Storage Security Guarantees
Verifiable Browser Isolation
Open DevTools → Network while dropping any CSV, Excel, or PDF tax invoice into InvoiceToGSTR: zero upload POST requests are dispatched during file ingestion, editing, validation, JSON serialization, or download.
Practical Seller & CA Guides
Looking for step-by-step instructions before filing? Jump straight to a workflow: