PolicyEngine lets rules be written in a readable DSL, parses them into an AST, and evaluates them against runtime context — so business logic lives in editable rules, not scattered conditionals.
Built on the "Antigravity" model.
# 1. Clone
git clone https://github.com/Kimosabey/policy-engine.git
cd policy-engine
# 2. Install
# (see docs/GETTING_STARTED.md for the full setup)
# 3. Run
docker compose up- Readable rule DSL
- Parser → AST → evaluator pipeline
- Runtime rule updates without redeploy
- Explainable rule outcomes
%%{init: {'theme':'base','themeVariables':{'primaryColor':'#ffffff','lineColor':'#2563eb','mainBkg':'#ffffff'}}}%%
graph LR
A([Rule DSL])
B([Parser])
C([AST])
D([Evaluator])
A --> B
B --> C
C --> D
style A fill:#eff6ff,stroke:#2563eb,stroke-width:2px,color:#1e40af
style B fill:#eff6ff,stroke:#2563eb,stroke-width:2px,color:#1e40af
style C fill:#eff6ff,stroke:#2563eb,stroke-width:2px,color:#1e40af
style D fill:#eff6ff,stroke:#2563eb,stroke-width:2px,color:#1e40af
Designing a language — grammar, parsing, and safe evaluation — that non-authors can still read.
See docs/ARCHITECTURE.md for the full HLD/LLD and design decisions.
| Layer | Technology | Role |
|---|---|---|
| TypeScript | TypeScript |
Type-safe application code |
| Node.js | Node.js |
Application runtime / service layer |
- Architecture — high- and low-level design, decision log
- Getting Started — prerequisites, setup, environment
- Failure Scenarios — fault analysis and recovery
- Interview Q&A — deep-dive walkthrough
- Rule versioning
- Dry-run / simulation
- Rule conflict detection
Released under the MIT License.
Harshan Aiyappa Senior Full-Stack Hybrid AI Engineer Voice AI • Distributed Systems • Infrastructure