Simple, Decorated, Pluggable dependency-injection framework for TypeScript applications
Injex makes software architecture more easy & fun by creating a dependency tree between your application modules with a minimal API.Get StartedView Source
The right way to write TypeScript applications
Use decorators to define, reuse, and link modules and dependencies together.
Define and reuse modules and dependencies.
Use or create plugins to manage dependencies.
Better project code organization approach.
Power up your Node.JS or client-side TypeScript applications.
Create, inject, and reuse modules as singletons.
Inject class factories to create module instances easily.
Get the tools to implement SOLID applications.
Create lazy modules and take control of client-side code splitting.
The fastest way to get started
Quick installation of Injex core and Node.JS/Webpack/Vite runtime.
Injex runtimes are consistent so that you wouldn't notice any change. Full Stack TypeScript development (server/client) at its best.
- Minimalist API
- Use decorators to play
- Flexible with plugins
- Small size footprint
Checkout the examples page for full examples and use cases.
Install using npm or yarn
Import and create Injex container.
Create and define modules using decorators
Checkout the basic example for a working demo.