An example extension for Xcratch
This extension add extra-block “do it”, that executes string in its input field as a sentence in Javascript and return the result.
Play Example Project to look at what you can do with “ML4K Extension Module” extension.
This extension can be used with other extension in Xcratch.
https://mcardonaserrano.github.io/xcx-ml4k-extension/dist/ml4kpretrained.mjs
npm install
Change vmSrcOrg
to your local scratch-vm
directory in ./scripts/setup-dev.js
then run setup-dev script to setup development environment.
npm run setup-dev
Run build script to bundle this extension into a module file which could be loaded on Xcratch.
npm run build
Run watch script to watch the changes of source files and bundle automatically.
npm run watch
Run test script to test this extension.
npm run test
Open this page from https://mcardonaserrano.github.io/xcx-ml4k-extension/
Contributions, issues and feature requests are welcome!
Feel free to check issues page.