Stereographic projection

I need a stereographic projection to draw with FOV of more than 180 degrees.

Like this app
https://stellarium-web.org/
(I am making a similar app)

I have done some custom geometry shader work in OpenGL to make a fisheye-like view generation. So, I know the theory. The question is how I should do it with threejs. Is there an example? Any useful links? Or should I make it from the scratch? In the code I see OrthographicCamera and PerspectiveCamera but not the stereographic one.

Thanks in advance!