MCPcopy Index your code
hub / github.com/cesanta/v7

github.com/cesanta/v7 @3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 3.0 ↗ · + Follow
1,154 symbols 5,181 edges 20 files 140 documented · 12% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

V7: Embedded JavaScript engine

License

V7 is a JavaScript engine written in C. It makes it possible to program Internet of Things (IoT) devices in JavaScript. V7 features are:

  • Cross-platform: works on anything, starting from Arduino to MS Windows
  • Small size. Compiled core is in 40 KB - 200 KB range
  • Simple and intuitive C/C++ API. It is easy to export existing C/C++ functions into JavaScript environment
  • Standard: V7 aims to implement JavaScript 5.1 and pass standard ECMA tests
  • Performance: V7 aims to be the fastest non-JIT engine available
  • 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 and v7.c into your project

Examples & Documentation

Contributions

People who have agreed to the Cesanta CLA can make contributions. Note that the CLA isn't a copyright assigment but rather a copyright license. You retain the copyright on your contributions.

Licensing

V7 is released under commercial and GNU GPL v.2 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.

Core symbols most depended-on inside this repo

v7_arg
called by 119
v7.c
bcode_op
called by 101
v7.c
v7_mk_number
called by 98
v7.c
v7_mk_string
called by 90
v7.c
v7_get_string
called by 85
v7.c
v7_get_this
called by 82
v7.c
v7_throwf
called by 70
v7.c
v7_get_double
called by 62
v7.c

Shape

Function 891
Class 219
Enum 44

Languages

C95%
TypeScript4%
C++1%

Modules by API surface

v7.c990 symbols
tests/unit_test.c63 symbols
tests/ecma_driver.js47 symbols
examples/TI/MSP432/MSP_EXP432P401R.c11 symbols
examples/TI/MSP432/MSP_EXP432P401R.h8 symbols
v7.h7 symbols
tests/common/test_util.c6 symbols
examples/js_oop/js_oop.c5 symbols
examples/call_c_from_js/call_c_from_js.c5 symbols
examples/call_js_from_c/call_js_from_c.c4 symbols
examples/load_json_config/load_json_config.c2 symbols
examples/load_json_config/main.c1 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add v7 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact