Hi everyone!
I’d like to share a small library I’ve recently extracted from a project I’m working on: ginject.
ginject provides a minimal global injection mechanism, letting you register and inject services without plumbing extra configuration throughout your application.
Why this exists
In the app I’m developing, I needed a pragmatic way to inject alternative behaviors mainly for testing purposes.
Mox and behaviours are great — but switching implementations in test environments often requires more setup than necessary for small or isolated cases.
ginject aims to keep things lightweight and comfortable.
Part of a bigger effort
This is the first of some tools I plan to extract and publish from this project.
There are a couple more utilities in the pipeline — once cleaned up and documented — that I hope will also be useful to share with the community.
Thanks for checking it out — and I’d love to hear any feedback!




















