Looking for the right architecture to enable interactive WebGL animations in a Hugo site

I am trying to build a Hugo documentation site discussing computational dynamics in Deep Learning algorithms. These dynamics are higher-dimensional (five or six dimensions) so I am trying to visualize this with WebGL projecting these higher dimensions back to 3D.

The first step is to enable WebGL on a Hugo page, and I am looking for folks that have done this before. I am using the hugo-theme-relearn, but the approach should be independent of the theme.