Skip to content

Architecture ​

JSBedded architecture Your script goes to the board over USB. On the board the hardware APIs run on one JavaScript engine, which runs on the HAL of the board's SDK. Your scriptmain.js · TypeScript typingsUSB driveON THE BOARDHardware APIsconsole · timers · gpio · …HALpico-sdk · esp-idfBoardpin map · memory · peripheralsEnginequickjsmquickjsjerryscriptduktapemjsant

Rules ​

  • One engine per firmware image, chosen at build time (ENGINE=).
  • api/ and core/ depend only on jsb/engine.h and jsb/hal.h.
  • The public JS API is defined once, in the API typings in js/; C bindings and reference docs are generated from it.
  • No bytecode portability is assumed across engines or engine versions.

Support matrix ​

Facts are split so most are proven once, not per combination:

QuestionDepends onProven by
Language featuresenginelanguage tests run on a board
Peripheralsboard / MCU familyboard manifest + peripheral tests
Fit, boot, performanceengine × boardbuild size check, boot smoke test, bench

Each engine × board cell climbs: unsupported → declared → builds → fits → boots → passes n/m → verified, and turns stale after ~90 days without a result. All results come from real boards.

Scripts ​

Scripts live on the board's JSBEDDED USB drive. At boot the firmware runs the first of main.js, index.js, main.mjs, index.mjs. A script is one file today; import / export is planned for engines that support ES modules.

TypeScript is compiled with your own tsc against the @jsbedded typings, for the engine's language level, and the .js output goes on the drive. If a script stops the board from working, use dev mode.

Security ​

JSBedded is made for fast prototyping. Anyone with USB access to a board can change its script; there is no signing or access control.