scratch-run is a CLI interpreter for Scratch based on scratch-vm.
scratch-run was created to judge solutions written in Scratch. It is used mainly in our official online judge VNOJ, but it can also be used separately.
scratch-run is written in Node.js and packed with pkg. No dependencies are required for running.
Prebuilt binaries are available in Releases.
scratch-run [scratch file]
For example:
scratch-run tests/echo.sb3
Type in something and it will be echoed back!
For more detailed instructions, see our wiki page.
You need Node.js and npm to build.
git clone https://github.com/VNOI-Admin/scratch-run.git
cd scratch-run
npm install
npm run build
Built binaries will be saved in build
directory.