How (not) to create a singleton in Node.js
Iain Collins

Thanks for the post !

Another smart solution is a to use a dependency injection framework,

I coded Di-Ninja for this

It’s full featured and is the only one, as I know, that implement the smart Composition-Root design pattern

It’s working on server and browser