TypeScript IoC

Open-source TypeScript projects categorized as IoC

Top 19 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.

    SurveyJS logo
  • loopback-next

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

  • tsyringe

    Lightweight dependency injection container for JavaScript/TypeScript

  • typedi

    Simple yet powerful dependency injection tool for JavaScript and TypeScript.

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

    InfluxDB logo
  • 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

  • Ditox.js

    Dependency injection for modular web applications

  • obsidian

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

  • di-compiler

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

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

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

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub 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).

TypeScript IoC related posts

  • How to Apply SOLID with Testing JS/TS Class Methods

    1 project | dev.to | 13 Jan 2024
  • SOLID explicado com TypeScript

    2 projects | dev.to | 21 May 2023
  • Approach to applying DI container to an existing codebase?

    1 project | /r/learnprogramming | 21 Mar 2023
  • Announcing TypeScript 5.0 Beta

    4 projects | /r/typescript | 26 Jan 2023
  • Typesafe, (almost) Zero Cost Dependency Injection in TypeScript

    12 projects | dev.to | 9 Jan 2023
  • The Problem with Dependency Injection Frameworks

    1 project | news.ycombinator.com | 8 Jan 2023
  • InversifyJS has reached 100,000,000 downloads on npm

    1 project | /r/javascript | 12 Dec 2022
  • A note from our sponsor - SaaSHub
    www.saashub.com | 1 Jun 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

Project Stars
1 InversifyJS 10,878
2 Quick Start 7,209
3 loopback-next 4,862
4 tsyringe 4,829
5 typedi 3,935
6 awilix 3,381
7 express-typescript-boilerplate 3,218
8 Ts.ED 2,754
9 ioc 273
10 diod 125
11 iti 122
12 node-typescript-architecture 114
13 Ditox.js 91
14 obsidian 79
15 di-compiler 77
16 pumpit 23
17 aggregator 11
18 genioc 8
19 karambit 4

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com