How athang0x/eviq works
EVIQ is a prototype EV range and energy-analytics platform. Its primary workflow sends vehicle conditions or telemetry from the frontend to the FastAPI API, which derives features when needed and uses the range engine to estimate consumption and remaining range. Analysis adds efficiency breakdowns and speed curves; journey insights compare range with destination distance and return coaching, optionally phrased by Gemini. The backend also exposes model information and demo-trip data, while a separate training pipeline builds the inference models. Frontend source was not sampled, so its feature components and wiring are represented only at the documented subsystem level.
Main entry points: app.py FastAPI endpoints · model_core.py Prediction and analysis · insight.py Journey facts and coaching · train.py Model training and evaluation
Components 11
Driver interface
- Dashboard and trip UI
frontend
API and journeys
- FastAPI endpoints
backend/app.py - Demo telemetry
backend/demo_trip.py
Range intelligence
- Telemetry features
backend/model_core.py - Prediction and analysis
backend/model_core.py - Vehicle features and assumptions
backend/vehicle.py - Journey facts and coaching
backend/insight.py
Model pipeline
- Driving simulator
backend/simulator.py - Model training and evaluation
backend/train.py
Other components
- EV driver
- Gemini API
Connections 12
- EV driver → Dashboard and trip UI: uses
README.md - Dashboard and trip UI → FastAPI endpoints: sends API requests
README.md - FastAPI endpoints → Telemetry features: derives features
backend/app.py - FastAPI endpoints → Prediction and analysis: requests predictions
backend/app.py - FastAPI endpoints → Journey facts and coaching: requests coaching
backend/app.py - FastAPI endpoints → Demo telemetry: returns trip data
backend/app.py - Journey facts and coaching → Prediction and analysis: computes range facts
backend/insight.py - Journey facts and coaching → Gemini API: requests phrasing
backend/insight.py - Prediction and analysis → Vehicle features and assumptions: uses feature definitions
backend/model_core.py - Driving simulator → Vehicle features and assumptions: uses vehicle schema
backend/simulator.py - Model training and evaluation → Driving simulator: generates training data
backend/train.py - Model training and evaluation → Prediction and analysis: produces inference model
README.md