How marzaq99/tarif works
TARIF SCHEDULE turns a commodity code into a structured tariff report, with keyword/code suggestions as an alternate way to find a code. The sampled source shows a Netlify relay validating requests and fetching commodity data or suggestions from external services. The README describes report details and user actions, but the frontend files were not sampled, so their internal behavior and connections to the relay cannot be verified here.
Main entry points: index.html Search and report · functions/tariff.mjs Netlify API relay · tariff.mjs Tariff API relay
Components 6
Report interface
- Search and report
public/index.html
Tariff relay
- Tariff API relay
tariff.mjs - Netlify API relay
netlify/functions/tariff.mjs
Other components
- Commodity-code user
- UK XI tariff API
- Tariffnumber suggestions
Connections 7
- Commodity-code user → Search and report: searches and reads
README.md - Search and report → Commodity-code user: presents report
README.md - Search and report → Netlify API relay: requests data
- Netlify API relay → UK XI tariff API: fetches commodity
netlify/functions/tariff.mjs - Netlify API relay → Tariffnumber suggestions: fetches suggestions
netlify/functions/tariff.mjs - Tariff API relay → UK XI tariff API: fetches commodity
tariff.mjs - Tariff API relay → Tariffnumber suggestions: fetches suggestions
tariff.mjs