How evtivity/evtivity-csms works
EVtivity is an EV charging management platform: operator and driver interfaces reach a REST API, while charging stations and roaming partners use OCPP and OCPI services. The API and protocol services share PostgreSQL and Redis; workers handle background tasks. The README also documents station operations, payments, and AI-assisted workflows. Relationships below rely on README architecture and feature descriptions plus sampled source references; unsampled route and service internals are represented at directory level, so their internal call paths are not asserted.
Main entry points: src/app.ts REST API · App.tsx Operator dashboard · server OCPP server · src/app.ts OCPI service
Components 20
User interfaces
- Operator dashboard
packages/csms/src/App.tsx - Driver portal
packages/portal/src/App.tsx
Platform services
- REST API
packages/api/src/app.ts - Background workers
packages/worker/src - Payments
packages/payments/src/webhooks.ts - Pricing engine
packages/lib/src/pricing-engine.ts
Charging protocols
- OCPP server
packages/ocpp/src/server - Station authorization
packages/ocpp/src/authorization/authorize-token.ts - OCPI service
packages/ocpi/src/app.ts - Roaming sync
packages/ocpi/src/services/push.service.ts
AI operations
- AI assistant
packages/api/src/services/ai/engine/turn-runner.ts - Assistant tools
packages/api/src/services/ai/tools/execute.ts - Model providers
packages/ai/src/providers - Support assist
packages/api/src/services/ai/engine/support-insights.ts
Shared data
- PostgreSQL
packages/database/src - Redis
packages/lib/src/redis-client.ts
Other components
- Operator
- Driver
- Charging stations
- OCPI partners
Connections 23
- Operator → Operator dashboard: uses
README.md - Driver → Driver portal: uses
README.md - Operator dashboard → REST API: REST requests
README.md - Driver portal → REST API: REST requests
README.md - REST API → PostgreSQL: reads and writes
README.md - REST API → Redis: uses pub/sub
README.md - OCPP server → PostgreSQL: reads and writes
README.md - OCPP server → Redis: uses pub/sub
README.md - OCPI service → PostgreSQL: reads and writes
README.md - OCPI service → Redis: uses pub/sub
README.md - Background workers → PostgreSQL: uses
README.md - Background workers → Redis: uses
README.md - Charging stations → OCPP server: OCPP messages
README.md - OCPP server → Station authorization: authorizes tokens
packages/ocpp/src/handlers/v2_1/authorize.handler.ts - OCPI partners → OCPI service: OCPI requests
README.md - OCPI service → Roaming sync: registers service routes
- Operator dashboard → AI assistant: asks questions
README.md - AI assistant → Assistant tools: reads and proposes
README.md - Assistant tools → REST API: accesses data
README.md - AI assistant → Model providers: streams responses
README.md - Operator dashboard → Support assist: assists cases
README.md - REST API → Payments: coordinates payments
- REST API → Pricing engine: prices sessions