Event-driven code execution library