SMART GRIDS • DER INTEGRATION • DIGITAL TWINS

The modular middleware that lets any DER hardware securely connect to any smart grid system via standardized adapters.

DERIM is the missing infrastructure layer for the energy transition. FastAPI backend • 4+ Pluggable Adapters • IEEE 2030.5 & IEC CIM • PyTorch Digital Twin • InfluxDB • Grafana Observability. Built for utilities, VPP operators, and grid modernization teams who need reliable, observable, and standards-aligned DER integration.

Connect solar PV inverters, battery energy storage systems (BESS), and EV charging stations to SCADA, DERMS, and virtual power plants — all with production-grade adapters, CIM normalization, and real-time forecasting.

Global DER Integration Horizons

Operational Time Zones

2050 DER COMMAND CENTER

Experience the Future of Energy Integration — Live & Interactive.

This interactive panel is a browser-side simulation built on illustrative data. It mirrors the architecture, data models, and message shapes of the open-source middleware — wire it to a running DERIM backend to drive it with live telemetry. Choose any capability from the dropdown and interact with it exactly as utilities and VPP operators will in 2030–2050.

INTERACTIVE SIMULATION • ILLUSTRATIVE DATA • MIRRORS DERIM v0.1.1 ARCHITECTURE
🌌
DERIM v0.1.1OPEN SOURCE

Live Interactive Command Center

Real-time simulation of DERIM middleware — the open-source integration layer for solar, storage & EV fleets.
Mirrors the architecture and data models of the open-source Python/FastAPI + PyTorch stack. This panel runs on illustrative data in your browser.

ACTIVE FLEET ASSETS
SELECT CAPABILITY
All modes run on illustrative data and mirror the open-source DERIM architecture
🔌
Live Adapter Connection
Connect DER hardware via Modbus, MQTT, SunSpec or OCPP using the open-source protocol adapters
PROTOCOL ADAPTER
Browser-side simulation using illustrative data. Protocols, data models, and message shapes mirror the open-source repository.
View on GitHub →Ready for Vercel • Docker • Fly.io

How This Demo Maps to Real DERIM

  • Adapter Mode → Real src/derim/adapters/ (Modbus, MQTT, SunSpec, OCPP)
  • Digital Twin → Real src/derim/digital_twin/ PyTorch LSTM + anomaly detection
  • CIM Validator → Real src/derim/models/ Pydantic IEEE 2030.5 + IEC 61968
  • Control Center → Real /api/v1/control/ endpoint with audit logging

Every action here mirrors the architecture and data models of the open-source codebase. Connect a running DERIM backend to operate on live data.

Ready to Go Production?

Clone the repo and run `docker compose up` in under 3 minutes
Connect your real Modbus/SunSpec/OCPP devices instantly
Deploy the FastAPI backend to any cloud or edge device
Integrate with your existing SCADA, VPP, or DERMS via OpenAPI
Scale to 50,000+ DER assets with full observability
Get the Full Production Stack →
Architecture of Value Creation

Four clean layers. One coherent DER integration thesis.

Protocol Adapters Layer

4+ Production Connectors

Modular, pluggable adapters for Modbus TCP/RTU, MQTT 3.1.1/5.0, SunSpec, and OCPP 1.6-J/2.0.1. Each implements a clean BaseAdapter interface with connect/read/write. Extensible to DNP3 and IEC 61850.

Data Normalizer & CIM Mapper

IEEE 2030.5 + IEC 61968

Strict Pydantic v2 validation and mapping to Common Information Model (CIM). Converts raw vendor telemetry into standardized, queryable DERDevice and DERTelemetry records ready for any grid application.

Core Services & Digital Twin

FastAPI + InfluxDB + PyTorch

High-performance async REST API, time-series storage (InfluxDB with SQLite fallback), and the lightweight PyTorch LSTM engine for real-time forecasting, anomaly detection, and control recommendation.

Observability & Control

Audit + Metrics + Grafana

End-to-end structured logging, Prometheus exposition, Grafana monitoring dashboards, and bidirectional control command routing back to physical DER hardware. 100% request traceability by design.

Request & Control Flow (Simplified)

DER Hardware (Inverter / BESS / EV) → Protocol Adapters → CIM Normalizer & Validation → InfluxDB + Digital Twin → REST API → SCADA / VPP / DERMS.

Forecasts and control commands flow back through the same deterministic path. Every step is logged, validated, and standards-aligned. No magic. Just reliable grid infrastructure.

Live visualization of multi-protocol adapter coordination mesh

Core Modules & Capabilities

Everything you need to give DER assets real-world grid superpowers.

Core Module

Core Middleware

The complete FastAPI backend, adapter runtime, CIM models, storage layer, and digital twin engine — the foundation for all DER integration and grid orchestration.

Core Module

Adapter Ecosystem

Production adapters for Modbus, MQTT, SunSpec, and OCPP. Each adapter is deterministic, fully typed, and easy to extend. Add new protocols in under 200 lines.

Core Module

Digital Twin Engine

PyTorch LSTM forecasters, statistical baselines, residual anomaly detection, and interactive what-if simulation. Persists models and serves forecasts via the REST API.

Core Module

Observability Stack

Prometheus metrics, structured logging, and ready-to-launch Grafana dashboards via Docker Compose --profile monitoring. Jupyter notebooks for model training and scenario analysis.

Developer Experience

Clone. Configure. Connect. In under 3 minutes.

git clone https://github.com/iceccarelli/derim-middleware.git
cd derim-middleware
python -m venv .venv && source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements/base.txt
pip install -e .
cp .env.example .env

# Run the API:
uvicorn derim.main:app --reload --port 8000

# Full stack with monitoring:
docker compose --profile monitoring up -d
Get Started on GitHub →
Live Intelligence Hub

Real-time signals from the DERIM ecosystem.

Live sources initializing...

Interactive Telemetry

Live Digital Twin Forecast & Adapter Flow

Real-time simulation of PyTorch LSTM inference, telemetry normalization, and CIM validation inside DERIM

DER Integration at Scale

Utilities and VPP operators need reliable, standards-aligned bridges to millions of heterogeneous DER assets — DERIM delivers exactly that.

Grid Modernization & Electrification

The energy transition demands real-time visibility, forecasting, and control. DERIM’s digital twin turns raw telemetry into actionable grid intelligence.

Standards-Driven Interoperability

No more vendor lock-in. IEEE 2030.5 + IEC CIM + native protocol adapters mean every DER can talk to any grid system — today.

Proven Engineering Impact

Built for production DER and grid workflows

<80ms
average telemetry ingestion latency (local)
4+
production-ready protocol adapters out of the box
79+
unit & integration tests across all core modules
Zero
vendor lock-in — full IEEE 2030.5 & IEC CIM compliance
Trusted Ecosystem

Standards bodies and technologies powering the energy transition.

Start Building Today

If reliable DER-to-grid integration matters to you, DERIM is ready.

Whether you are building virtual power plants, modernizing utility SCADA, or deploying smart charging networks — DERIM gives you the secure, standards-aligned, and developer-friendly foundation you have been missing.

Design Partner Programme

Running a DER integration? Let us help you ship it.

We are onboarding a small group of utilities, VPP operators, and OEMs as design partners: hands-on integration support and direct input on the roadmap, no cost during the pilot.

No spam. We use your email only to coordinate the pilot. See our privacy policy.