Skip to content
CAI
Software that uses CAICheck a score

ale206/ModularNet

54.7

Adequate · 8 November 2026

3.6k

lines of production code

C#

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Initial release of ModularNet API with authentication and user management

The ModularNet API is introduced as a new .NET 9.0 service providing core user lifecycle and security capabilities. It features Firebase-based authentication (sign-up, sign-in, token verification, and logout) via the AuthController, alongside user management endpoints for registration, profile retrieval, and account deactivation in the UsersController. The API also includes email verification workflows, user settings management, and a secrets retrieval endpoint protected by Azure AD scopes. Operational visibility is supported by health check endpoints for database and cache connectivity, a dedicated logging controller, and middleware for Firebase token validation and user ID extraction.

ModularNet.Domain, src/ModularNet.Domain · high confidence

Behavioural changes

6 commits (0 fixes) modifying src/ModularNet.Business

A change to existing behaviour in src/ModularNet.Business — 6 commits, 29 files: “Mock firebase adminsdk and refactor some classes to avoid circular dependencies”; “Refactor DI registration - Create service registration extension methods per layer”; “Add Unit of Work pattern for Dapper transaction coordination (\#7)”; and 3 more (refs \#7).

src/ModularNet.Business · medium confidence · unverified

7 commits (0 fixes) modifying src/ModularNet.Infrastructure

A change to existing behaviour in src/ModularNet.Infrastructure — 7 commits, 31 files: “Mock firebase adminsdk and refactor some classes to avoid circular dependencies”; “Refactor Unit of Work to separate transaction controls from connection management”; “Refactor DI registration - Create service registration extension methods per layer”; and 4 more (refs \#7).

src/ModularNet.Infrastructure · medium confidence · unverified

Database schema cleanup and repository simplification

The \database\_schema.sql\ file has been added to define the \email\, \modular\_net\_logs\, and \user\ tables for the \modular\_net\ database. In the \ModularNet.Infrastructure\ layer, all SQL queries in the email, logs, and users repositories now explicitly qualify table names with the \modular\_net\ database prefix. Additionally, the \UsersRepository\ and its \IUsersRepository\ interface have been simplified by removing methods and columns related to KYC verification (\CheckIfKycVerified\, \UpdateDocumentExpirationAndCompleteProcess\), subscription passwords (\SetSubscriptionsPassword\), and user counting (\GetRegisteredUsersNumber\), along with their corresponding database columns (\is\_verified\_with\_kyc\, \document\_expires\_on\, \is\_subscriptions\_password\_set\).

database · high confidence

Service registration refactored into layer-specific extension methods

The application's dependency injection setup has been reorganized to improve modularity. Instead of a single monolithic registration method in Program.cs, service registrations are now split into dedicated extension methods per layer: AddApiServices, AddBusinessServices, and AddInfrastructureServices. This change moves the responsibility of registering specific services (such as TokenHelper in the API layer, various Managers in the Business layer, and Repositories/Connections in the Infrastructure layer) into their respective modules, while Program.cs now simply calls these layer-specific methods. Configuration is passed through to allow for future conditional registration logic. Also in this area: Refactor service registration and cache implementation to support modular architecture; Enable console logging in the API bootstrap logger; Initial release of ModularNet API with authentication and user management.

src/ModularNet.Api · high confidence

Test coverage

3 commits adding/updating tests in src/ModularNet.IntegrationTests; 6 commits adding/updating tests in src/ModularNet.UnitTests.

Dependencies

7 commits updating dependencies (7 manifests)

A dependency / build maintenance change in (dependencies) — 7 commits, 7 files: “Update to .NET 10”; “feat(tests): add template integration test examples and merge coverage in CI”; “feat(tests): replace custom integration test runner with WebApplicationFactory (resolves \#4)”; and 4 more (refs \#4).

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

Lenses

  • Code Health 59 → 60 (+0.9)
  • Architecture 82 → 82 (-0.3)
  • Maturity 74 → 77 (+2.7)
  • Readiness 25 → 40 (+15.5)
  • Security 65 → 64 (-0.3)
  • Performance 100 → 100 (+0.0)

Resolved (10)

  • High CVE: System.Security.Cryptography.Pkcs 9.0.4 (src/ModularNet.Api/ModularNet.Api.csproj)
  • High interface indirection
  • Mock framework: Moq
  • WriteOnlyPrivateField (src/ModularNet.IntegrationTests/Tests/AppSettingsManagerTests.cs)
  • XML-doc coverage: ModularNet.Api (src/ModularNet.Api/ModularNet.Api.csproj)
  • XML-doc coverage: ModularNet.Business (src/ModularNet.Business/ModularNet.Business.csproj)
  • XML-doc coverage: ModularNet.Domain (src/ModularNet.Domain/ModularNet.Domain.csproj)
  • XML-doc coverage: ModularNet.Infrastructure (src/ModularNet.Infrastructure/ModularNet.Infrastructure.csproj)
  • XML-doc coverage: ModularNet.Shared (src/ModularNet.Shared/ModularNet.Shared.csproj)
  • redundant comment (src/ModularNet.UnitTests/CacheManagerTests.cs)

New (21)

  • High CVE: System.Security.Cryptography.Xml 10.0.10
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • Medium CVE: MySqlConnector 2.3.5 (src/ModularNet.Infrastructure/ModularNet.Infrastructure.csproj)
  • Mock framework: Moq
  • Mock framework: Moq
  • Mock-dominated test: LoginTests (src/ModularNet.UnitTests/UsersManagerTests.cs)
  • No dependency advisory monitoring
  • PR-triggered workflow grants a write-scoped token (.github/workflows/unit-tests.yml)
  • doc comments repeat the names (src/ModularNet.Api/Controllers/UsersController.cs)
  • doc comments repeat the names (src/ModularNet.Business/Implementations/EncryptManager.cs)
  • doc comments repeat the names (src/ModularNet.Infrastructure/Implementations/UsersRepository.cs)
  • doc comments repeat the names (src/ModularNet.UnitTests/CacheManagerTests.cs)
  • redundant comment (src/ModularNet.Api/Controllers/AuthController.cs)
  • redundant comment (src/ModularNet.Business/Implementations/AppSettingsManager.cs)
  • redundant comment (src/ModularNet.Business/Implementations/EncryptManager.cs)
  • redundant comment (src/ModularNet.Business/Implementations/UsersManager.cs)
  • redundant comment (src/ModularNet.Business/Implementations/UsersSettingsManager.cs)
  • redundant comment (src/ModularNet.Business/Implementations/UsersSettingsManager.cs)
  • redundant comment (src/ModularNet.UnitTests/DomainEntitiesAndRequestsTests.cs)
  • …and 1 more

Changes since last survey

  • 14 commits — 13 feature/other, 1 fixes

By area

  • (root) — 4 commits
  • (repo) — 3 commits
  • src/ModularNet.Infrastructure — 3 commits
  • src/ModularNet.IntegrationTests — 2 commits
  • src/ModularNet.Api — 1 commit
  • src/ModularNet.UnitTests — 1 commit

Notable commits

  • fix: Fix parameter naming examples and exception handling in coding standards
  • change: Add GitHub Actions unit tests workflow and code coverage badge
  • change: Add Unit of Work pattern for Dapper transaction coordination (#7)
  • change: Add XERJ Corpus Hub contributor badge to README
  • change: Add coding-standards.md and simplify README.md
  • change: Merge pull request #10 from ale206/feature/issue-4-webapplicationfactory-integration-tests
  • change: Merge pull request #8 from ale206/docs/coding-standards-and-simplify-docs
  • change: Merge pull request #9 from ale206/feature/unit-of-work-pattern
  • change: Refactor Unit of Work to separate transaction controls from connection management
  • change: Rename connection and transaction variables to dbConnection and dbTransaction per coding conventions
  • change: Update all NuGet packages to latest stable versions
  • change: feat(tests): add template integration test examples and merge coverage in CI
  • change: feat(tests): replace custom integration test runner with WebApplicationFactory (resolves #4)
  • change: test: increase code coverage to 77% with unit tests across solution

API surface

  • Unchanged — 8 HTTP endpoints

Architecture

  • Unchanged — 3 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

ale206/ModularNet 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 162384fb9c4ca0dd6515686fa7c67c08ad31663e — 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.