Skip to content

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/iocOther 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.

Released under the ISC License. If you find this project helpful, consider buying me a coffee โ˜•