This is a simple low-level raycaster written in Vanilla JavaScript using the TWGL library for WebGL.
You may try it out here.
I would be glad if it helps you in any way.
If you have any questions or suggestions - feel free to contact me 😉
Have a Great Day!