Scratch.js Scratch.js is a JS library which you can use to code in Scratch as a text-based approach Currently on its test version so there are not that many functions.