How to add a new visualization?

I am currently trying to add a new visualization type in OSD. I have already written a react component for the graphics but I want to know how to add the component as a visualization plugin. I know that this question probably requires a longer answer. Any help would be very much appreciated.