JSBedded: prototype microcontroller hardware at the speed of JavaScript

The slow part of embedded work isn’t writing the code, it’s the loop: edit, compile, link, flash, reboot, repeat. Add an SDK, CMake and a cross-compiler to install first, and a ten-line experiment takes an afternoon.

JSBedded removes that loop. You flash your dev board once, then you just edit JavaScript or TypeScript in any editor and run it. It’s built for AI-first prototyping, so a coding agent can write, run and debug the code end to end.

Early development: the firmware is published as pre-releases.


What it looks like

// main.ts: edit, save, run. No firmware rebuild.
const led = board.LED;
let on = false;
gpio.mode(led, "output");
setInterval(() => {
  on = !on;
  gpio.write(led, on ? 1 : 0);
  console.log(on ? "LED on" : "LED off");
}, 500);

Save main.js to the JSBEDDED USB drive, reset the board, and it runs.


From zero to running in four steps

  1. Flash once. Drop the ready-made firmware (UF2 for the Pico family) onto your board. It’s the only thing you ever flash.
  2. Write main.ts. Any editor, with typed APIs from the @jsbedded npm scope.
  3. Save to the USB drive. The board shows up as a drive named JSBEDDED. Save main.js there and reset. No rebuild, no reflash.
  4. Read logs. Logs come over serial. A faulty script? The reset button recovers the board.

Why it’s fast, and AI-friendly


Under the hood


Boards and engines

Boards: Raspberry Pi Pico, Pico W, Pico 2, Pico 2 W, ESP32-C3, ESP32-S3.

Engines: mquickjs, QuickJS, Duktape, JerryScript, Ant.

Support is growing, and these are the targets today. Adding a board, engine or platform is a documented path - see the porting guide and the live support matrix for what is measured. Contributions are welcome.


Get started

Start with the getting started guide, browse the docs, or open an issue on GitHub.