The Brain (DSL)
Most AI generators go straight from Text → Pixel. This is brittle.
Kompyl compiles Text → Brain (Intermediate Representation) → Pixel.
{
"deck": {
"title": "Safety 101",
"blocks": [
{
"type": "concept",
"id": "blk_123",
"data": {
"definition": "...",
"analogy": "..."
},
"validation": {
"status": "pass",
"score": 0.98
}
}
]
}
}Why a DSL?
- 1.Edit Structure, Not Pixels: Change a definition in the Brain, and it updates the Slide, the Guide, and the Quiz instantly.
- 2.Linting & QA: We run logic checks on the JSON structure before rendering a single slide.
- 3.Interoperability: The Brain JSON can be stored in your DB, versioned with Git, or fed into other systems.