# jasontaylordev/CleanArchitecture

Clean Architecture Solution Template for ASP.NET Core

Repository: https://github.com/jasontaylordev/CleanArchitecture
Canonical: https://ross.abutalabs.com/products/cleanarchitecture
Homepage: https://cleanarchitecture.jasontaylor.dev
Language: C#
License: MIT
License Family: permissive
Topics: clean-architecture, template, angular, react, aspire, asp-net, entity-framework, web-api, dotnet
Last push: 2026-08-26T21:29:38+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 76, longevity 100
- inputs: {"age_days": 2522, "days_push": 7, "days_rel": 163, "gap_med": 1.0, "n_releases_24m": 17}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 20491, forks 4271 (observed 2026-08-28T04:11:30.157890+00:00)

## What it is
A .NET solution template that scaffolds production-ready ASP.NET Core applications following Clean Architecture principles, with optional Angular or React frontends and a choice of SQLite, SQL Server, or PostgreSQL. It includes pre-wired CQRS via MediatR, validation, authorization, logging, EF Core persistence, Aspire orchestration, and a full test suite.

## Use cases
- scaffold a new asp.net core web api with clean architecture
- start an enterprise .net app with angular or react frontend
- generate a cqrs solution with mediatr and fluentvalidation
- bootstrap a dotnet project with entity framework core and postgresql
- get a production-ready rest api template with authentication
- create a full-stack dotnet solution with tests included

## When to choose
- starting a new ASP.NET Core enterprise application and wanting a solid, opinionated foundation
- you want Clean Architecture, CQRS, and vertical slices without wiring infrastructure yourself
- you value testability, separation of concerns, and batteries-included tests and CI
- you want to pick between Angular, React, or API-only with multiple database providers

## When to avoid
- you have an existing codebase whose structure differs from Clean Architecture
- you need a minimal microservice or script where a full layered solution is overkill
- you prefer a different architectural style or want full control over project layout from scratch
- you need to switch database providers after scaffolding, which the template does not support

## Facets
- artifact type: framework
- maturity: active
- function: web-framework, api-framework, auth, orm, testing, middleware, boilerplate, developer-tools
- domain: web-development, backend, developer-tools, apis
- platform: dotnet, cross-platform
- tags: clean-architecture, dotnet-template, aspnet-core, cqrs, mediatr, entity-framework-core, aspire, angular, react, vertical-slices, solution-template, fluentvalidation, docker, web-server

## Member repositories
- jasontaylordev/CleanArchitecture (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:30.157890+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-29T16:58:47.100904+00:00, confidence not recorded.
  - readme: https://github.com/jasontaylordev/CleanArchitecture (fetched 2026-08-28T04:11:30.157890+00:00, sha 72a5be5e3b94)
  - homepage: https://cleanarchitecture.jasontaylor.dev (fetched 2026-08-29T07:57:31.511609+00:00, sha b7baea39fab0)
  - site_page: https://cleanarchitecture.jasontaylor.dev/docs/getting-started (fetched 2026-08-29T07:57:31.514559+00:00, sha 80ae6519db2c)
  - site_page: https://cleanarchitecture.jasontaylor.dev/docs/getting-started/first-project (fetched 2026-08-29T07:57:31.516615+00:00, sha 1cb3cf244046)
  - site_page: https://cleanarchitecture.jasontaylor.dev/docs/getting-started/installation (fetched 2026-08-29T07:57:31.518461+00:00, sha 7e59bfcb43a9)
  - site_page: https://cleanarchitecture.jasontaylor.dev/docs/architecture (fetched 2026-08-29T07:57:31.520154+00:00, sha 94b8e11ea11e)
  - site_page: https://cleanarchitecture.jasontaylor.dev/docs/features/multiple-ui-options (fetched 2026-08-29T07:57:31.521918+00:00, sha 789b4bc03fec)
  - site_page: https://cleanarchitecture.jasontaylor.dev/docs/features/multiple-database-options (fetched 2026-08-29T07:57:31.523732+00:00, sha 190573bcb724)
  - site_page: https://cleanarchitecture.jasontaylor.dev/docs/features/structured-use-cases (fetched 2026-08-29T07:57:31.525891+00:00, sha 3830a1f212aa)
  - site_page: https://cleanarchitecture.jasontaylor.dev/docs/features/pipeline-behaviours (fetched 2026-08-29T07:57:31.528072+00:00, sha cedb92231053)
- Data as of 2026-08-30T08:39:29.467469+00:00.
