All Projects β†’ wendellhu95 β†’ redi

wendellhu95 / redi

Licence: MIT license
πŸ’‰ A dependency injection library for TypeScript & JavaScript, along with a binding for React.

Programming Languages

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

Projects that are alternatives of or similar to redi

tsed
πŸ“ Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone.
Stars: ✭ 2,350 (+8003.45%)
Mutual labels:  ioc, dependency-injection
Asp.net MVC5 DDD EF6 IoC
Asp.net C# MVC5, EF6, DDD, IoC
Stars: ✭ 14 (-51.72%)
Mutual labels:  ioc, dependency-injection
iocgo
A lightweight Inversion of Control (IoC) (Dependency Injection) container for Golang
Stars: ✭ 36 (+24.14%)
Mutual labels:  ioc, dependency-injection
waiter
Dependency injection, Inversion of control container for rust with compile time binding.
Stars: ✭ 71 (+144.83%)
Mutual labels:  ioc, dependency-injection
inject
[Archived] See https://github.com/goava/di.
Stars: ✭ 49 (+68.97%)
Mutual labels:  ioc, dependency-injection
loopback-next
LoopBack makes it easy to build modern API applications that require complex integrations.
Stars: ✭ 4,412 (+15113.79%)
Mutual labels:  ioc, dependency-injection
ioc-ts
Inversion of control container on TypeScript
Stars: ✭ 14 (-51.72%)
Mutual labels:  ioc, dependency-injection
DI-compiler
A Custom Transformer for Typescript that enables compile-time Dependency Injection
Stars: ✭ 62 (+113.79%)
Mutual labels:  ioc, dependency-injection
vue3-oop
δ½Ώη”¨η±»ε’ŒδΎθ΅–ζ³¨ε…₯写vueη»„δ»Ά
Stars: ✭ 90 (+210.34%)
Mutual labels:  ioc, dependency-injection
SwiftInjection
Dependency Injection framework for Swift
Stars: ✭ 21 (-27.59%)
Mutual labels:  ioc, dependency-injection
sector
Simple Injector; Dependency Injection
Stars: ✭ 12 (-58.62%)
Mutual labels:  ioc, dependency-injection
tsdi
Dependency Injection container (IoC) for TypeScript
Stars: ✭ 50 (+72.41%)
Mutual labels:  ioc, dependency-injection
stashbox
A lightweight, fast, and portable dependency injection framework for .NET-based solutions.
Stars: ✭ 120 (+313.79%)
Mutual labels:  ioc, dependency-injection
ashley
Ashley is a dependency injection container for JavaScript.
Stars: ✭ 23 (-20.69%)
Mutual labels:  ioc, dependency-injection
hypo-container
A dependency injection container.
Stars: ✭ 16 (-44.83%)
Mutual labels:  ioc, dependency-injection
vesselize
β›΅ A JavaScript IoC container that works seamlessly with Vue.js and React.
Stars: ✭ 22 (-24.14%)
Mutual labels:  ioc, dependency-injection
Dry System
Organize your code into reusable components
Stars: ✭ 228 (+686.21%)
Mutual labels:  ioc, dependency-injection
Typhoon
Powerful dependency injection for Objective-C ✨✨ (https://PILGRIM.PH is the pure Swift successor to Typhoon!!)✨✨
Stars: ✭ 2,711 (+9248.28%)
Mutual labels:  ioc, dependency-injection
Reflex
Minimal dependency injection framework for Unity
Stars: ✭ 263 (+806.9%)
Mutual labels:  ioc, dependency-injection
di
πŸ›  A full-featured dependency injection container for go programming language.
Stars: ✭ 156 (+437.93%)
Mutual labels:  ioc, dependency-injection

redi

Stars Downloads License Codecov

A dependency library for TypeScript and JavaScript, along with a binding for React.

Overview

import { Inject } from '@wendellhu/redi'

class AuthService {
    public getCurrentUserInfo(): UserInfo {}
}

class FileListService {
    constructor(@Inject(AuthService) private readonly authService: AuthService) {}

    public getUserFiles(): Promise<Files> {
        const currentUser = this.authService.getCurrentUserInfo()
    }
}

const injector = new Injector([[AuthService], [FileListService]])

injector.get(AuthService)

View full documentation on redi.wendell.fun.

Links

Users

  • Team Lark at ByteDance

License

MIT. Copyright 2021-2022 Wendell Hu.

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].