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 SourceThe right way to write TypeScript applications
Use decorators to define, reuse, and link modules and dependencies together.
Simple
Define and reuse modules and dependencies.
Pluggable
Use or create plugins to manage dependencies.
Organized
Better project code organization approach.
For TypeScript
Power up your Node.JS or client-side TypeScript applications.
Singleton
Create, inject, and reuse modules as singletons.
Factories
Inject class factories to create module instances easily.
SOLID Principles
Get the tools to implement SOLID applications.
Lazy Modules
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.
- Unopinionated
- Minimalist API
- Use decorators to play
- Flexible with plugins
- Small size footprint
Checkout the examples page for full examples and use cases.
- Node
- Webpack
- Vite
Install using npm or yarn
Import and create Injex container.
Create and define modules using decorators
Checkout the basic example for a working demo.