made alittle WIP toy browser in godot that literally just loads remote scene (.tscn) files (& strips the scripts from them) so im piggybacking hugely on the existing godot stuff
i literally just wrote this in an all nighter so who knows if ill be bored with it tomorrow but its pretty neat i think. i would like to add lua as a replacement to gdscript since id have at least some hope of sandboxing that. though that would not be simple i think :')
Currently you can do a little bit of interaction through just signals though! wait oh my god i think you can break sandbox with signals fuck oh oughjfdhaj
also like a search engine or maybe just a list of links would be chill i think. assuming anyone would host something for this obvs. also having like maybe a html meta tag for redirecting to a .tscn page would be nice, so you could just go to lisanne.gay and something in the html would point it at index.tscn or something yknow, make it a little more fluid
also also one pretty big flaw with this is that all the resources need to be packed into the .tscn, IE converted to base64 or sometimes godot just throws in a huge array of integers its wild. extremely space inefficient!! originally the page in the video had 2 fonts bundled and it made the file be like 30mb. also the browser is very slow lol
it was pretty neat to re-make my homepage in like a fraction of the time it took to make in html/css lol. i really like godot's Control UI system its very nice :3 also obvs u have drag&drop wysiwyg with the whole editor and stuff. kinda like what if QT designer was good
oh also i just noticed the url doesnt update on redirects properly lol
i wrote a .tscn parser in python (well, originally gdscript but i ported it etc etc) which lets you load in existing godot scene files and manipulate them in a similar way to something like beautifulsoup4 or javascript's DOM functions.
lets you do cool stuff like create & change a sillyweb page on demand, here i made a little proof of concept that's just a frontend to k6bd.
i was also working on client-side lua scripting earlier, but the godot plugin is bugged in a way i cant easily work around without knee-capping most of lua's functionality :(
also i still gotta implement caching for images & other sub-resources a scene may fetch, u can see that it loads the k6bd logo in each time lol
oh also also i did remember to put the client on git lol:
https://gitlab.com/mocchapi/sillybrowser
ill put up the python stuff later, probably not on pypi because python packaging is a nightmare
