Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: 2KB JavaScript Dependency Injection Library Without Decorators (github.com/ivandotv)
2 points by ikins 5 months ago | hide | past | favorite
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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: