Day: May 3, 2017

Listing of JavaScript engines for embedded systems/IoT applications

JavaScript could be an awful language (i.e. “typeof null returning ‘object’ is a bug that can’t be fixed, because it would break existing code”), but it is everywhere and is one programming language of IoT (other is Lua).

I decided to list here some small JavaScript options for embedded system:

Duktape ( – A small footprint, easily embeddable Ecmascript E5/E5.1 engine.

Espruino ( – A very small footprint interpreter specifically for microcontrollers. Can run in less than 8 kB of RAM by executing from source (rather than bytecode).

JerryScript ( – A very small interpreter developed by Samsung for IoT application.

MuJS ( – A lightweight ECMAScript interpreter library, designed for embedding in other software to extend them with scripting capabilities. Originally developed for MuPDF.

SophonJS ( – Another JavaScript engine that could be used for low-end applications.

Throwback ( – The smallest JS engine for microcontroller, still in early stage of development

Tiny-JS ( A minimalJavaScript interpreter written in C++.

So, we have at least 6 JS engine options to use with microcontrollers. From this listing I think JerryScript is a step ahead, but Throwback could to evolve and be a real alternative for deep embedded systems.