Our great sponsors
-
moddable
Tools for developers to create truly open IoT products using standard JavaScript on low cost microcontrollers.
> Transpile TypeScript to Espruino flavor of JavaScript
Why not just use an engine (like Moddable's XS[1]) that supports ECMAScript 2018 instead of Espruino's subset of ES5?
-
ESP-TypeScript
Transpile TypeScript to Espruino flavor of JavaScript for ESP8266/ESP32 microcontrollers template project. Writing safe, maintainable, and testable code is the projects goal.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
I can't speak for a JS virtual machine, but for a point of reference CircuitPython[1] runs on many ESP32 boards and builds are often under 1.5 MB. It does come with a whole set of modules, from the ones you'd expect to have in Python like "re" or "time" (although they only have a few functions in there), but also CircuitPython-specific modules like "board" or "digitalio" to access peripherals, and "wifi" for networking.
The boards listed on the CircuitPython downloads page usually have between 2 and 8 MB of flash, so you often have enough for the VM and your own code plus a few files.
-
This makes use of a JS interpreter made for embedded devices: Espruino
More details in the Espruino repo: https://github.com/espruino/Espruino