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. Learn more →
Top 23 TypeScript Dependency Injection Projects
-
InversifyJS
A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.
-
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.
-
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!
-
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.
-
foal
Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.
-
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.
-
ioc
:unicorn: lightweight (<1kb) inversion of control javascript library for dependency injection written in typescript (by owja)
-
diod
A very opinionated inversion of control (IoC) container and dependency injector for Typescript, Node.js or browser apps.
-
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.
-
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.
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.
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.
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.
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)
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.
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
Documented usage of IoC container and container services.
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.
Project mention: Benchmarks for "Hello, World!". Fastify slowed down a bit, Ditsmod and Restify sped up. | /r/node | 2023-09-06My 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.
TypeScript Dependency Injection related posts
- Announcing AdonisJS v6
- How to Apply SOLID with Testing JS/TS Class Methods
- Benchmarks for "Hello, World!". Fastify slowed down a bit, Ditsmod and Restify sped up.
- From github nest/issues
- Dependency injection into RTK Query createApi?
- Clean Architecture in React Native?
- SOLID explicado com TypeScript
-
A note from our sponsor - InfluxDB
www.influxdata.com | 19 Apr 2024
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 |