# ardalis/CleanArchitecture

Clean Architecture Solution Template: A proven Clean Architecture Template for ASP.NET Core 10

Repository: https://github.com/ardalis/CleanArchitecture
Canonical: https://ross.abutalabs.com/products/ardalis-cleanarchitecture
Language: C#
License: MIT
License Family: permissive
Topics: clean-architecture, architecture, ddd, dotnet, csharp, domain-driven-design, hacktoberfest
Last push: 2026-08-23T20:27:55+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 53, longevity 100
- inputs: {"age_days": 3624, "days_push": 10, "days_rel": 152, "gap_med": 121, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 18439, forks 3076 (observed 2026-08-28T04:11:26.672490+00:00)

## What it is
A NuGet-distributed ASP.NET Core solution template implementing Clean Architecture (also known as hexagonal, ports-and-adapters, or onion architecture) with domain-driven design principles. It provides a proven starting point for structuring loosely-coupled, dependency-inverted .NET web applications.

## Use cases
- scaffold a new asp.net core project with clean architecture
- start a dotnet web api using domain-driven design
- learn clean architecture with a reference implementation
- structure a loosely coupled dependency-inverted c# codebase
- bootstrap a hexagonal architecture solution in .net
- template for onion architecture in asp.net core

## When to choose
- starting a new ASP.NET Core application and wanting a battle-tested layered structure
- applying DDD and dependency inversion in a .NET codebase
- learning or teaching Clean Architecture patterns with real code

## When to avoid
- building small scripts or microservices where full layered architecture is overkill
- working outside the .NET/ASP.NET Core ecosystem
- needing a runtime framework rather than a project template

## Facets
- artifact type: framework
- maturity: active
- function: web-framework, boilerplate, developer-tools
- domain: web-development, backend, developer-tools, tutorials
- platform: dotnet, cross-platform
- tags: clean-architecture, solution-template, domain-driven-design, ddd, aspnet-core, onion-architecture, nuget-template, project-scaffolding, web-server

## Member repositories
- ardalis/CleanArchitecture (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:26.672490+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:20:53.732895+00:00, confidence not recorded.
  - readme: https://github.com/ardalis/CleanArchitecture (fetched 2026-08-28T04:11:26.672490+00:00, sha 33b4d0b40e9e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
