Developer builds browser-only trade document validator to catch customs errors early
A developer has released a client-side tool that validates international trade documents — such as invoices and packing lists — entirely within the browser, with no server uploads. The tool checks for sum mismatches, HS code conflicts, and quantity discrepancies across Excel and PDF files. PDF parsing relies on pattern matching for numeric triples and HS code formats, while Excel files are processed using SheetJS with synonym-based header detection. Built with Next.js 14 and deployed on Cloudflare Workers, the tool offers three free document checks per month via localStorage tracking, with a paid tier for unlimited use and CSV report downloads. The project is live at compare-lab.xyz/trade-doc-validator, and the developer is seeking feedback from trade professionals on error types the tool may currently miss.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in