I've been working on this exact idea, with sqlar as the "format specification". Works in the browser, and desktop + Android using Tauri.
https://github.com/JoshTheDerf/uapp
Demo apps and games: https://thederf.com/uapp/demo/
https://github.com/JoshTheDerf/uapp
Demo apps and games: https://thederf.com/uapp/demo/