typestack/typedi

Simple yet powerful dependency injection tool for JavaScript and TypeScript.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 8 minutes ago
Type:Library / SDKCategory(s):Core & Utility LibrariesLanguages & Runtimes
Added to GitGenius on September 16th, 2026
Created on September 29th, 2015
Open Issues & Pull Requests: 59 (+0)
GitHub issues: Enabled
Number of forks: 167
Total Stargazers: 4,246 (+0)
Total Subscribers: 28 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 10.7 days
Mean response time: 67.5 days
90th percentile: 268.2 days
Tracked items: 6

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 7
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 532 days
Stale 30+ days: 6
Stale 90+ days: 6

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • status: needs triage (5)
  • type: fix (5)
  • type: question (3)

Detailed Description

TypeDI is a dependency injection container for JavaScript and TypeScript that leverages decorators and type metadata to manage object instantiation and dependency resolution.

The tool addresses the complexity of managing dependencies across large applications by providing a centralized container that automatically resolves and injects dependencies based on type information. It works by allowing developers to decorate classes and properties with metadata that the container reads at runtime, enabling automatic wiring of dependencies without manual factory functions or service locators. The container supports constructor injection, property injection, and method injection patterns, giving developers flexibility in how they structure their code.

Teams building TypeScript applications with complex dependency graphs benefit most from TypeDI, particularly those already using decorators in their architecture. The tool suits projects where type safety and compile-time checking matter, since it leverages TypeScript's type system to catch injection errors early. It integrates well with frameworks that support decorators and metadata reflection, making it a natural fit for applications built with Express, NestJS, or similar platforms. The README does not compare TypeDI to alternative dependency injection solutions, so no comparative guidance can be offered.

The project maintains active development with regular commits addressing bug fixes and feature enhancements. The codebase shows consistent attention to test coverage, with updates to test suites accompanying new functionality. Documentation receives ongoing refinement to clarify usage patterns and edge cases. The project demonstrates responsiveness to issues raised by users, with problems typically addressed through code changes rather than documentation-only responses.