Skip to content
CAI
Software that uses CAICheck a score

racerxdl/go-cqrs-example

57.2

Adequate · 21 September 2026

923

lines of production code

Go

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add GraphQL API for contact management

The application now exposes a GraphQL interface for managing contacts. Users can query individual or list contacts via the \contact\ and \listContacts\ queries, and perform create, update, and delete operations through the \addContact\, \updateContact\, and \deleteContact\ mutations. This new API layer bridges the existing CQRS protocol with a modern query language, enabling clients to fetch contact details and modify the contact list through a single, structured endpoint.

gql, protocol · high confidence

Add MQTT-based queue manager implementation

A new MQTT-based queue manager has been introduced, providing a concrete implementation of the QueueManager interface. Users can now utilize MQTT for message publishing and subscribing, with support for configurable topics and payloads. The implementation includes connection handling, message routing, and timeout management for MQTT operations.

queueManager · high confidence

Introduce CQRS architecture with gRPC and GraphQL interfaces

The application now implements a Command Query Responsibility Segregation (CQRS) pattern, separating write and read operations. A new database command provides an in-memory storage layer for contacts. A gRPC server exposes the database operations, while a separate gRPC proxy handles read requests. A new GraphQL server is introduced, which utilizes a queue-based writer client to handle write operations asynchronously via MQTT, and a reader client to fetch data. The system also includes an MQTT broker configuration and a queue manager to facilitate the decoupled write path.

cmd, protoserver · high confidence

Dependencies

Initial Go module and dependency setup

The project has been initialized as a Go module (github.com/racerxdl/go-cqrs-example) with Go 1.13. The setup introduces dependencies for CQRS and development tools, including MQTT client (eclipse/paho.mqtt.golang), GraphQL server (graphql-go/graphql, graphql-go/handler), Protobuf (golang/protobuf), and MongoDB driver (go.mongodb.org/mongo-driver).

(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 52 → 57 (+5.3)
  • Rubric changed (rubric-2026.08.18 → rubric-2026.09.15) — scores are not directly comparable.

Lenses

  • Code Health 100 → 99 (-0.7)
  • Architecture 69 → 69 (+0.0)
  • Maturity 73 → 73 (+0.0)
  • Readiness 24 → 40 (+15.4)
  • Security 96 → 72 (-24.2)

Resolved (9)

  • Coverage not included — suite not readable by the collector
  • Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
  • No exposed public API
  • OSV Dependency Vulnerabilities not included (check did not complete)
  • Test reliability not included
  • early-stage repository — too little history to judge knowledge freshness
  • git history depth insufficient
  • git history depth insufficient
  • single-maintainer — knowledge-concentration (bus factor) risk

New (34)

  • Coverage not measured — no coverage collector is wired up
  • Critical CVE: [GHSA redacted] (go.mod)
  • Critical CVE: [GHSA redacted] (go.sum)
  • Critical CVE: [GHSA redacted] (go.sum)
  • Critical CVE: [GHSA redacted] (go.sum)
  • Critical CVE: [GHSA redacted] (go.mod)
  • Dependency pinned to a stale untagged commit: github.com/fhmq/hmq
  • Deprecated module: github.com/golang/protobuf
  • Deprecated module: go.mongodb.org/mongo-driver
  • Documentation: no installation or build instructions (README.md)
  • Documentation: no usage examples (README.md)
  • Duplicated block (10 lines × 2) (gql/mutations.go)
  • Duplicated block (27 lines × 2) (gql/mutations.go)
  • Duplicated block (9 lines × 3) (gql/mutations.go)
  • High CVE: [GHSA redacted] (go.sum)
  • High CVE: [GHSA redacted] (go.mod)
  • High CVE: [GHSA redacted] (go.sum)
  • High CVE: [GHSA redacted] (go.sum)
  • High CVE: [GHSA redacted] (go.sum)
  • High CVE: [GHSA redacted] (go.mod)
  • …and 14 more

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

Survey your own repository

racerxdl/go-cqrs-example 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 21 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 e415e18b731bc44fa735e9d1cf818ff23146c937 — 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.