The Schema Definition Language (SDL) for the entity graph: a stable JSON/TOML
schema format + a parser that produces a validated intermediate
representation (IR). Every code generator (Rust CLI, Flutter, framework
bindings) consumes the SAME IR so generated targets never diverge.
@prometheus-ags/entity-graph-sdl
The Schema Definition Language (SDL) for the entity graph: a stable JSON/TOML schema format + a parser that produces a validated intermediate representation (IR). Every code generator (Rust CLI, Flutter, framework bindings) consumes the SAME IR so generated targets never diverge.
Format (schema.json): { "version": "1.0", "entities": { "user": { "fields": { "id": {"type":"string","primary":true}, "name": {"type":"string","required":true} }, "relations": { "orders": {"type":"hasMany","target":"order","foreignKey":"userId"} } } }, "config": { "localFirst": {"engine":"pglite","sync":"electric"}, "ai": {"mcp":true,"a2a":true} } }