https://github.com/cesanta/v7
Embedded JavaScript engine for C/C++
https://github.com/cesanta/v7
Last synced: 5 months ago
JSON representation
Embedded JavaScript engine for C/C++
- Host: GitHub
- URL: https://github.com/cesanta/v7
- Owner: cesanta
- License: other
- Created: 2013-12-13T23:28:04.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2020-11-30T10:41:28.000Z (almost 5 years ago)
- Last Synced: 2025-06-07T01:06:04.219Z (5 months ago)
- Language: C
- Homepage:
- Size: 18.8 MB
- Stars: 1,439
- Watchers: 99
- Forks: 180
- Open Issues: 51
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-cpp - V7 - An embedded JavaScript engine. [GPL2] (Scripting)
- awesome-cpp-cn - V7
- awesome-cpp - V7 - 嵌入式的JavaScript 引擎. [GPLv2] (脚本)
- awesome-iot - V7 ★ 576 ⧗ 0 - V7 is a JavaScript engine written in C. It makes it possible to program Internet of Things (IoT) devices in JavaScript. (Language / Android Things)
- awesome-cpp - V7 - An embedded JavaScript engine. [GPL2] (Scripting)
- awesome-cpp - V7 - An embedded JavaScript engine. [GPL2] (Scripting)
README
V7: Embedded JavaScript engine
==============================
**NOTE: this project is deprecated in favor of https://github.com/cesanta/mjs**
[](https://github.com/cesanta/v7/blob/master/LICENSE)
V7 is the smallest JavaScript engine written in C. V7 features are:
- Cross-platform: works on anything, starting from Arduino to MS Windows
- Small size. Compiled static size is in 40k - 120k range, RAM
footprint on initialization is about 800 bytes with freeze feature,
15k without freeze feature
- Simple and intuitive C/C++ API. It is easy to export existing C/C++
functions into JavaScript environment
- Standard: V7 implements JavaScript 5.1
- Usable out-of-the-box: V7 provides an auxiliary library with
Hardware (SPI, UART, etc), File, Crypto, Network API
- Source code is both ISO C and ISO C++ compliant
- Very easy to integrate: simply copy two files: [v7.h](v7.h)
and [v7.c](v7.c) into your project
V7 makes it possible to program Internet of Things (IoT) embedded devices
in JavaScript. V7 is a part of the full stack
[Mongoose OS Platform](https://github.com/cesanta/mongoose-os).
## Examples & Documentation
- [Developer Centre](https://docs.cesanta.com/v7/dev) - User Guide and API reference
- [Examples](https://github.com/cesanta/v7/tree/master/examples) - Collection of well-commented examples
- [Support Forum](http://forum.cesanta.com/index.php?p=/categories/v7) - Ask questions on our support forum
# Contributions
To submit contributions, sign
[Cesanta CLA](https://docs.cesanta.com/contributors_la.shtml)
and send GitHub pull request. You retain the copyright on your contributions.
# Licensing
V7 is released under commercial and [GNU GPL v.2](http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) open source licenses.
Commercial Projects:
Once your project becomes commercialised GPLv2 licensing dictates that you need to either open your source fully or purchase a commercial license. Cesanta offer full, royalty-free commercial licenses without any GPL restrictions. If your needs require a custom license, we’d be happy to work on a solution with you. [Contact us for pricing.] (https://www.cesanta.com/contact)
Prototyping:
While your project is still in prototyping stage and not for sale, you can use V7’s open source code without license restrictions.