Data
Vaahan
Real-time hours-of-service compliance for trucking fleets
- TypeScript
- Node.js
- AWS Lambda
- Amazon SQS
- Amazon SNS
- AWS SAM
- PostgreSQL
- Drizzle ORM
- React
- GitHub Actions
- Samsara API
- Claude Code
Architecture (simplified)
Data flows: ELD API to Pollers; Pollers to PostgreSQL; Pollers to Eval queue; Eval queue to Rules engine; Rules engine to PostgreSQL; Rules engine to Notifiers; PostgreSQL to Dashboard.
About the project
Vaahan was a real-time hours-of-service compliance platform for trucking fleets. Fleets usually find out about a violation the next day, when the fine is already on its way. Vaahan watched every driver's hours-of-service clock around the clock, caught violations within minutes, and predicted breaches before they happened. I co-built it with a partner who runs a trucking compliance business: I architected the system and wrote its rules engine.
Under the hood it was an event-driven serverless pipeline on AWS: about twenty Lambda functions on SQS and SNS that polled the Samsara ELD API every ten minutes, with idempotent ingestion into PostgreSQL, per-carrier FIFO queues, and dead-letter queues with redrive. The rules engine was deterministic and written from scratch, seven layers implementing the FMCSA hours-of-service rules. Before cutover it ran in shadow against the old engine for 25 days: over 360,000 evaluations, about 99% agreement and no regressions in the cutover week. Then the old engine was retired.
It shipped through 175 automated deploys on GitHub Actions, and I built it with AI-driven development: a multi-agent Claude Code setup with 14 custom skills.