Hi HN,
I’ve created a lightweight dependency injection (DI) library for Node.js, weighing in at under 2KB gzipped. It's perfect for both backend and frontend projects where size is critical.
A few things that I believe set this library apart:
No Decorators: Unlike many DI libraries, this library doesn't rely on decorators. This makes it cleaner and more compatible with different JavaScript environments, especially for those who prefer not to use decorators.
Tiny Footprint: At less than 2KB gzipped, it's a great choice even for frontend applications where bundle size matters.
Minimalist API: Simple and intuitive, it doesn't add unnecessary complexity.
I created PumpIt to fill a gap between heavy DI frameworks and minimalistic, easy-to-use solutions.
I'd love to hear your feedback or suggestions on how it could be improved.