Injectus: New Decorator-Free Dependency Injection Container for Node/TypeScript Seeks Testers
A developer has released Injectus (v0.2.x), an open-source, zero-dependency IoC container for Node.js and TypeScript that requires no decorators, reflect-metadata, or special build configuration. The project was created to address common pain points with existing DI containers, including tsconfig friction, silent token collisions, and lifecycle bugs that only surface in production. Injectus uses class references and typed InjectionToken instances as identity-based keys, preventing naming collisions, and actively throws a CaptiveDependencyError at resolve time when singleton-to-scoped dependency mismatches are detected. It also supports deterministic LIFO disposal via Symbol.asyncDispose and surfaces full dependency paths in circular or captive dependency errors. The tool is still in early development — lacking a module system, multi-injection support, and framework adapters — and the author is seeking early users to test and provide feedback before further development.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in