Espruino is a JavaScript interpreter aimed at microcontrollers with as little as 128 kB flash and 8 kB RAM. Official boards ship with it preinstalled.
Overview
Espruino is a JavaScript interpreter designed for microcontrollers with very limited memory. It targets devices with as little as 128 kB of flash and 8 kB RAM and is meant to make embedded development feel closer to writing ordinary JavaScript.
It is tied to a family of official boards and modules sold by the Espruino project, which come with the firmware preinstalled and receive tested binary updates. A web-based IDE supports programming over USB or Bluetooth LE, with documentation, tutorials, and a module library for common peripherals.
Firmware builds support several chip families and platforms, including STM32, nRF51/nRF52, ESP8266, ESP32 variants, and Linux. The interpreter exposes a REPL for interactive feedback while programs run.
Hardware and software are open source. Board sales support ongoing firmware work and forum support for officially sold hardware.
Key features
- JavaScript on constrained MCUs
- Interactive REPL
- Web IDE over USB or Bluetooth
- Official preinstalled boards
- Portable module library
- Maps, arrays, and objects in firmware
- Multi-platform firmware ports
- Graphical code editor option
Use cases
- Rapid microcontroller prototyping
- Bluetooth LE gadget scripting
- Teaching JavaScript on hardware
- Low-power battery-powered devices