TypeScript IoC

Open-source TypeScript projects categorized as IoC

Top 20 TypeScript IoC 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.

  • Quick Start

    🍔 A Node.js Serverless Framework for front-end/full-stack developers. Build the application for next decade. Works on AWS, Alibaba Cloud, Tencent Cloud and traditional VM/Container. Super easy integrate with React and Vue. 🌈

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

  • loopback-next

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

  • 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

  • express-typescript-boilerplate

    A delightful way to building a RESTful API with NodeJs & TypeScript by @w3tecch

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

  • 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)

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

  • iti

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

  • node-typescript-architecture

    Hexagonal architecture / ports-and-adapters for Node.js using simple functional programming

    Project mention: Best file structure for node js project | /r/webdev | 2023-05-31

    It's opinionated, and it's self promotion, but this is what I've used for every project of mine since 2020: https://github.com/jbreckmckye/node-typescript-architecture

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

  • pumpit

    PumpIt is a small (~2KB) dependency injection container without the decorators, suitable for the browser.

  • aggregator

    Websocket client which subscribes and processes data from the Census Streaming Service, passing it to the PS2Alerts API via RabbitMQ.

  • lambda-ioc

    Super type safe dependency injection 💉 for TypeScript (inspired by Diddly)

  • genioc

    Bloat-free and magical IoC-container for Typescript based on code-generation

    Project mention: [TS] Java-like, decorator-free simple IOC container | /r/node | 2023-07-04

    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

  • karambit

    A compile-time and type-safe dependency injector for Typescript.

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

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

TypeScript IoC related posts

Index

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

Project Stars
1 InversifyJS 10,737
2 Quick Start 7,121
3 loopback-next 4,831
4 tsyringe 4,726
5 typedi 3,892
6 awilix 3,296
7 express-typescript-boilerplate 3,182
8 Ts.ED 2,715
9 ioc 270
10 diod 121
11 iti 115
12 node-typescript-architecture 110
13 Ditox.js 83
14 di-compiler 76
15 obsidian 74
16 pumpit 22
17 aggregator 11
18 lambda-ioc 8
19 genioc 7
20 karambit 4
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