## Source

`TODO`: "Could we make the software Arduino or Microbit compatible somehow??? It would probs require blocks and AST or something else? -> Look into small JS engines like <https://github.com/cesanta/elk> but maybe reimplement with bytecode optimiser so it can run fast on the device???"

## Current state

The platform runs JavaScript/TypeScript source on the ESP32-C6 through `sb-runtime` (QuickJS). There is no Arduino or micro:bit import path, no block/AST layer, and no bytecode optimiser in the repository. Blocks are a separate product question tracked in #27.

## Acceptance

- [ ] Define what "Arduino or micro:bit compatible" means for this product: importing an existing project, exporting to another toolchain, running Arduino/micro:bit-style code, or a block representation. Do not bundle mutually exclusive goals into one answer.
- [ ] Research the realistic paths for each chosen meaning, including Arduino C++ import/export, micro:bit/MakeCode block or TypeScript interchange, and MicroPython.
- [ ] Benchmark a small JS engine (for example Elk) against the current QuickJS runtime on the ESP32-C6: flash size, RAM, startup time and throughput.
- [ ] If a bytecode optimiser is proposed, prototype it and record the measured gain rather than assuming one.
- [ ] Produce a recommendation with trade-offs, effort and the parts that would have to change in the runtime or toolchain.
- [ ] Do not commit to shipping compatibility until the recommendation is accepted.
- [ ] Record the research and decision in this issue and link it from README/AGENTS.


<sub>Generated on _MrBeast_ using _opencode/deepseek-v4.1-flash_ in _ses_e8326e581ffeJviTmSkomwnKES_</sub>

