A minimal prototype of an instant code editor. It runs JS code as you type.
The code is actually quite simple. It's based on:
- Ace for the code editor
- React for the UI
- Redux for the state
- Web Workers for running the code
This is not designed to be a secure coding environment. The code you type is
run inside a Web Worker, but breaking out of the sandbox or at least creating
unexpected behaviour is totally doable (e.g. by calling postMessage
).