All Projects → KnisterPeter → tsdi

KnisterPeter / tsdi

Licence: MIT license
Dependency Injection container (IoC) for TypeScript

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to tsdi

Zenject-2019
Dependency Injection Framework for Unity3D
Stars: ✭ 2,567 (+5034%)
Mutual labels:  ioc, dependency-injection, injection
fusion
A simple automated dependency injection library for TypeScript, supporting React class and functional components.
Stars: ✭ 18 (-64%)
Mutual labels:  ioc, dependency-injection, injection
DependencyInjector
Lightweight dependency injector
Stars: ✭ 30 (-40%)
Mutual labels:  ioc, dependency-injection, injection
Kangaru
🦘 A dependency injection container for C++11, C++14 and later
Stars: ✭ 297 (+494%)
Mutual labels:  ioc, dependency-injection, injection
Container Ioc
Inversion of Control container & Dependency Injection for Javascript and Node.js apps powered by Typescript.
Stars: ✭ 89 (+78%)
Mutual labels:  ioc, dependency-injection, injection
Tsyringe
Lightweight dependency injection container for JavaScript/TypeScript
Stars: ✭ 2,761 (+5422%)
Mutual labels:  ioc, dependency-injection, injection
vesselize
⛵ A JavaScript IoC container that works seamlessly with Vue.js and React.
Stars: ✭ 22 (-56%)
Mutual labels:  ioc, dependency-injection, injection
Poodinis
A dependency injection framework for D with support for autowiring.
Stars: ✭ 57 (+14%)
Mutual labels:  ioc, dependency-injection, injection
Reflex
Minimal dependency injection framework for Unity
Stars: ✭ 263 (+426%)
Mutual labels:  ioc, dependency-injection, injection
React Ioc
Hierarchical Dependency Injection with new React 16 Context API
Stars: ✭ 133 (+166%)
Mutual labels:  ioc, dependency-injection, injection
DI-compiler
A Custom Transformer for Typescript that enables compile-time Dependency Injection
Stars: ✭ 62 (+24%)
Mutual labels:  ioc, dependency-injection, singleton
waiter
Dependency injection, Inversion of control container for rust with compile time binding.
Stars: ✭ 71 (+42%)
Mutual labels:  ioc, dependency-injection
loopback-next
LoopBack makes it easy to build modern API applications that require complex integrations.
Stars: ✭ 4,412 (+8724%)
Mutual labels:  ioc, dependency-injection
moneta
Moneta is a live usermode memory analysis tool for Windows with the capability to detect malware IOCs
Stars: ✭ 384 (+668%)
Mutual labels:  ioc, injection
SwiftInjection
Dependency Injection framework for Swift
Stars: ✭ 21 (-58%)
Mutual labels:  ioc, dependency-injection
sector
Simple Injector; Dependency Injection
Stars: ✭ 12 (-76%)
Mutual labels:  ioc, dependency-injection
typeioc
Dependency injection container for typescript / javascript
Stars: ✭ 32 (-36%)
Mutual labels:  ioc, injection
ashley
Ashley is a dependency injection container for JavaScript.
Stars: ✭ 23 (-54%)
Mutual labels:  ioc, dependency-injection
iocgo
A lightweight Inversion of Control (IoC) (Dependency Injection) container for Golang
Stars: ✭ 36 (-28%)
Mutual labels:  ioc, dependency-injection
stashbox
A lightweight, fast, and portable dependency injection framework for .NET-based solutions.
Stars: ✭ 120 (+140%)
Mutual labels:  ioc, dependency-injection

tsdi

Github Workflow npm GitHub license codecov renovate badge

Easy dependency injection for TypeScript.

Features

  • Type based dependency injection
  • Type auto registration
  • Lifecycle methods
  • Constructor parameters injection
  • Singletons and Instances
  • External components (components not managed by tsdi)
  • Scopes

Installation

Install as npm package:

$ yarn add tsdi

or

npm install tsdi --save

You need to enable decorator metadata in your tsconfig.json, which is done by adding the following line:

"emitDecoratorMetadata": true

Otherwise TSDI will not be able to infer the types of some factories and components.

Documentation

See https://tsdi.js.org/

Contributors

Thanks goes to these wonderful people (emoji key):


Markus Wolf

💻

Frederick Gnodtke

💻

This project follows the all-contributors specification. Contributions of any kind welcome!


Released under MIT license - (C) 2018 Markus Wolf

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].