Playground

Interactive engine

Declare a domain, write a Datalog policy, feed runtime facts, and query — running on the real maelys_datalog kernel compiled to WebAssembly.

loading engine
examples
Example guide

Basic allow

Two requests use different backends. The policy allows a request only when its backend is trusted and it carries text; it denies requests from untrusted backends.

Try it · Compare the allow and deny answers for req-1 (trusted) and req-2 (untrusted). These are separate relations, not two values of one boolean.

1domainname/arity kind
2policy.dlDatalog rules
3edb.dlruntime facts
4queriespred("symbol", 123, true)
results
Run solve() to evaluate your queries.
●predicate●variable (Uppercase)●"symbol"●edb · idb · query●% comment·rules end with .·typed facts of arity 0 to 4