Skip to content
CAI
Software that uses CAICheck a score

nakabonne/cleanarchitecture-sample

44.3

Weak · 7 November 2026

205

lines of production code

Go

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a sample Go application designed to demonstrate Clean Architecture principles. It provides a structured codebase with a Gin-based HTTP server and a MySQL-backed user repository using GORM. The primary functionality allows users to manage user data through health check and creation endpoints, enforcing separation of concerns across domain and use-case layers.

Features

Initial release of the Clean Architecture sample application

The application is now available as a Go module, introducing a complete Clean Architecture structure. This includes a Gin-based HTTP server exposing endpoints for health checks and user creation, a MySQL-backed user repository using GORM, and domain/use-case layers that enforce separation of concerns. Users can now run the sample service to manage user data with a structured, modular codebase.

cmd, pkg · high confidence

Removals

Removal of main.go entry point

The src/main.go file has been deleted, removing the primary entry point for the application located in this directory.

src · high confidence

Dependencies

Enable Go modules support

The project now uses Go modules for dependency management, introduced by adding go.mod and go.sum files. This establishes the module path as github.com/nakabonne/cleanarchitecture-sample, sets the Go version to 1.13, and pins direct dependencies including gin v1.4.0, gorm v1.9.10, and pkg/errors v0.8.1.

(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 44 → 44 (+0.5)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 100 → 100 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 54 → 54 (+0.0)
  • Readiness 18 → 18 (+0.0)
  • Security 93 → 99 (+6.1)

Resolved (1)

  • Documentation: no contributor guidance (README.md)

New (2)

  • High interface indirection
  • Scattered collaborators

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

Survey your own repository

nakabonne/cleanarchitecture-sample 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 7 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 6e899b324531a88f3bd811561c756841be138c45 — 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.