talira

Espruino

JavaScript for microcontrollers

open sourceMPL-2.0free

Espruino is a JavaScript interpreter for microcontrollers, made for devices with as little as 128kB of flash and 8kB of RAM. It runs on STM32, nRF51, nRF52, ESP8266 and ESP32 chips, and comes pre-installed on the maker's own boards (Puck.js, Pixl.js, Bangle.js and others), whose sales and donations fund it. You program it from the Web IDE, which runs in the browser over Web Serial or Web Bluetooth (or as a Windows app), loads modules and updates the firmware on official boards, or from the espruino command-line tool, which gives a REPL over USB, serial, Bluetooth LE or Telnet and re-uploads code when a file changes. It also builds for Linux. Other ports (EFM32, SAMD) were contributed and are no longer maintained.

Problems it solves

  • program a microcontroller in JavaScript instead of C
  • write code for a Bluetooth LE device from a web browser without installing a toolchain
  • an interactive REPL on a microcontroller so I can try code line by line
  • run JavaScript on an ESP32 or ESP8266 board
  • run JavaScript on an nRF52 Bluetooth chip
  • upload code to a microcontroller over Bluetooth from the browser
  • re-upload my script to the board automatically whenever I save the file
  • an interpreter small enough for a chip with 128kB of flash and 8kB of RAM

Features

  • JavaScript interpreter for devices with 128kB flash and 8kB RAM
  • REPL on the device
  • Web IDE in the browser over Web Serial and Web Bluetooth, also a Windows app
  • firmware updates for official boards from the Web IDE
  • espruino command-line tool: REPL and uploads over USB, serial, Bluetooth LE or Telnet
  • watch mode that re-uploads code when a file changes
  • modules loaded on demand
  • Linux build

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what Espruino does.

  1. MicroPython Python for microcontrollers
  2. CircuitPython A Python implementation for teaching coding with microcontrollers

Compare Espruino with the top 3