Backend-first fleet operations platform for detention tracking, stop event timelines, and auditable revenue-loss analytics.
- Dashboard: https://detiviq-wusr.vercel.app
- API Docs: https://detiviq.onrender.com/docs
Detiviq helps carriers, dispatchers, and operations teams detect excessive waiting time at facilities, calculate detention charges, and surface delay-related revenue leakage.
The system models loads and stops, ingests operational events like arrived, checked_in, loading_started, loading_finished, and departed, applies configurable rules, computes detention eligibility, creates detention cases, and exposes recruiter-friendly analytics through APIs and a lightweight dashboard.
Truck waiting time is often tracked through calls, chats, memory, or spreadsheets. That leads to:
- missed detention charges
- weak auditability
- poor visibility into repeat delay sources
- revenue leakage that is hard to prove
Detiviq turns operational timestamps into explainable business outcomes.
- Event ingestion
- Idempotency handling
- Rules resolution
- Dwell and detention computation
- Detention case creation and update
- Audit logging
- Analytics queries
- Deploy-safe backend architecture
- FastAPI
- PostgreSQL
- SQLAlchemy 2.0
- Alembic
- Pydantic
- Next.js dashboard
- Backend: Render
- Database: Supabase Postgres
- Frontend: Vercel
- Organization
- User
- Facility
- Load
- Stop
- Event
- Ruleset
- DetentionCase
- AuditLog
Key routes include:
POST /api/v1/auth/registerPOST /api/v1/auth/loginGET /api/v1/facilities/POST /api/v1/facilities/GET /api/v1/loads/POST /api/v1/loads/GET /api/v1/loads/{load_id}POST /api/v1/loads/{load_id}/stopsGET /api/v1/loads/{load_id}/timelineGET /api/v1/events/POST /api/v1/events/GET /api/v1/detention-cases/GET /api/v1/analytics/open-detention-cases-summaryGET /api/v1/analytics/top-delayed-facilitiesGET /api/v1/analytics/revenue-loss-summary