How to make web games with Blender?
While still in development Armory looks to be a promising solution. It has multiple export options including HTML5.

It is open source and maintains a GitHub repository here.

Here is an example of an HTML5 game.

EDIT

The best way to get Armory is through Armory's Patreon page.
Building from GitHub is a difficult if not impossible task at the moment.