Sample code show casing the use of the javascript api for thymio
This simple javascript application showcases how to use the Thymio API from a browser or a node-based app
TODO
Npm is a package manager for JavaScript, you will need it to work with the Thymio API
Note that despite depending on Node to install and build the Thymio JS API, it is fully compatible with browsers
and Node.
Run npm i
in the cloned directory to install the required dependencies.
Run npm run browser
, then open dist/index.html
in your browser.
The web-based version outputs in the browser’s console.
Run npm start
The thymio API is distributed as a @mobsya-association/thymio-api">npm package.
It can be installed with npm -i @mobsya-association/thymio-api
.
This demo project also depends on:
The code is in src
and gets compiled into dist
.
You can copy this project or get inspiration from it to start working on web-applications compatible with thymio.