Have an in browser code-editor (ace) that compiles user-written code on the fly for p5.js. Researching how to prevent infinite loops and learned that a few such editors use