Fleshing out the GUI
Finally got a working prototype! Check it out at https://katnip.org
Components added:
Stage
This was honestly a pretty hard part of the process. I am using tw-scaffolding, the core vm from TurboWarp. But it has no types, no docs, and the docs that exist are outdated. So I resorted to having Claude make a .d.ts file for me so I could fuzz my way through instead.
This process wasn’t that bad once the functions were clear, and I hooked it up to my compiler—intentionally designed to output Uint8Array.
Toolbar
This was fun since I don’t know svelte yet that well. I had a state originally stored in my state.svelte.ts, but I figure out I could refactor and not need it.
Then I just did some vm tomfoolery to ensure the threads stay open on pausing, and it was good to go.
Terminal
This is a super rudamentry approach. I plan to have an input method at some point, but we will see. Hopefully I implement a better technique, currently I just have a string array storing the logs. Makes it easy to make it stateful in svelte ig
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.