awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

TypeScript Dependency Injection Libraries

排名更新于 2026年7月13日

For a dependency injection library for TypeScript, the strongest matches are inversify/inversifyjs (InversifyJS is a comprehensive TypeScript-native dependency injection container that), typestack/typedi (TypeDI is a comprehensive TypeScript dependency injection container that) and microsoft/tsyringe (This is a comprehensive TypeScript-native dependency injection container that). jeffijoe/awilix and midwayjs/midway round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

我们为您精选了匹配 “best typescript dependency injection libraries” 的开源 GitHub 仓库。结果按与您查询的相关性进行排名 — 您可以使用下方筛选器缩小范围,或通过 AI 进行优化。

TypeScript Dependency Injection Libraries

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • inversify/inversifyjsinversify 的头像

    inversify/InversifyJS

    12,066在 GitHub 上查看↗

    InversifyJS is an inversion of control framework and dependency injection library for TypeScript. It provides a centralized container to manage object lifecycles and automate the instantiation of classes and their dependencies. The library decouples software components by mapping unique identifiers to concrete implementations. This architecture separates object creation from business logic and allows for the replacement of real service implementations with mock objects during unit testing. The framework utilizes TypeScript decorators to provide metadata-driven injection and recursive depende

    InversifyJS is a comprehensive TypeScript-native dependency injection container that natively supports decorator-based injection, constructor injection, scope management, and asynchronous resolution.

    TypeScriptInversion-of-Control ContainersMetadata-Driven Dependency Injection
    在 GitHub 上查看↗12,066
  • typestack/typeditypestack 的头像

    typestack/typedi

    4,242在 GitHub 上查看↗

    TypeDI is a TypeScript dependency injection container and inversion of control tool. It functions as a centralized registry and service locator that manages object instantiation and decouples component dependencies using type inference and decorators. The project provides scoped dependency management to isolate service instances within specific contexts, preventing data leakage between different execution flows. It supports flexible service resolution through the use of type-safe tokens and the ability to map unique identifiers or class constructors to specific service instances. The contain

    TypeDI is a comprehensive TypeScript dependency injection container that natively supports decorator-based injection, constructor injection, and advanced scope management for service lifecycles.

    TypeScriptDependency Injection ContainersInversion-of-Control ContainersMetadata-Driven Dependency Injection
    在 GitHub 上查看↗4,242
  • microsoft/tsyringemicrosoft 的头像

    microsoft/tsyringe

    5,960在 GitHub 上查看↗

    tsyringe is a TypeScript dependency injection container and inversion of control framework. It decouples class implementations from object creation by managing dependencies and object lifecycles using decorators and metadata. The framework features a hierarchical container system where child containers can maintain independent registration scopes and fall back to parent containers for dependency resolution. It provides a provider system that controls object longevity through singleton and transient instantiation rules. The system supports recursive constructor injection and handles circular

    This is a comprehensive TypeScript-native dependency injection container that natively supports decorator-based injection, constructor injection, hierarchical scope management, and lifecycle control.

    TypeScriptAutomatic Constructor InjectionDependency Injection Frameworks
    在 GitHub 上查看↗5,960
  • jeffijoe/awilixjeffijoe 的头像

    jeffijoe/awilix

    4,088在 GitHub 上查看↗

    Awilix is a JavaScript dependency injection framework and inversion of control container. It provides a centralized system for registering and resolving services, decoupling application components by automating how dependencies are created and passed to the functions or classes that require them. The framework features an automatic module loader that scans the filesystem using glob patterns to register dependencies based on filenames and exports. It supports parameter-name-based injection and proxy-based resolution to manage how dependencies are delivered to constructors and functions. The s

    Awilix is a robust dependency injection container for TypeScript that supports constructor injection, scope management, and inversion of control, though it favors parameter-name-based resolution over the decorator-based approach common in other frameworks.

    TypeScriptConstructor InjectionDependency Injection ContainersInversion-of-Control Containers
    在 GitHub 上查看↗4,088
  • midwayjs/midwaymidwayjs 的头像

    midwayjs/midway

    7,722在 GitHub 上查看↗

    Midway is a suite of backend frameworks for Node.js designed to build enterprise microservices and full-stack applications. It centers on a dependency injection architecture using an inversion-of-control container and decorators to organize complex business logic and maintainable server-side structures. The framework provides multi-protocol support for HTTP, gRPC, and WebSockets, allowing a single environment to handle diverse service-to-service networking requirements. It also includes a multi-runtime adapter layer that enables applications to be deployed across traditional containers and va

    Midway is a full-stack backend framework that centers its architecture on a robust, decorator-based inversion-of-control container, making it a comprehensive choice for managing service lifecycles and decoupling in TypeScript applications.

    TypeScriptDependency Injection ContainersInversion-of-Control ContainersDecorator-Based
    在 GitHub 上查看↗7,722
  • nestjs/nestnestjs 的头像

    nestjs/nest

    75,862在 GitHub 上查看↗

    Nest is a server-side framework for building scalable and maintainable enterprise-grade applications using TypeScript. It provides a modular architecture that organizes code into encapsulated, reusable modules, utilizing a dependency injection container to manage object lifecycles and resolve component dependencies through declarative metadata. The framework distinguishes itself through a platform-agnostic abstraction layer that decouples core logic from underlying HTTP servers, allowing for flexible implementation choices. It employs a middleware-based request pipeline that processes traffic

    Nest is a comprehensive server-side framework that features a robust, decorator-based dependency injection container as its core architectural component for managing object lifecycles and service decoupling.

    TypeScriptAsynchronous ProvidersMetadata-Driven Dependency Injection
    在 GitHub 上查看↗75,862
  • effect-ts/coreEffect-TS 的头像

    Effect-TS/core

    14,618在 GitHub 上查看↗

    This project is a functional programming library and toolkit for building production TypeScript applications. It provides a system for managing concurrency, error handling, and resource lifecycles using functional effects. The project distinguishes itself through a comprehensive suite of specialized toolkits, including a dependency injection framework for decoupling service implementations, a workflow orchestrator for coordinating durable processes, and a SQL database toolkit for consistent data operations across multiple dialects. It also implements an OpenTelemetry instrumentation library f

    This library provides a robust dependency injection system based on functional programming principles and service providers, offering a powerful alternative to traditional decorator-based containers for managing object lifecycles and service decoupling.

    TypeScriptDependency Injection Frameworks
    在 GitHub 上查看↗14,618

Related searches

  • a dependency injection library for C#
  • a dependency injection framework for Java
  • a dependency injection container for PHP
  • Python 依赖注入容器
  • Go 服务依赖注入工具包
  • a library for building typescript cli tools
  • a lightweight HTTP client for TypeScript
  • a library for managing TypeScript configurations