i think I would want a very small core for the ui, like something at the level of webgpu command buffers. Then of course you could provide higher api levels so you don’t have to target the gpu directly, but that would always be available if you wanted to build a game or egui ui or something
Discussion
I feel like in a lot of cases though that could lead to websites shipping their own UI frameworks (egui, imgui, nuklear), which is not ideal.
I think the advantage here is that it picks the default browser native framework automatically, and then you could probably give it some kind of GPU access to.
why is it not ideal? there could be a default framework but you don't have to use it.