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 के साथ रिफाइन करें।
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.
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.
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.
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.
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.
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.
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.