Variant Systems

Node.js & Elysia for Logistics

Logistics platforms ingest data from thousands of endpoints with inconsistent formats. Elysia validates and normalizes it all at the boundary.

Variant Systems builds industry-specific software with the tools that fit the problem.

Why this combination

  • Bun runtime handles high-throughput tracking event ingestion from GPS devices, warehouse scanners, and carrier APIs simultaneously
  • TypeBox validation normalizes inconsistent shipment data from dozens of carrier integrations into a unified typed schema
  • Eden Treaty generates typed clients for dispatch dashboards and customer tracking portals with zero schema drift
  • Plugin architecture lets you add new carrier integrations, geofencing rules, and alerting logic without touching core routing

Unified Tracking Across Fragmented Carrier Networks

Logistics platforms consume shipment data from dozens of carriers, each with their own API format, status codes, and update frequencies. FedEx, UPS, regional couriers, and freight forwarders all describe the same shipment journey in incompatible ways. Elysia’s TypeBox validation schemas normalize this chaos at the integration boundary. Each carrier plugin transforms incoming data into your canonical shipment event schema before it enters your system.

Eden Treaty means your dispatch dashboard and customer tracking portal consume a single typed API regardless of which carrier handles the shipment. When you add a new carrier integration, you write a plugin that maps their format to your schema. The rest of your application doesn’t change. Your customers see consistent tracking updates whether their package moves via air freight or last-mile bicycle courier.

High-Throughput Event Ingestion on Bun

A busy logistics operation generates thousands of tracking events per minute. GPS pings from delivery vehicles, barcode scans at warehouse checkpoints, status updates from carrier webhooks. Bun’s optimized HTTP server and Elysia’s compiled route handling absorb this volume without queuing delays. Each event hits a validated endpoint, gets normalized, and flows into your event store or message queue.

TypeBox validation rejects malformed events immediately. A GPS ping missing coordinates, a scan event with an invalid shipment ID, or a carrier webhook with an unrecognized status code gets bounced with a structured error response. Your downstream systems only process clean, validated data. This boundary enforcement eliminates an entire class of data quality issues that plague logistics platforms built on loosely validated REST APIs.

Route Optimization and Delivery Intelligence

Delivery route optimization balances competing constraints: time windows, vehicle capacity, traffic patterns, and driver hours. Your optimization endpoint accepts a typed request with all these parameters validated by TypeBox and returns an ordered stop sequence with estimated arrival times. The strict input validation ensures your optimization algorithm receives complete, well-formed constraint data.

Elysia’s plugin architecture lets you evolve your optimization logic independently from your tracking and warehouse systems. Swap in a new routing algorithm, add weather-aware delay predictions, or integrate real-time traffic feeds by updating the route optimization plugin alone. Eden Treaty keeps your dispatch interface synchronized with the API response shape, so drivers see updated routes rendered correctly on the first deployment.

Warehouse Operations and Inventory Flow

Warehouse management APIs coordinate pick, pack, and ship workflows across facilities. Each operation generates events that update inventory positions and trigger downstream actions. Elysia endpoints validate every warehouse operation against TypeBox schemas that enforce location codes, SKU formats, and quantity constraints. A pick request for a quantity exceeding available stock gets rejected at the API boundary.

The plugin architecture separates warehouse concerns from transportation concerns cleanly. Your inventory tracking plugin, your wave planning plugin, and your shipping label generation plugin each maintain their own typed interfaces. Bun’s fast response times keep warehouse workers moving. A scan-and-confirm operation that takes 200 milliseconds to round-trip keeps the pick line flowing. One that takes two seconds creates a bottleneck at every shelf.

Compliance considerations

Customs and trade compliance data validated through TypeBox schemas that enforce tariff codes, country-of-origin declarations, and weight classifications
Chain of custody logging captures every handoff event with location, timestamp, and handler identity for regulatory audits
Hazardous materials routing rules enforced as typed middleware that validates shipment contents against DOT and IATA classifications
Data retention plugins enforce jurisdiction-specific record keeping requirements for shipping documentation

Common patterns we build

  • Real-time shipment tracking APIs that aggregate status updates from multiple carrier feeds
  • Route optimization endpoints that factor in traffic, weather, delivery windows, and vehicle capacity
  • Warehouse management APIs with inventory location tracking and pick-pack-ship workflow orchestration
  • Carrier rate comparison services that normalize pricing across different quoting formats

Other technologies

Services

Building in Logistics?

We understand the unique challenges. Let's talk about your project.

Get in touch