https://github.com/user-attachments/assets/a5a18c00-b8d1-45cd-8706-a1305f7e8fc5 _How the playground currently looks. I'll try to keep this up to date._ Playground component at `src/lib/components/Playground/component.svelte` # Tasks - [x] File Viewer #2 this will allow creating files like you would with vs code - [x] Code Editor #1 this is mostly working already and you can see it being used in the Playground - [x] Dev Server #4 this will allow multi-file `import`/ `export` between javascript modules - [ ] Implement the full postMessage/onmessage API for keyboard/mouse input #9 ### How is it drawing the background? ```js const context2D = canvas.getContext('2d'); context2D.fillStyle = 'red'; context2D.fillRect(0, 0, canvas.width, canvas.height); ``` This code gives us a [`CanvasRenderingContext2D`](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D) which lets us draw shapes to the screen! You can also get a [WebGLRenderingContext](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) as well as a [GPUCanvasContext](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext).
Screen_Recording_2025-09-13_at_12.07.29_AM.mov
How the playground currently looks. I'll try to keep this up to date.
Playground component at
src/lib/components/Playground/component.svelteTasks
import/exportbetween javascript modulesHow is it drawing the background?
This code gives us a
CanvasRenderingContext2Dwhich lets us draw shapes to the screen!You can also get a WebGLRenderingContext as well as a GPUCanvasContext.