Running TypeScript on ESP8266/ESP32 Devices

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • 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?

    [1] https://github.com/Moddable-OpenSource/moddable

  • 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.

  • circuitpython

    CircuitPython - a Python implementation for teaching coding with microcontrollers

    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.

    [1] https://circuitpython.org/

  • Espruino

    The Espruino JavaScript interpreter - Official Repo

    This makes use of a JS interpreter made for embedded devices: Espruino

    More details in the Espruino repo: https://github.com/espruino/Espruino

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts