Skip to content
CAI
Software that uses CAICheck a score

referbruv/ContainerNinja.CleanArchitecture

42.5

Weak · 8 November 2026

1.7k

lines of production code

C#

with TypeScript

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a full-stack web application built on .NET 6 and Angular 13, designed to manage items and user authentication. The backend implements a Clean Architecture with CQRS and MediatR, featuring JWT-based authentication, FluentValidation, and distributed caching via NCache. The frontend provides a custom interface for item management and user login, served through an Nginx proxy configuration.

Features

Initial release of the ContainerNinja API with Clean Architecture

The API now supports versioned endpoints (v1 and v2) for managing items and authentication, utilizing a Clean Architecture structure with MediatR for CQRS. Users can create, read, update, and delete items, as well as register and authenticate users via JWT. The API includes features like ETag-based caching and response caching, along with FluentValidation for request validation. A distributed caching service (NCache) is also integrated, though currently configured to use in-memory caching by default.

API · high confidence

Replaced default Angular templates with a custom client application

The default Angular 'Counter' and 'Fetch data' templates have been removed and replaced with a new client application featuring a login page, an items management interface (list, add, edit, delete), and a home page. This includes new routing, components, services (auth, items, token), and configuration files, while also updating the build configuration to output to 'dist/client' and configuring Nginx for the new static assets.

Client · high confidence

Behavioural changes

Implements CQRS handlers with distributed caching and validation

The application now uses a CQRS (Command Query Responsibility Segregation) architecture, introducing new command and query handlers for managing items and users. All command handlers (CreateItem, CreateUser, DeleteItem, UpdateItem, ValidateUser) now enforce input validation via FluentValidation before processing. Additionally, query handlers for retrieving items (GetAllItems, GetItemById) and the UpdateItem command handler now utilize distributed caching (via IDistributedCache and ICachingService) to store and retrieve data, improving performance by serving cached responses when available.

API/ContainerNinja.Core/Handlers/Commands, API/ContainerNinja.Core/Handlers/Queries · high confidence

Renames Nginx proxy to Proxy and updates upstream server names

The Nginx proxy configuration has been renamed to Proxy, and the upstream server names have been updated: 'client' is now 'fe' (pointing to 'client'), and 'dncapi' is now 'be' (pointing to 'api').

Proxy · medium confidence

Dependencies

Upgrade .NET 6 and Angular 13 dependencies

The project has been upgraded to .NET 6 and Angular 13, with corresponding updates to the C\# project files and the client's package.json. The .NET side now targets net6.0 and includes packages for MediatR, FluentValidation, JWT authentication, Swagger, and NCache. The client side has been upgraded from Angular 8 to 13, updating the Angular CLI, build tools, and core libraries to their 13.x versions.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 42 → 42 (+0.4)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 73 → 73 (-0.2)
  • Architecture 83 → 76 (-7.6)
  • Maturity 38 → 45 (+6.4)
  • Readiness 46 → 46 (+0.0)
  • Security 31 → 32 (+0.6)
  • Event-Driven 100 → 100 (+0.0)
  • Accessibility 66 → 49 (-17.1)
  • Performance 100 → 100 (+0.0)

Resolved (16)

  • Documentation: no installation or build instructions (README.md)
  • Documentation: no usage examples (README.md)
  • Duplicate definition of user roles. Both a Constants class with string fields and an Enum type define the same role values (Base, Admin, Owner). This creates ambiguity on which type should be used for role representation and validation.
  • End-of-life runtime: .NET net6.0 (API/ContainerNinja.Migrations/ContainerNinja.Migrations.csproj)
  • High CVE: [GHSA redacted] (Client/package-lock.json)
  • High CVE: [GHSA redacted] (Client/package-lock.json)
  • High CVE: [GHSA redacted] (Client/package-lock.json)
  • Inconsistent naming for retrieval operations. The repository uses 'Get' for database retrieval, while the caching service uses 'GetItem'. While the context differs, 'Get' is the standard convention for both data access and cache retrieval in most .NET libraries. 'GetItem' is redundant.
  • Medium CVE: [GHSA redacted] (Client/package-lock.json)
  • Medium CVE: [GHSA redacted] (Client/package-lock.json)
  • Medium CVE: [GHSA redacted] (Client/package-lock.json)
  • XML-doc coverage: ContainerNinja.API (API/ContainerNinja.API/ContainerNinja.API.csproj)
  • XML-doc coverage: ContainerNinja.Contracts (API/ContainerNinja.Contracts/ContainerNinja.Contracts.csproj)
  • XML-doc coverage: ContainerNinja.Core (API/ContainerNinja.Core/ContainerNinja.Core.csproj)
  • XML-doc coverage: ContainerNinja.Infrastructure (API/ContainerNinja.Infrastructure/ContainerNinja.Infrastructure.csproj)
  • XML-doc coverage: ContainerNinja.Migrations (API/ContainerNinja.Migrations/ContainerNinja.Migrations.csproj)

New (10)

  • End-of-life runtime: .NET net6.0 (API/ContainerNinja.API/ContainerNinja.API.csproj)
  • End-of-life runtime: .NET net6.0 (API/ContainerNinja.Contracts/ContainerNinja.Contracts.csproj)
  • End-of-life runtime: .NET net6.0 (API/ContainerNinja.Core/ContainerNinja.Core.csproj)
  • End-of-life runtime: .NET net6.0 (API/ContainerNinja.Infrastructure/ContainerNinja.Infrastructure.csproj)
  • End-of-life runtime: .NET net6.0 (API/ContainerNinja.Migrations/ContainerNinja.Migrations.csproj)
  • High CVE: [GHSA redacted] (Client/package-lock.json)
  • High CVE: [GHSA redacted] (Client/package-lock.json)
  • High CVE: [GHSA redacted] (Client/package-lock.json)
  • Medium CVE: [GHSA redacted] (Client/package-lock.json)
  • Medium CVE: [GHSA redacted] (Client/package-lock.json)

API surface

  • Unchanged — 6 HTTP endpoints

Architecture

  • Unchanged — 2 containers · 1 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

referbruv/ContainerNinja.CleanArchitecture was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 8 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 9a725d3db2e287580a65319d5717c848fad32551 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-45ab2cab63de.