For ScreenInvader (https://github.com/screeninvader/ScreenInvader) i implemented a JSON DMBS (https://github.com/kallaballa/Janosh) with lua scripting support.Now I'm polishing it for general use, and for that purpose i'm writing examples. Check this out: https://kallaballa.github.io/SnapRouletteJanosh/