How to share singleton class object across main and renderers?

I opened a discussion on github:

But I found out this community and I hope you can help me.

How can one impliment a system that allows a single instance of a class and renderers and main have access to it?