Declarative event-driven development library