# amantinband/clean-architecture

The ultimate clean architecture template for .NET applications 💪

Repository: https://github.com/amantinband/clean-architecture
Canonical: https://ross.abutalabs.com/products/clean-architecture
Language: C#
License: MIT
License Family: permissive
Topics: asp-net-core, clean-architecture, dotnet, dotnet-core, software-architecture, web-application
Last push: 2024-07-14T06:24:24+00:00

## Health v2 (maintenance only)
Score: 27/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 76
- inputs: {"age_days": 1066, "days_push": 780, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1929, forks 332 (observed 2026-08-28T04:05:55.924336+00:00)

## What it is
A .NET project template implementing Clean Architecture for ASP.NET Core applications, installable via `dotnet new`. It ships with layered structure, authentication/authorization patterns, domain events, and a full testing setup.

## Use cases
- scaffold a new .NET web api with clean architecture
- template for asp.net core rest api project structure
- learn how to structure a dotnet application with domain layers
- starting point for a jwt-authenticated asp.net core service
- example of role-based and permission-based authorization in dotnet
- set up unit and integration tests for a layered .net app

## When to choose
- starting a new ASP.NET Core backend and wanting a proven layered architecture
- learning or teaching clean architecture patterns in .NET
- you want auth, domain events, and testing wired up out of the box

## When to avoid
- your project is a small script or simple tool where layering adds overhead
- you use a stack other than .NET/C#
- your team follows a different architectural style or existing conventions

## Facets
- artifact type: learning-resource
- maturity: active
- function: web-framework, auth, authorization, testing, developer-tools
- domain: web-development, backend, developer-tools, apis
- platform: dotnet, cross-platform
- tags: clean-architecture, dotnet-template, asp-net-core, project-template, software-architecture, boilerplate, boilerplate, docker

## Member repositories
- amantinband/clean-architecture (main) score 27

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:55.924336+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-30T08:32:12.667590+00:00, confidence not recorded.
  - readme: https://github.com/amantinband/clean-architecture (fetched 2026-08-28T04:05:55.924336+00:00, sha 75e36ebfc830)
- Data as of 2026-08-30T08:39:29.467469+00:00.
