autofac/Autofac
An addictive .NET IoC container observed · 2026-08-28
Health v2 · maintenance only
92/100
- Activity 95
- Release rhythm 83
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 78.5
- age_days: 4606
- days_rel: 32
- days_push: 32
- n_releases_24m: 11
Adoption not part of the score
4657 stars · 846 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Autofac is an Inversion of Control (IoC) dependency injection container for .NET, .NET Core, and ASP.NET Core. It manages class dependencies through component registration, constructor/property/method injection, lifetime scopes, and a flexible module system.
Use cases
- resolve dependencies in a .NET application with an IoC container
- register services and inject them into constructors in ASP.NET Core
- manage service lifetimes and nested scopes in a large C# codebase
- scan assemblies to auto-register components by convention
- organize complex registrations into reusable modules
- replace the default Microsoft.Extensions.DependencyInjection container
When to choose
- you need a mature, feature-rich DI container for .NET with lifetime scopes and assembly scanning
- you want flexible registration via lambdas, types, instances, or modules
- you need integration with ASP.NET Core, MVC, Web API, or other .NET frameworks
When to avoid
- you only need simple DI and prefer the built-in Microsoft.Extensions.DependencyInjection
- you are not working in a .NET/C# environment
Facets
library · maturity stable
middleware developer-tools backend developer-tools web-development dotnet cross-platform windows ioc-container dependency-injection di inversion-of-control c-sharp netcore service-lifetime
3 sources
- readme: https://github.com/autofac/Autofac · fetched 2026-08-28 · e4e568606dfd
- homepage: https://autofac.org · fetched 2026-08-29 · 67f8f287bf56
- site_page: https://autofac.org/apidoc · fetched 2026-08-29 · 8430a70987fc
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| autofac/Autofac | main | 92 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem