This is almost a standard feature for game engines\game frameworks, Unity, Unreal, Godot, Game Maker, Construct, RPG Maker, Pixel Game Maker and a bunch of other smaller more niche frameworks and engines like Pico-8, Raylib and Oryol all support HTML5 export.
https://docs.godotengine.org/en/3.0/getting_started/workflow...