Skip to content

About

6 logistics/trucking/import tools: fleet fuel tracker, route cost calculator, CMR manifest parser, Turkish customs tariff lookup, exchange-rate alerts, multi-carrier shipment tracking

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Kasap Logistics Tools

CI License: MIT

A small portfolio of genuinely working, standalone logistics/trucking/import tools built by kasapdev, the developer behind Sadakat Logistics (a TruckersMP/ETS2-ATS-adjacent trucking operation) and an eBay import/export side business. Open source - use it, fork it, adapt it.

Managed as a pnpm workspace monorepo. Each package under packages/ is independent - no shared runtime dependency between them - so you can take just the one you need.

Packages

Package Description
fleet-fuel-tracker CLI that ingests fuel-log and route-log CSVs into SQLite and reports L/100km efficiency, cost-per-km, fill-to-fill trend, and outlier (data-entry error / possible theft) detection per vehicle.
route-cost-calculator CLI that computes route cost (fuel + tolls) from distance or haversine-derived waypoint distance, with single-route and CSV batch/ranking modes.
cargo-manifest-parser CLI/library that extracts structured fields (consignor, consignee, goods, weight, references) from text-based CMR consignment notes, with PDF text extraction.
customs-tariff-lookup CLI/library for exact/prefix/keyword search over a shipped starter dataset of HS/GTİP codes.
exchange-rate-alert CLI that polls a public ECB-based exchange-rate API, stores the last-seen rate, and alerts on threshold moves or target-rate crossings.
shipment-tracking-aggregator Typed SDK unifying DHL (real API), Yurtiçi Kargo, and Aras Kargo (best-effort scrapes) tracking lookups behind one TrackingResult shape.

Important data-accuracy notes

  • customs-tariff-lookup ships a small example dataset, not an authoritative tariff schedule. Every entry's duty rate is a null placeholder that must be confirmed against the current official Turkish customs tariff schedule (Türkiye Gümrük Tarife Cetveli / Ticaret Bakanlığı) before it's used for any real import decision. Treat it as a code lookup/search convenience only.
  • shipment-tracking-aggregator's Yurtiçi Kargo and Aras Kargo clients are best-effort HTML scrapes, not official APIs (neither carrier publishes a simple public JSON tracking API). They are inherently fragile - if either site's page structure changes, the client is designed to throw a typed TrackingParseError ("page structure may have changed") rather than silently return wrong data. Only the DHL client uses a real, documented JSON API.

Setup

pnpm install
pnpm build
pnpm test

Node.js >= 22.5.0 is required (several packages use the built-in node:sqlite module). Each package that talks to a real external service ships a .env.example - copy it to .env inside that package and fill in the placeholders (API keys, webhook URLs) before use.

Conventions

  • TypeScript + ESM throughout (module/moduleResolution: NodeNext), strict: true.
  • Each package: src/, tests/ (vitest, no live network calls - all HTTP/scrape logic is tested against mocked fetch or fixture HTML/JSON), its own package.json and README.md.
  • CLIs are built with commander and support --json for machine-readable output where it makes sense.
  • Code, comments, and commit messages are in English. CLI report labels are Turkish where that reads naturally for a Turkish logistics/import audience.
  • No fabricated real-world rates, prices, or tariffs anywhere in this repo - see the data-accuracy notes above.

License

MIT - see LICENSE.

About

6 logistics/trucking/import tools: fleet fuel tracker, route cost calculator, CMR manifest parser, Turkish customs tariff lookup, exchange-rate alerts, multi-carrier shipment tracking

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages