FORMULA ENGINE ============== Reactive formula evaluation engine. Parses variable assignments (addition), evaluates via dependency graph, tracks history, detects cycles, and surfaces diagnostics. https://git.bunk3r.dev/c0nrad/runway HTTP API -------- GET /state Full state snapshot (all variables) GET /variables/{name} Single variable detail POST /statement Process a statement (JSON body) POST /load Upload a .txt file of formulas Examples -------- Define variables: curl -X POST https://runway.bunk3r.dev/statement \ -H 'Content-Type: application/json' \ -d '{"statement": "a = 100"}' curl -X POST https://runway.bunk3r.dev/statement \ -H 'Content-Type: application/json' \ -d '{"statement": "b = 50"}' curl -X POST https://runway.bunk3r.dev/statement \ -H 'Content-Type: application/json' \ -d '{"statement": "c = a + b"}' Check the full state (c = 150): curl https://runway.bunk3r.dev/state Update a dependency (c recomputes automatically): curl -X POST https://runway.bunk3r.dev/statement \ -H 'Content-Type: application/json' \ -d '{"statement": "a = 200"}' Look up a single variable (history + diagnostics): curl https://runway.bunk3r.dev/variables/c Trigger an error (undefined reference): curl -X POST https://runway.bunk3r.dev/statement \ -H 'Content-Type: application/json' \ -d '{"statement": "x = unknown + 1"}' Circular reference: curl -X POST https://runway.bunk3r.dev/statement \ -d '{"statement": "p = q"}' curl -X POST https://runway.bunk3r.dev/statement \ -d '{"statement": "q = p"}' Upload a file of formulas: curl -X POST https://runway.bunk3r.dev/load \ -F "file=@formulas.txt"