Skip to content
CAI
Software that uses CAICheck a score

nakabonne/cleanarchitecture-sample

43.6

Weak · 20 September 2026

205

lines of production code

Go

primary language

4

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 watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 47 → 44 (-3.5)
  • Rubric changed (rubric-2026.08.17 → rubric-2026.09.15) — scores are not directly comparable.

Lenses

  • Code Health 99 → 100 (+0.2)
  • Architecture 69 → 66 (-3.3)
  • Maturity 70 → 52 (-18.4)
  • Readiness 12 → 16 (+4.4)
  • Security 99 → 91 (-7.8)
  • Domain Modelling 100 → 100 (+0.0)

Resolved (5)

  • Dependency hygiene not measured — no supported dependency manifest was read
  • Duplicated block (9 lines × 2) (pkg/adapter/gateway/user_repository.go)
  • No exposed public API
  • early-stage repository — too little history to judge knowledge freshness
  • single-maintainer — knowledge-concentration (bus factor) risk

New (12)

  • Critical CVE: [GHSA redacted] (go.sum)
  • Critical CVE: [GHSA redacted] (go.mod)
  • Documentation: no installation or build instructions (README.md)
  • Duplicated block (12 lines × 2) (pkg/adapter/gateway/user_repository.go)
  • High CVE: [GHSA redacted] (go.sum)
  • High CVE: [GHSA redacted] (go.sum)
  • Medium CVE: GO-2021-0226 (go.mod)
  • Medium IaC: WD-COMPOSE-0002 (docker-compose.yml)
  • Medium IaC: WD-DOCKER-0003 (Dockerfile)
  • Outdated: github.com/gin-gonic/gin
  • Outdated: github.com/jinzhu/gorm
  • Outdated: github.com/pkg/errors

Written by watchdog.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 20 September 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.09.15 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer preprod-28e75b8e3254.