Comment by znpy
If you have some software that’s somewhat rigid you could make it scriptable by linking microquickjs.
For example, lately i was looking into patching dnsmasq to handle events but found out that the dhcp-script flag most likely does what i need.
Otherwise i could patch dnsmasq to load microquickjs, evaluate some javascript functions and hook into events emitted by the dnsmasq regular lifecycle.
I might end up doing that anyway, since it looks like a fun thing to do.