Skip to content
CAI
Software that uses CAICheck a score

j5ik2o/cqrs-es-example-js

41.2

Weak · 9 November 2026

7.9k

lines of production code

TypeScript

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

New Lambda handler for DynamoDB stream-based read model updates

A new Lambda handler has been added to the bootstrap package to process DynamoDB stream events and update the read model. This handler initializes a Prisma client using the DATABASE\_URL environment variable and delegates event processing to a ReadModelUpdater, which interacts with a GroupChatDao. This change introduces the execution logic for keeping the read model in sync with event stream data.

references · high confidence

Behavioural changes

1 commit (0 fixes) modifying packages/query, packages/rmu, tools

A change to existing behaviour in packages/query, packages/rmu, tools — 1 commit, 10 files: “feat: expand last\_processed\_sequence\_number to BIGINT (T-9) (\#843)” (refs \#843). Also in this area: 7 commits (0 fixes) modifying tools; GroupChat domain model refactored to functional style with branded types and explicit JSON serialization.

tools/migrate · medium confidence · unverified

10 commits (2 fixes) modifying packages/query/interface-adaptor/src/graphql

A change to existing behaviour in packages/query/interface-adaptor/src/graphql — 10 commits (2 fixs), 6 files: “refactor: graphql”; “feat: adapt the read api to the ESA v5 read model”; “wip”; and 6 more.

packages/query/interface-adaptor/src/graphql · medium confidence · unverified

11 commits (4 fixes) modifying packages/command/interface-adaptor-impl/src/repository

A change to existing behaviour in packages/command/interface-adaptor-impl/src/repository — 11 commits (4 fixs), 6 files: “feat: adapt write api to ESA v5 envelope api (\#832)”; “feat: migrate to event-store-adapter-js v3.1.0, functional style, DynamoDB/Spanner backends”; “Enhance repository to conditionally save snapshots based on event and state predicate”; and 8 more (refs \#832).

packages/command/interface-adaptor-impl/src/repository · medium confidence · unverified

19 commits (7 fixes) modifying packages/command/interface-adaptor-impl/src/graphql

A change to existing behaviour in packages/command/interface-adaptor-impl/src/graphql — 19 commits (7 fixs), 6 files: “feat: adapt write api to ESA v5 envelope api (\#832)”; “feat: migrate to event-store-adapter-js v3.1.0, functional style, DynamoDB/Spanner backends”; “fix: error handling”; and 15 more (refs \#832).

packages/command/interface-adaptor-impl/src/graphql · medium confidence · unverified

22 commits (8 fixes) modifying packages/command/domain

A change to existing behaviour in packages/command/domain — 22 commits (8 fixs), 23 files: “add files”; “feat: adapt write api to ESA v5 envelope api (\#832)”; “add the error handling of groupchat controller”; and 19 more (refs \#832).

packages/command/domain · medium confidence · unverified

3 commits (1 fix) modifying packages/infrastructure

A change to existing behaviour in packages/infrastructure — 3 commits (1 fix), 5 files: “fix: id generation to monotonic”; “add support for biome”; “refactor: Update type imports in multiple files”.

packages/infrastructure · medium confidence · unverified

36 commits (10 fixes) modifying packages/rmu/src

A change to existing behaviour in packages/rmu/src — 36 commits (10 fixs), 26 files: “reformat”; “fix: lint fix”; “feat: adapt write api to ESA v5 envelope api (\#832)”; and 27 more (refs \#832, \#841, \#834, \#843, \#839, …).

packages/rmu/src · medium confidence · unverified

43 commits (9 fixes) modifying packages/bootstrap

A change to existing behaviour in packages/bootstrap — 43 commits (9 fixs), 26 files: “support for docker”; “add files”; “reformat”; and 31 more (refs \#832, \#841, \#834, \#839, \#837).

packages/bootstrap · medium confidence · unverified

5 commits (0 fixes) modifying packages/command/processor

A change to existing behaviour in packages/command/processor — 5 commits, 8 files: “feat: adapt write api to ESA v5 envelope api (\#832)”; “feat: migrate to event-store-adapter-js v3.1.0, functional style, DynamoDB/Spanner backends”; “add support for biome”; and 2 more (refs \#832).

packages/command/processor · medium confidence · unverified

5 commits (2 fixes) modifying tools/e2e-test

A change to existing behaviour in tools/e2e-test — 5 commits (2 fixs), 6 files: “feat: adapt write api to ESA v5 envelope api (\#832)”; “fix: error handling”; “fix(e2e): configure LocalStack for Lambda execution and update E2E flow”; and 2 more (refs \#832, \#835).

tools/e2e-test · medium confidence · unverified

6 commits (1 fix) modifying packages/command/interface-adaptor-impl/src

A change to existing behaviour in packages/command/interface-adaptor-impl/src — 6 commits (1 fix), 1 file: “wip”; “add impls”; “fix: remove group-chat-controller”; and 2 more.

packages/command/interface-adaptor-impl/src · medium confidence · unverified

6 commits (2 fixes) modifying packages/query/interface-adaptor/prisma

A change to existing behaviour in packages/query/interface-adaptor/prisma — 6 commits (2 fixs), 1 file: “feat: expand last\_processed\_sequence\_number to BIGINT (T-9) (\#843)”; “add impls”; “fix bugs”; and 2 more (refs \#843).

packages/query/interface-adaptor/prisma · medium confidence · unverified

6 commits (2 fixes) modifying packages/rmu/prisma

A change to existing behaviour in packages/rmu/prisma — 6 commits (2 fixs), 1 file: “add impls”; “add group chat dao”; “feat: expand last\_processed\_sequence\_number to BIGINT (T-9) (\#843)”; and 2 more (refs \#843).

packages/rmu/prisma · medium confidence · unverified

66 commits (8 fixes) modifying (repo-wide)

A change to existing behaviour in (repo-wide) — 66 commits (8 fixs), 13 files: “first commit”; “support for docker”; “Update README.md”; and 38 more (refs \#841, \#834, \#545, \#786, \#795, …).

(repo-wide) · low confidence · unverified

7 commits (0 fixes) modifying tools

A change to existing behaviour in tools — 7 commits, 15 files: “feat: adapt write api to ESA v5 envelope api (\#832)”; “feat: add Lambda RMU startup resync and SQS recovery worker (\#841)”; “feat: switch js rmu to aggregate head streams (\#834)”; and 4 more (refs \#832, \#841, \#834, \#835, \#839, …). Also in this area: Rename local Read Model Updater tooling to DynamoDB-specific; GroupChat domain model refactored to functional style with branded types and explicit JSON serialization; Enable local Lambda Read Model Updater builds and LocalStack integration.

tools/dynamodb-setup, tools/scripts · medium confidence · unverified

9 commits (1 fix) modifying packages/query/interface-adaptor/src

A change to existing behaviour in packages/query/interface-adaptor/src — 9 commits (1 fix), 5 files: “fix: lint fix”; “add ci.yml”; “feat: expand last\_processed\_sequence\_number to BIGINT (T-9) (\#843)”; and 5 more (refs \#843).

packages/query/interface-adaptor/src · medium confidence · unverified

9 commits (3 fixes) modifying packages/command/interface-adaptor-if

A change to existing behaviour in packages/command/interface-adaptor-if — 9 commits (3 fixs), 10 files: “fix: lint fix”; “feat: adapt write api to ESA v5 envelope api (\#832)”; “feat: migrate to event-store-adapter-js v3.1.0, functional style, DynamoDB/Spanner backends”; and 6 more (refs \#832).

packages/command/interface-adaptor-if · medium confidence · unverified

Test coverage

5 commits adding/updating tests in packages/command/interface-adaptor-impl/src/test

Test coverage in packages/command/interface-adaptor-impl/src/test — 5 commits (1 fix), 4 files: “feat: migrate to event-store-adapter-js v3.1.0, functional style, DynamoDB/Spanner backends”; “add configurations”; “feat: update ESA to v5.2.0 and adapt 3-table layout”; and 2 more.

packages/command/interface-adaptor-impl/src/test · high confidence · unverified

Dependencies

810 commits updating dependencies (10 manifests)

A dependency / build maintenance change in (dependencies) — 810 commits (18 fixs), 10 files: “chore(deps): Update dependency event-store-adapter-js to v2.1.2”; “chore(deps): Update pnpm to v9.7.1”; “chore(deps): Update dependency @types/node to v20.12.8”; and 781 more (refs \#817, \#792, \#653, \#718, \#690, …).

(dependencies) · medium confidence · unverified

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

This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.

Score

  • CAI 43 → 41 (-1.9)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 67 → 65 (-2.4)
  • Architecture 55 → 66 (+10.8)
  • Maturity 49 → 76 (+27.4)
  • Readiness 43 → 38 (-4.6)
  • Security 33 → 24 (-9.0)
  • Domain Modelling 100 → 100 (+0.0)
  • Performance 100 → 100 (+0.0)

Resolved (32)

  • Critical CVE: [GHSA redacted] (pnpm-lock.yaml)
  • Critical CVE: [GHSA redacted] (pnpm-lock.yaml)
  • Documentation: no project overview (README.md)
  • FileTooLong: group-chat/group-chat-events.ts (packages/command/domain/src/group-chat/group-chat-events.ts)
  • High CVE: [GHSA redacted] (pnpm-lock.yaml)
  • High CVE: [GHSA redacted] (pnpm-lock.yaml)
  • High CVE: [GHSA redacted] (pnpm-lock.yaml)
  • High CVE: [GHSA redacted] (pnpm-lock.yaml)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • Inconsistent return type for delete operations. Deleting a GroupChat returns a GroupChatOutput (likely the deleted entity or status), but deleting a Message also returns a GroupChatOutput. This is semantically incorrect; deleting a message should return a MessageOutput or a generic void/success indicator, not a GroupChat output.
  • Low CVE: [GHSA redacted] (pnpm-lock.yaml)
  • Low CVE: [GHSA redacted] (pnpm-lock.yaml)
  • Low coverage: packages/command/domain/src/group-chat/group-chat-errors.ts (packages/command/domain/src/group-chat/group-chat-errors.ts)
  • Medium CVE: [GHSA redacted] (pnpm-lock.yaml)
  • Medium CVE: [GHSA redacted] (pnpm-lock.yaml)
  • Medium CVE: [GHSA redacted] (pnpm-lock.yaml)
  • No assertions: test (packages/query/interface-adaptor/src/index.test.ts)
  • Outdated (npm): @aws-sdk/client-dynamodb
  • Outdated (npm): @aws-sdk/client-dynamodb-streams
  • …and 12 more

New (18)

  • Dependency hygiene PARTLY measured — npm pinning read, dependency currency not (registry.npmjs.org unreachable)
  • Deprecated: @google-cloud/opentelemetry-resource-util (pnpm-lock.yaml)
  • Deprecated: @smithy/core (pnpm-lock.yaml)
  • High CVE: [GHSA redacted] (pnpm-lock.yaml)
  • High CVE: [GHSA redacted] (pnpm-lock.yaml)
  • High CVE: [GHSA redacted] (pnpm-lock.yaml)
  • High CVE: [GHSA redacted] (pnpm-lock.yaml)
  • High IaC: WD-COMPOSE-0002 (tools/docker-compose/docker-compose-applications.yml)
  • High: security finding (details withheld)
  • Low CVE: [GHSA redacted] (pnpm-lock.yaml)
  • Medium CVE: [GHSA redacted] (pnpm-lock.yaml)
  • Medium CVE: [GHSA redacted] (pnpm-lock.yaml)
  • Medium CVE: [GHSA redacted] (pnpm-lock.yaml)
  • Medium CVE: [GHSA redacted] (pnpm-lock.yaml)
  • Medium CVE: [GHSA redacted] (pnpm-lock.yaml)
  • No dependency advisory monitoring
  • stream-recovery.processStream (cognitive 47) (packages/rmu/src/stream-recovery.ts)
  • stream-recovery.processStream (cyclomatic 18) (packages/rmu/src/stream-recovery.ts)

Changes since last survey

  • 14 commits — 14 feature/other, 0 fixes

By area

  • (root) — 5 commits
  • packages/rmu — 4 commits
  • packages/command — 2 commits
  • packages/bootstrap — 1 commit
  • packages/query — 1 commit
  • tools/e2e-test — 1 commit

Notable commits

  • change: Disable Renovate bot by setting enabled to false
  • change: [codex] Renovate PRでフォーマット補正を走らせる (#823)
  • change: chore(deps): Update dependency @google-cloud/functions-framework to v5 (#819)
  • change: chore(deps): Update dependency @types/aws-lambda to v8.10.162 (#824)
  • change: chore(deps): Update dependency ts-jest to v29.4.12 (#815)
  • change: feat: adapt the read api to the ESA v5 read model
  • change: feat: adapt write api to ESA v5 envelope api (#832)
  • change: feat: add DLQ for payload decrypt failures and SQS notify transport (#839)
  • change: feat: add Lambda RMU startup resync and SQS recovery worker (#841)
  • change: feat: expand last_processed_sequence_number to BIGINT (T-9) (#843)
  • change: feat: implement rmu recovery with retry, dlq and resync (#837)
  • change: feat: switch js rmu to aggregate head streams (#834)
  • change: feat: update ESA to v5.2.0 and adapt 3-table layout
  • change: test: align localstack e2e with ESA v5 three-table setup (#835)

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

Survey your own repository

j5ik2o/cqrs-es-example-js 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 9 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 2ecafa5c95c5fcad8edb48fb8748cf97c77c31f4 — 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-bb0cb800cd0f.