About @nodelibraries/ioc โ
What is @nodelibraries/ioc? โ
@nodelibraries/ioc is a lightweight, type-safe IoC container designed for Node.js and TypeScript, inspired by .NET Core's dependency injection system. It provides seamless dependency injection with zero dependencies and no decorators required.
Our core philosophy: precision, clarity, and seamless integration. We believe dependency injection should be as natural and unobtrusive as possible.
Philosophy โ
๐ฏ Precision โ
Every dependency is resolved with type safety and compile-time guarantees. No runtime surprises, no guesswork.
๐งน Clean Code โ
No decorators, no annotations, no framework lock-in. Your code remains pure and framework-agnostic.
๐ง Flexibility โ
Register services using interfaces, classes, factories, or pre-created values. Choose the approach that fits your needs.
โก Performance โ
Lightweight and fast. Minimal overhead, maximum efficiency.
Why Choose @nodelibraries/ioc? โ
Type-Safe by Design โ
Built from the ground up for TypeScript. Full type inference, autocomplete, and compile-time safety.
Developer Experience โ
Clean, intuitive API that feels natural. Less boilerplate, more productivity.
Production Ready โ
Battle-tested features including scope validation, lifecycle hooks, and multiple service registration patterns.
Community Driven โ
Open source, actively maintained, and designed with the community in mind.
Comparison with Other Solutions โ
| Feature | @nodelibraries/ioc | Other Containers |
|---|---|---|
| Decorators Required | โ No | โ Often Yes |
| Type Safety | โ Full | โ ๏ธ Partial |
| Interface Support | โ Native | โ ๏ธ Limited |
| Factory Pattern | โ Built-in | โ ๏ธ Varies |
| Scope Validation | โ Yes | โ Rare |
| Bundle Size | โ Minimal | โ ๏ธ Varies |
Getting Started โ
Ready to infuse your code with clean dependencies? Start with our Quick Start Guide or explore the Installation instructions.
Contributing โ
We welcome contributions! Check out our GitHub repository to get involved.