Skip to content
CAI
Software that uses CAICheck a score

ReactiveMongo/Play-ReactiveMongo

48.3

Weak · 6 November 2026

1.4k

lines of production code

Scala

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add Play 3.0 support for ReactiveMongo

This change introduces a new Play 3.0 module alongside the existing Play 2 module, enabling ReactiveMongo to function on Play 3.0. The Play 3.0 implementation adapts to the framework's migration from Akka to Pekko (evidenced by the switch to \org.apache.pekko.stream.Materializer\ and \reactivemongo.pekkostream\) and updates controller support classes to align with Play 3.0's API changes.

src/main/play-2/modules/reactivemongo, src/main/play-3.0/modules/reactivemongo · high confidence

Initial project setup and configuration scaffolding

This change establishes the foundational configuration for the Play-ReactiveMongo project. It introduces build and formatting tools including scalafmt (v3.11.5), scalafix, and sbt-dynver for dynamic versioning, alongside a Scala Steward configuration to manage dependency updates. The project documentation is updated with a new README.md and a corrected NOTICE.txt file that properly attributes ReactiveMongo support, while legacy files like README.txt are removed.

(repo-wide) · high confidence

Introduce DefaultReactiveMongoApi with structured configuration parsing

The repository now includes a new \DefaultReactiveMongoApi\ implementation that handles MongoDB connection lifecycle and configuration. This component parses MongoDB URIs from the Play configuration (supporting both \mongodb.uri\ and named database URIs), manages the connection via a shutdown hook to ensure clean driver closure, and exposes the database and GridFS instances. This change provides a concrete, configurable foundation for the ReactiveMongo API integration within the Play framework.

repository · high confidence

New API components for Play integration

This change introduces a new set of API components in the \play.modules.reactivemongo\ package to support Play 2.5+ dependency injection and form handling. It adds \ReactiveMongoApi\ and \ReactiveMongoModule\ to provide DI bindings for the MongoDB driver and database connections, including support for named databases via the \@NamedDatabase\ qualifier. It also introduces \Formatters\ for binding ReactiveMongo BSON types to Play forms, \PathBindables\ for handling BSON types in URL routes, and utility traits like \WithCollection\ and \CollectionResolution\ to simplify collection access in application components.

src/main/scala/play/modules/reactivemongo · high confidence

Removals

Removal of legacy AsyncMongo plugin and BSON helpers

The \MongoAsyncPlugin\, \MongoTemplate\, and \PlayBson\ components have been removed from the \play.modules.mongodb\ package. This eliminates the deprecated \org.asyncmongo\ driver integration and its associated BSON/JSON conversion implicits, requiring users to migrate to the updated ReactiveMongo-based implementation.

src/main/scala/play/modules/mongodb · high confidence

Removed Play 2 MongoDB Async sample application

The Play 2 MongoDB Async sample application submodule has been removed from the repository, eliminating this specific example from the available samples.

samples · high confidence

Behavioural changes

Add Play 2.6 compatibility support for ReactiveMongo

The Play 2.6 module now includes dedicated support files to ensure compatibility with the Play framework's controller and configuration systems. A new Config object provides helper methods for retrieving optional configuration values, while PlaySupport defines a type alias for the Play controller and adds a FileInfo extractor to handle multipart file uploads, enabling the ReactiveMongo module to function correctly within the Play 2.6 environment.

src/main/play-2.6/modules/reactivemongo · high confidence

Add Play 2.8 compatibility layer for ReactiveMongo

This change introduces a new compatibility module for Play 2.8, adding \Config.scala\ and \PlaySupport.scala\ to bridge ReactiveMongo with the Play 2.8 framework. The \Config\ object provides helper methods to retrieve optional configuration values (Configuration, String, Boolean) from the Play \Configuration\ API, while \PlaySupport\ defines a type alias for Play's \AbstractController\ and includes a \FileInfo\ extractor to handle multipart file uploads using Play 2.8's \Multipart.FileInfo\. This enables ReactiveMongo to function correctly within the Play 2.8 ecosystem.

src/main/play-2.8/modules/reactivemongo · high confidence

Added Play 2.9 compatibility layer for ReactiveMongo

This change introduces a new module under src/main/play-2.9/modules/reactivemongo to support Play Framework 2.9. It includes a Config object that provides helper methods for retrieving optional configuration values (Configuration, String, Boolean) and a PlaySupport object that defines a Controller type alias for Play 2.9's AbstractController and updates the FileInfo extractor to handle the new Multipart.FileInfo signature. These additions ensure the ReactiveMongo module functions correctly with the updated Play 2.9 API.

src/main/play-2.9/modules/reactivemongo · high confidence

Added Scala 2.13+ and Scala 3 compatibility shims

