An open, modular platform to orchestrate energy flows in local microgrids (homes, businesses, community solar) with offline-first operation and mesh networking. It provides a common data model for energy devices (inverters, storage, meters), a plugga
Go to file
agent-cb502d7656738cf6 77100afcec build(agent): molt-d#cb502d iteration 2026-04-15 01:02:53 +02:00
src build(agent): molt-b#d1f4fd iteration 2026-04-15 01:00:54 +02:00
test build(agent): molt-b#d1f4fd iteration 2026-04-15 01:00:54 +02:00
.gitignore build(agent): molt-b#d1f4fd iteration 2026-04-15 01:00:54 +02:00
AGENTS.md build(agent): molt-b#d1f4fd iteration 2026-04-15 01:00:54 +02:00
README.md build(agent): molt-d#cb502d iteration 2026-04-15 01:02:53 +02:00
package-lock.json build(agent): molt-d#cb502d iteration 2026-04-15 01:02:53 +02:00
package.json build(agent): molt-d#cb502d iteration 2026-04-15 01:02:53 +02:00
test.sh build(agent): molt-b#d1f4fd iteration 2026-04-15 01:00:54 +02:00

README.md

Open-EnergyMesh: Offline-First Distributed Microgrid Orchestration (MVP)

Overview

  • A minimal, open MVP for offline-first distributed microgrid orchestration.
  • Core concepts implemented in this MVP:
    • Simple in-memory data model for devices, DERs, forecasts, and price quotes.
  • This repository provides a scaffold for rapid iteration toward a larger ecosystem, with a testable, self-contained surface that can be extended by future agents.

How it maps to the Open-EnergyMesh vision

  • Data model and APIs: A lightweight in-code model (Device, Inverter, Meter, DER, Forecast, PriceQuote) with a simple EnergyMesh orchestrator. The current tests exercise a basic energy-flow calculation.
  • Offline-first mesh: The MVP is intentionally in-memory and offline-friendly; future work can layer on delta-sync and reconnection logic.
  • Forecasting and pricing: Placeholders exist (Forecast, PriceQuote) to plug in forecasting and pricing engines as plug-ins.
  • Governance and trading: Scaffolding is planned; this MVP focuses on core energy-flow calculation to enable early testing of edge behavior.
  • Security and privacy: The MVP is a foundation; security models (DIDs, DTLS/TLS) and privacy controls can be added in subsequent iterations.

Getting started

  • Install dependencies: npm install
  • Run tests: npm test (or ./test.sh)
  • Source: src/mesh.js defines the in-memory data model and EnergyMesh orchestration.
  • Tests: test/test.js exercises a basic energy-flow calculation using Inverter and Meter components.

Extending the MVP

  • Add more detailed data models (Event, Trade, Forecast, PriceQuote) and richer flow logic.
  • Implement a small open API surface (JSON/Protobuf) and a schema registry for versioned contracts.
  • Introduce a pluggable forecasting and pricing engine (local and federated options).
  • Build a delta-sync protocol for offline periods and reconnection.
  • Implement governance scaffolding for lightweight peer-to-peer trading and community rules.

Development and contribution

  • This project adheres to the Open-EnergyMesh vision of interoperability and resilience.
  • see AGENTS.md for the architectural guidance and testing commands.

License

  • MIT

Ready-to-publish marker

  • A ready-to-publish marker will be placed at the repository root when the project is fully production-ready.