TypeScript Dependency Injection

Open-source TypeScript projects categorized as Dependency Injection

Top 23 TypeScript Dependency Injection Projects

  • InversifyJS

    A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.

  • Project mention: How to Apply SOLID with Testing JS/TS Class Methods | dev.to | 2024-01-13

    Take a class for which we are tasked to write a unit test. This class may have a dozen methods and a dozen more attributes. In my environment we were already using inversify to dependency inject into this class, and using container snapshot and restore as setup and teardown operators, in our jest test file. But it began getting out of control even after refactoring into test cases and test runners.

  • loopback-next

    LoopBack makes it easy to build modern API applications that require complex integrations.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • tsyringe

    Lightweight dependency injection container for JavaScript/TypeScript

  • Project mention: SOLID explicado com TypeScript | dev.to | 2023-05-21

    Alguns frameworks trabalham desta forma por padrão, como é o caso do Angular, quando este não é o padrão do framework que utilizamos podemos usar alguma biblioteca, como a Inversify ou tsyringe da Microsoft.

  • typedi

    Simple yet powerful dependency injection tool for JavaScript and TypeScript.

  • Project mention: Cerbos + GraphQL: Do not reinvent user permissions | /r/graphql | 2023-05-05

    In this tutorial, we're building a simple application which uses Cerbos inside of a GraphQL server. The server is written in typescript and uses type-graphql to create the schema and resolvers, and TypeDI to handle dependency injection.

  • awilix

    Extremely powerful Inversion of Control (IoC) container for Node.JS

  • marshal.ts

    A new full-featured and high-performance TypeScript framework

  • Project mention: Deepkit Enterprise TypeScript Framework | news.ycombinator.com | 2023-12-09
  • Ts.ED

    :triangular_ruler: 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. ⭐️ Star to support our work!

  • Project mention: Choosing a backend API framework | /r/node | 2023-06-13

    Ts.ED - Controller-based (DI supporting) backend framework that seems to offer quite a lot (although I'm wary of it being quite close to Nest.js)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • foal

    Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.

  • Project mention: FoalTS – A Full-Featured Node.js Framework | news.ycombinator.com | 2023-05-18
  • graphql-modules

    Enterprise Grade Tooling For Your GraphQL Server

  • injection-js

    Dependency injection library for JavaScript and TypeScript in 5.1K. It is an extraction of the Angular's ReflectiveInjector which means that it's well designed, feature complete, fast, reliable and well tested.

  • tst-reflect

    Advanced TypeScript runtime reflection system

  • zedux

    :zap: A Molecular State Engine for React

  • Project mention: Thoughts on Signals? | /r/reactjs | 2023-06-29

    Atomic libs include Recoil, Jotai, and the one I maintain: Zedux. Zedux especially was designed to work well with sockets and RxJS observables and has been getting some traction recently, so of course I recommend checking it out. Feel free to hmu with any questions.

  • automock

    Easier Unit Testing for TypeScript Dependency Injection Frameworks

  • Project mention: Unit Test Like a Pro: Automock, My Open Source Answer to Mocking Frustration 🤓💡🎭 | dev.to | 2023-12-12

    🔗 Here are some links to check out: 😎 GitHub: https://github.com/automock/automock 🐈 Automock's NestJS Official Recipe: https://docs.nestjs.com/recipes/automock 📦 NPM: https://www.npmjs.com/package/@automock/jest 📚 Docs Website: https://automock.dev

  • ioc

    :unicorn: lightweight (<1kb) inversion of control javascript library for dependency injection written in typescript (by owja)

  • reactant

    A framework for building React applications (by unadlib)

  • brandi

    The dependency injection container powered by TypeScript.

  • diod

    A very opinionated inversion of control (IoC) container and dependency injector for Typescript, Node.js or browser apps.

  • iti

    ~1kB Dependency Injection Library for Typescript and React with a unique support of async flow

  • fold

    IoC container with all required goodies to write flexible node applications

  • Project mention: Announcing AdonisJS v6 | dev.to | 2024-01-24

    Documented usage of IoC container and container services.

  • Ditox.js

    Dependency injection for modular web applications

  • di-compiler

    A Custom Transformer for Typescript that enables compile-time Dependency Injection

  • obsidian

    Dependency injection library for React and React Native applications (by wix-incubator)

  • Project mention: Clean Architecture in React Native? | /r/reactnative | 2023-05-22

    If you coming from Android development and you're missing Dagger/Hilt for dependency injection, you might want to checkout Obsidian which is heavily influenced by Dagger.

  • ditsmod

    Ditsmod is a Node.js web framework, named DI + TS + Mod to emphasize its important components: it has Dependency Injection, written in TypeScript, and designed for good Modularity.

  • Project mention: Benchmarks for "Hello, World!". Fastify slowed down a bit, Ditsmod and Restify sped up. | /r/node | 2023-09-06

    My last measurements were when Fastify was v3.25, Restify v8.6 and Ditsmod v2.0. From that moment on, although Fastify remained in the lead, other frameworks came quite close to its results.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-01-24.

TypeScript Dependency Injection related posts

Index

What are some of the best open-source Dependency Injection projects in TypeScript? This list will help you:

Project Stars
1 InversifyJS 10,790
2 loopback-next 4,839
3 tsyringe 4,762
4 typedi 3,905
5 awilix 3,317
6 marshal.ts 3,065
7 Ts.ED 2,726
8 foal 1,852
9 graphql-modules 1,288
10 injection-js 1,171
11 tst-reflect 321
12 zedux 314
13 automock 273
14 ioc 273
15 reactant 248
16 brandi 187
17 diod 125
18 iti 118
19 fold 114
20 Ditox.js 84
21 di-compiler 77
22 obsidian 77
23 ditsmod 72
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com