The library now supports Scala 2.13 and Scala 3 by introducing version-specific compatibility layers. For Scala 2.13+, the \Compat\ object uses standard \Either\ methods (\map\, \flatMap\), whereas for Scala 2.12 and earlier, it uses the deprecated \right.map\ and \right.flatMap\ syntax. Additionally, a Java implementation (\NamedDatabaseImpl\) is provided for Scala versions prior to 2.13 to work around annotation handling issues, ensuring consistent behavior across supported Scala versions.

src/main/scala-2.13+/play/modules/reactivemongo, src/main/scala-2.13-/play/modules/reactivemongo · high confidence

Added Scala 3-specific implementation for NamedDatabaseImpl

A new Scala 3 source file (src/main/scala-3/play/modules/reactivemongo/NamedDatabaseImpl.scala) has been added to support Scala 3 compilation. This file provides a Scala 3-compatible implementation of the NamedDatabaseImpl class, which extends the NamedDatabase annotation directly (unlike the Scala 2.13 version that extends the trait), ensuring the library can be built and used with Scala 3.

src/main/scala-2.13/play/modules/reactivemongo, src/main/scala-3/play/modules/reactivemongo · high confidence

Establishes CI pipeline for code validation, dependency installation, and publishing

Adds a new set of CI scripts to automate build preparation, code quality checks, and artifact publishing. The pipeline installs and configures OpenSSL and MongoDB (v3.6.6) as build dependencies, runs Scalafmt and Scalafix checks to enforce code style, and executes tests (excluding Scala 3-specific exclusions when applicable). Upon successful builds on the master branch with publish credentials, it publishes snapshots to Sonatype Nexus, supporting both standard and cross-compiled Scala versions.

_.ci\scripts · high confidence

Migrate build infrastructure to SBT 2.0 and modernize Scala/Play support

The project's build system has been significantly upgraded, moving from SBT 0.11.3 to SBT 2.0.10 and replacing legacy plugins (such as sbteclipse) with modern tooling including sbt-scalafmt, sbt-git, sbt-mima-plugin, sbt-release, sbt-dynver, and sbt-scalafix. This update introduces support for Scala 3 (specifically 3.3.8) alongside Scala 2.11, 2.12, and 2.13, and configures the build to target Play Framework versions ranging from 2.5.0 to 2.8.22. Additionally, the release process has been restructured to use branch-based workflows for versioning and publishing.

project · high confidence

Support for Scala 3 and removal of legacy JSON validation components

The library now supports Scala 3 by introducing version-specific compatibility modules for ReactiveMongo dependency injection (scala-2 vs scala-3) and a silencer annotation shim. As part of this migration, the legacy JSON validation and resource handling infrastructure—specifically the \JsValidation\, \Resource\, and \ResourceController\ classes—has been removed from the codebase.

src/main · high confidence

Updated Play Framework compatibility for configuration and controller support

The reactivemongo module has been updated to align with Play Framework API changes between versions 2.6 and 2.7. For Play 2.6 and earlier, configuration access uses direct getters (getString, getBoolean), while Play 2.7+ switches to optional getters (getOptional) to handle missing keys more safely. Additionally, the controller type alias in PlaySupport now references AbstractController for Play 2.7+, whereas Play 2.6 uses the standard Controller type. The FileInfo parser in Play 2.7 also accounts for an additional parameter in Multipart.FileInfo.

src/main/play-2.6-/modules/reactivemongo, src/main/play-2.7/modules/reactivemongo · high confidence

Test coverage

Added Play 2.9 test utilities; Added test configuration files for MongoDB URI parsing scenarios; Added test suite for Play integration and BSON formatters; Added test utilities for Play 2.7 integration; Added test utilities for Play 3.0 compatibility; Removed test configuration files for MongoDB plugin.

Dependencies

Major build system overhaul with Play 3.0 and Scala 3 support

The build configuration has been completely rewritten to support modern Play Framework versions (including Play 3.0) and Scala 3, replacing the legacy async MongoDB driver with ReactiveMongo. This update introduces conditional dependency management for Play 2.x versus Play 3.x (switching between Akka and Pekko streams), adds Silencer for warning suppression on non-Scala-3 builds, and updates test dependencies to Specs2 4.20.9/5.5.3 and JUnit 4.13.2.

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

Lenses

  • Code Health 75 → 75 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 46 → 46 (+0.0)
  • Readiness 60 → 59 (-1.5)
  • Security 49 → 38 (-11.6)
  • Performance 100 → 100 (+0.0)

Resolved (1)

  • Off-boarding risk: anonymized user #1

New (2)

  • Dependency hygiene PARTLY measured — sbt declarations read, dependency currency not (Maven Central unreachable)
  • Off-boarding risk: anonymized user #1

Changes since last survey

  • 1 commits — 1 feature/other, 0 fixes

By area

  • project/build.properties — 1 commit

Notable commits

  • change: Update sbt to 2.0.12 (#700)

Architecture

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

ReactiveMongo/Play-ReactiveMongo 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 9610d21ed2ce66ef5780e32a9daf8b7543cfe7f9 — 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.