I think i finally found the right architecture
It took me a couple iterations, from all-in-browser to fake filesystems to electron
Now there is a clean separation:
- The engine is a library
- There is now a web framework which has a dev server and wraps the library for you
- The editor is basically just running the dev server and npm commands for you
- I built a "DevBridge" which allows communication between the engine and editor during development
We're still at the beginning of the journey and there are currently zero AI integrations yet
But i think this is a rock solid foundation to build on now
The framework and library and editor will still be open source, this time MIT no changes
Additional Editor features later might (or might not) become paid (AI surely will be)
But hey, not running a charity, am i?
Demo shows you current state of the editor (file tree, scene switching, starting dev server)
[and yes, you can just ignore the editor and open it in localhost:3000 in your browser too]