Skip to content
CAI
Software that uses CAICheck a score

scala-hamsters/hamsters

60.1

Adequate · 6 November 2026

859

lines of production code

Scala

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Hamsters is a Scala 3 library providing core functional programming utilities, including typeclasses like Functor and Monad, along with tools for validation, retry logic, and monad transformers. It supports cross-compilation for JVM and Scala.js, offering features such as Cartesian operations, memoization, and error accumulation. The system includes a REPL script for experimentation and comprehensive test coverage to ensure the correctness of its algebraic structures and asynchronous helpers.

Features

Add interactive REPL script for Hamsters library

A new shell script (scripts/try-hamsters.sh) has been added to provide an interactive Read-Eval-Print Loop (REPL) environment for the Hamsters library. The script automatically installs the Coursier launcher if missing and launches Ammonite with the Hamsters library (version 3.0.0) and its key modules (EmptyOptionValues, FutureOps, Validation, Retry) pre-imported, allowing users to quickly experiment with the library's features.

scripts · high confidence

Added JVM-specific retry mechanism

A new \Retry\ utility has been added to the JVM module, providing a \withWait\ method that allows users to retry asynchronous operations with a specified number of maximum tries and a fixed delay between attempts. This feature enables robust error handling for transient failures by automatically re-executing a function upon failure, with a configurable callback for error reporting.

jvm/src/main · high confidence

Initial release of core functional programming utilities

This update introduces a comprehensive set of functional programming abstractions and utilities to the library. It adds typeclasses including Functor, Monad, Semigroup, and Monoid (with instances for common types like Int, Long, String, List, and Option), along with a Show typeclass for value formatting. New capabilities include a Validation module for accumulating errors across up to 22 inputs, Cartesian operations with mapN support for tuples up to arity 22, and Monad transformers (OptionT, TryT, EitherT) with specific Future wrappers. Additional features include Lens composition, Memoization (thread-safe and unsafe), NonEmptyList, Enumerables, Retry logic, FutureOps for squashing nested futures, and an EmptyOptionValues extension for handling empty options with Monoids.

shared/src/main · high confidence

Removals

Removal of legacy implicit conversions and validation helpers

The library has removed the \Implicits\ object, which previously provided \map\ and \flatMap\ extensions for \Either\, as well as the \Validation\ class and its companion object that handled lists of \Either\ results. These components are no longer available, meaning users can no longer use the previous implicit syntax for chaining \Either\ operations or the specific \Validation\ utility for aggregating successes and failures from multiple \Either\ values.

src/main · high confidence

Test coverage

Added comprehensive test coverage for core library components; Added tests for JVM retry logic; Removed obsolete test suites for Implicits, MonadTransformers, and Validation.

Dependencies

Migrate to Scala 3 and modernize build infrastructure

The project has upgraded its primary language version from Scala 2.11 to Scala 3.3.8 and restructured the build to support cross-compilation for both JVM and Scala.js platforms. This change updates test dependencies to newer versions (ScalaTest 3.2.19, ScalaMock 6.0.0, ScalaCheck 1.18.1) and replaces the manual versioning and publishing setup with sbt-dynver for automatic version derivation from git tags and sbt-ci-release for publishing to the Sonatype Central Portal.

(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 59 → 60 (+1.1)
  • 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 57 → 62 (+4.4)
  • Readiness 50 → 50 (+0.0)
  • Security 81 → 81 (+0.0)
  • Performance 100 → 100 (+0.0)

Resolved (1)

  • Off-boarding risk: anonymized user #1

New (1)

  • Off-boarding risk: anonymized user #1

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

Survey your own repository

scala-hamsters/hamsters 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 4f802920fb42ed09250b954e956e510017a52fee — 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-60d1b390edf0.