@dashkite/athena
v0.0.22
Published
A practical CoffeeScript rules engine
Readme
Athena Rules Engine
A practical CoffeeScript rules engine
Athena is a reactive rules engine that allows you to define conditions and actions that respond to state changes.
Installation
Use your favorite package manager:
npm install @dashkite/athenaUsage
Define conditions, actions, and rules to create a reactive system.
import Athena from "@dashkite/athena"
athena = Athena.make()
athena.condition "is-happy", -> @mood == "happy"
athena.action "celebrate", -> console.log "Yay!"
athena.rules
"celebrate": "is-happy"
state = mood: "happy"
for await event from athena.apply state
console.log eventStatus
Not suitable for production use. Please report any issues on the GitHub repository.
