Open Source Projects
The tariff engine and data behind Invoice × Tariff are open source: the same versioned ruleset snapshot drives this site's calculators and ships as an npm package, a browser extension and open datasets you can integrate freely. Everything is MIT licensed.
npm package
Our tariff engine packaged as a zero-dependency TypeScript library + CLI: calculateLandedCost, searchHts, changelogEntries and more. The ruleset snapshot ships inside the package and updates monthly, in lockstep with this site. On the command line: npx us-tariff calc / search / meta.npm install us-tariff-lookup
GitHub repositories
Source repository for the us-tariff-lookup npm package: engine bundling, CLI and release pipeline.
Source repository for the “US Tariff Lookup” browser extension: one Manifest V3 codebase for Chrome, Edge and Firefox. Look up HTS codes and stacked duty rates from the toolbar; data is bundled and works offline.
US Tariff Lookup desktop app (Electron): offline lookup and landed-cost calculation for Windows / macOS / Linux — same engine as the web calculator. Desktop app
Browser extension
“US Tariff Lookup” is live on Microsoft Edge Add-ons: look up HTS codes, MFN duty rates and stacked Section 301/232 layers from the toolbar; data is bundled and works offline.
The Firefox Add-ons (AMO) and Chrome Web Store versions are under review — links will be added here once approved.
Open data
A machine-readable CSV dataset of duty rates for 475 high-frequency HTS codes (MFN + Section 301 China + Section 232) is published under CC BY 4.0, from the same ruleset snapshot the engine uses. Tariff data — for Excel, Python and Sheets usage see the Tutorials.
More package managers
The same versioned snapshot as a Go module — HTS search (English + 中文, multi-word AND), ruleset meta and the changelog; data embedded, zero dependencies, fully offline.go get github.com/invoicetariff/us-tariff-lookup-go
Command-line user on macOS or Linux? The us-tariff CLI installs from our Homebrew tap (builds from source with Go).brew install invoicetariff/tap/us-tariff-lookup
PHP side of the same offline dataset: a Composer package with HTS code search (English + Chinese, multi-word AND), ruleset meta and the machine-readable changelog. Zero dependencies; the full landed-cost math stays in the npm package or the web calculator.composer require invoicetariff/us-tariff-lookup
All projects above are open source under the MIT license — issues and PRs welcome.