Previewing PBR materials in real-time on a webpage

I want to have my own personal material library available online where the materials can be viewed like this:

What is the best way to export this out of max and have it display on a webpage like this? So far I’ve stumbled on babylon.js which seems pretty robust.

https://doc.babylonjs.com/resources/3dsmax_to_gltf

Does anyone have insight on a workflow to get something like this working?