Sancus-lua-sample-old is a project mainly written in JAVASCRIPT and LUA, it's free.
Sample code to use sancus-lua