cesanta/v7
FreeEmbedded JavaScript engine for C/C++
About cesanta/v7
V7 is an embedded JavaScript engine written in C, designed specifically for Internet of Things (IoT) and embedded systems. It implements the JavaScript 5.1 standard and is optimized for minimal resource consumption: compiled static size ranges from 40k to 120k, and RAM footprint is approximately 800 bytes when using the freeze feature (15k without). The engine is cross-platform, running on anything from Arduino to MS Windows, and provides a simple C/C++ API that makes it easy to export existing C/C++ functions into JavaScript. It includes an auxiliary library offering hardware (SPI, UART), file, crypto, and network APIs. Integration is straightforward — just copy the two files v7.h and v7.c into your project. V7 is part of the Mongoose OS platform. Note: this project is deprecated in favor of Cesanta's mjs.
Key Features
Pros & Cons
- Extremely small memory footprint suitable for low-resource microcontrollers
- Easy to integrate with only two source files needed
- Cross-platform support from Arduino to desktop Windows
- Familiar JavaScript 5.1 syntax for embedded development
- Includes useful auxiliary libraries for hardware, crypto, and networking
- Open source under GPL v2 with commercial licensing available
- Project is deprecated in favor of Cesanta's mjs (no further development)
- Only implements JavaScript 5.1, lacking ES6+ features
- Last release was in May 2016 - no active maintenance
- Without freeze feature, RAM footprint is 15k which may be high for very constrained MCUs