The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 8 TypeScript Di Projects
-
diod
A very opinionated inversion of control (IoC) container and dependency injector for Typescript, Node.js or browser apps.
-
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.
-
dandi
🌻A modular DI, MVC, and Model binding/validation framework for NodeJS and TypeScript or ES6
-
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.
Note: the reason "IUserRepository" is passed here as a string to bind() is because Typescript interfaces are not "real" types or symbols, unlike classes, so therefore we must use the string name of them. However, the autogenerated code contains simple union-type that makes sure you pass a correct name for the interface to bind() The key here is that there is an additional pre-preprocessing step that uses Typescript compiler to parse the arguments of each constructor and generates a project-specific IOC container code with a tree of depenedencies, allowing to resolve them in runtime (basically an additional .ts file in your source code folder). You can also run it in watch mode, so it actively rebuilds the tree as you edit the code in project, or just make it a required step before running your app in npm start for example. The example of auto generated container code, that you import in your project can be found there: Github
TypeScript Di related posts
- The Problem with Dependency Injection Frameworks
- Best practice for using different implementations of data fetching code in React/Next.js app?
- What do you use for dependency injection?
- I wrote an strongly typed IoC container library (based on Diddly) for Deno & Node
- Is there any known way to measure coverage of... types?
- Generating Trees Images on Canvas Using L-Systems, TypeScript and OOP
- Angular & Nest, a match made in heaven
-
A note from our sponsor - WorkOS
workos.com | 26 Apr 2024
Index
What are some of the best open-source Di projects in TypeScript? This list will help you:
Project | Stars | |
---|---|---|
1 | diod | 125 |
2 | iti | 119 |
3 | Ditox.js | 86 |
4 | di-compiler | 77 |
5 | dandi | 10 |
6 | di | 8 |
7 | genioc | 7 |
8 | cruet | 5 |
Sponsored