Skip to content
CAI
Software that uses CAICheck a score

mschuwalow/zio-todo-backend

51.3

Adequate · 6 November 2026

370

lines of production code

Scala

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a ZIO-based Todo-Backend API that manages the creation, retrieval, updating, and deletion of todo items via HTTP. It utilizes Doobie for database persistence with H2 and Flyway for schema management, while http4s handles the web server layer. The application is built with Scala 2.13 and SBT, featuring comprehensive test coverage for both the repository logic and the HTTP endpoints.

Behavioural changes

Adopts Scalafmt for code formatting and updates project configuration

The project has switched its code formatting tool from Scalastyle to Scalafmt (version 3.8.3), introducing a new .scalafmt.conf and .scalafix.conf to manage style rules and import organization. This change includes migrating the Scala dialect to 2.13 and updating the .gitignore to reflect modern build tool artifacts. Additionally, the README has been updated to clarify the project's identity as a ZIO-based Todo-Backend implementation and includes a CI badge.

(repo-wide) · high confidence

Initial database schema and logging configuration

The application now includes an initial database migration (V1\_\_InitialSetup.sql) that creates a TODOS table with ID, TITLE, COMPLETED, and ORDERING columns. Logging has been switched from log4j.properties to log4j2.xml, configuring console output for the com.schuwalow.todo packages at the INFO level. Additionally, application.conf has been expanded to define structured configuration for the API (port, base-url) and the database (H2 in-memory URL, user, driver), replacing the previous flat port and base-url settings.

src/main/resources · high confidence

Migrate to ZIO 2 and Doobie for database access

The application's core logic and data access layer have been rewritten to use ZIO 2 and Doobie. The previous repository implementation has been replaced with DoobieTodoRepository, which uses Doobie for SQL operations and HikariCP for connection pooling, managed via a new database configuration layer. The main entry point and API startup have been updated to use ZIO 2's runtime and configuration providers, and the HTTP routes have been refactored to align with the new ZIO 2 effects and Doobie-based repository.

src/main/scala/com/schuwalow/todo · high confidence

Removal of legacy Scala 2.12 ZIO and Cats Effect entry point

The application's main entry point and domain model definitions have been removed. This change eliminates the previous implementation which relied on the \scalaz-zio\ library (specifically \ZIO\ from \scalaz.zio\) and \cats-effect\ for runtime management, along with \http4s\ and \pureconfig\ for configuration and server setup. The deleted \Main.scala\ contained the logic for bootstrapping the HTTP server and dependency injection, while \domain.scala\ defined the core \TodoItem\ data structures. This cleanup prepares the codebase for the migration to Scala 2.13 and the switch to the native ZIO ecosystem.

src/main/scala/com/schuwalow/zio/todo · high confidence

Removal of legacy ZIO 1.x repository implementation

The \TodoRepository\ trait, its \InMemoryTodoRepository\ implementation, and the associated \package.scala\ delegation layer have been removed from the codebase. This change eliminates the legacy \scalaz.zio\-based repository code, which previously provided in-memory storage and access methods for todo items, indicating a migration away from the older ZIO 1.x API surface.

src/main/scala/com/schuwalow/zio/todo/repository · high confidence

Test coverage

Added test suite for TodoRepository and HTTP API; Removed legacy ScalaTest-based test suite; Updated test configuration resources.

Dependencies

Initial SBT build configuration and dependency management

The project build system has been established using SBT version 1.11.3, replacing any previous build setup. This change introduces a centralized dependency management file (Dependencies.scala) that defines the project's library versions, including ZIO 2.1.19, http4s 0.23.38, Doobie 1.0.0-RC10, Flyway 11.10.3, and Log4j 2.26.1. It also configures essential SBT plugins for code formatting (sbt-scalafmt 2.5.5), static analysis (sbt-scalafix 0.14.9), native packaging (sbt-native-packager 1.11.1), and version management (sbt-dynver 5.1.1). Additionally, compiler options are standardized to enforce strict warnings and enable specific language features.

project · high confidence

Migrate build system from Maven to sbt

The project has switched its build tool from Maven (pom.xml) to sbt (build.sbt). This migration updates the Scala version to 2.13.18, replaces the legacy ZIO 0.16 dependency with the modern ZIO ecosystem (including ZIO 1.x, ZIO-Logging, and ZIO-Test), and updates core libraries such as http4s to 0.21.x, doobie to 0.9.x, and flyway to 7.x. The new build configuration also integrates Docker packaging via the DockerPlugin, enabling the application to be containerized with a base image of eclipse-temurin:17-jre and exposing port 8080.

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

Lenses

  • Code Health 76 → 76 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 41 → 41 (+0.0)
  • Readiness 62 → 62 (-0.6)
  • Security 55 → 49 (-5.4)
  • Performance 100 → 100 (+0.0)

Resolved (11)

  • Documentation: no installation or build instructions (README.md)
  • Outdated: dev.zio:zio-config-magnolia_2.13
  • Outdated: dev.zio:zio-config-typesafe_2.13
  • Outdated: dev.zio:zio-interop-cats_2.13
  • Outdated: dev.zio:zio-logging-slf4j_2.13
  • Outdated: dev.zio:zio-logging_2.13
  • Outdated: dev.zio:zio_2.13
  • Outdated: org.flywaydb:flyway-core
  • Outdated: org.http4s:http4s-blaze-server_2.13
  • Outdated: org.http4s:http4s-circe_2.13
  • Outdated: org.http4s:http4s-dsl_2.13

New (1)

  • Dependency hygiene PARTLY measured — sbt declarations read, dependency currency not (Maven Central unreachable)

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

Survey your own repository

mschuwalow/zio-todo-backend 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 6 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 390a57e52d75ee17bf75ef8e518eddf88fb8cff0 — 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-410a2463fa58.