ts2c: TypeScript/JavaScript to C Transpiler

JSON →
library 3.0.0 ·javascript
verified May 1, 2026

ts2c transpiles JavaScript/TypeScript (ES3 subset) to readable C89 code for low-power microcontrollers (ESP32, ESP8266, AVR). Version 3.0.0 is under active development, supporting ~70% of ES3 (95% statements/expressions, 17% built-in objects). All numbers are int16_t; no floats, big numbers, prototype, eval, Date, or Math. Output is minimal, self-contained C with no runtime overhead. Different from JerryScript/Espruino by compiling to native C rather than interpreting, reducing memory and battery usage.

total hits 11
actors 3 distinct systems
last hit 5d ago AhrefsBot
GPTBot
5
Script
1
Humans
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇮🇳 India · 🇸🇬 Singapore · 🇬🇧 United Kingdom