Skip to content
CAI
Software that uses CAICheck a score

vmunier/sbt-web-scalajs

58.8

Adequate · 7 November 2026

251

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 an sbt plugin that integrates Scala.js with the sbt-web build toolchain, enabling JavaScript asset compilation and serving for various web servers. It provides generic support for frameworks like Play, Akka HTTP, and Spray, handling JavaScript pipeline stages, file watching, and source map generation. The plugin ensures compatibility with modern Scala versions and SBT 2, allowing developers to manage client-side assets independently of the server framework.

Removals

Removal of Play-specific Scala.js plugin

The \PlayScalaJS\ plugin, which previously provided tight integration between Play and Scala.js (including cross-project support, JS output copying, and source map handling), has been removed. This change reflects the plugin's decoupling from the Play framework to become a generic \sbt-web-scalajs\ plugin compatible with any sbt-web server, meaning users must now rely on the new generic plugin or other integrations for Scala.js support.

src/main/scala/playscalajs · high confidence

Behavioural changes

Introduce sbt-web integration for Scala.js with source map support

The plugin has been refactored to decouple Scala.js support from the Play framework, now providing a generic integration with any sbt-web server (such as Play, Akka HTTP, or Spray). This change introduces new auto-plugins (ScalaJSWeb and WebScalaJS) that handle JavaScript pipeline stages, file watching, and source map generation. Users benefit from improved source map handling that works across different Scala versions (including Scala 3) and ensures that Scala.js output files are correctly copied to the web assets directory for serving.

src/main/scala/webscalajs · high confidence

Plugin renamed to sbt-web-scalajs with expanded server support

The plugin has been renamed from sbt-play-scalajs to sbt-web-scalajs to reflect that it now supports any sbt-web server (such as Akka HTTP or Spray), not just Play Framework. The README has been updated to document the new setup for sbt 1.x and 2.x, including specific instructions for configuring the \scalaJSProjects\ and \pipelineStages\ settings, and clarifying that the plugin no longer depends on Play but relies on sbt-web and Scala.js. Additionally, a LICENSE file (Apache 2.0) and a .scalafmt.conf configuration file have been added to the project.

(repo-wide) · high confidence

Test coverage

Add scripted tests for Akka HTTP and Play integration with Scala.js

Added new scripted tests for the \sbt-web-scalajs\ plugin covering integration with Akka HTTP and Play Framework. The Akka HTTP test verifies that Scala and source map files are correctly included in the universal package under various \scalaJSStage\ and \sourceMappings\ configurations. The Play test validates that the server reloads only when server-side Scala files change (ignoring client-side changes) and confirms the correct presence of Scala and source map files in the packaged archive.

src/sbt-test · high confidence

Dependencies

Rename plugin to sbt-web-scalajs and upgrade to SBT 2 compatibility

The plugin has been renamed from sbt-play-scalajs to sbt-web-scalajs to reflect its decoupling from the Play framework, allowing it to integrate with any sbt-web server such as Akka HTTP or Spray. The build has been upgraded to support SBT 2 (via sbt2-compat) and Scala 3, with sbt-scalajs updated to 1.22.0 and sbt-web to 1.6.0-M4. Additionally, new scripted tests have been added for Akka HTTP and Play integrations to verify the plugin's functionality in these environments.

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

Lenses

  • Code Health 76 → 76 (+0.0)
  • Architecture 100 → 100 (+0.0)
  • Maturity 65 → 65 (+0.0)
  • Readiness 48 → 48 (+0.0)
  • Security 66 → 63 (-2.7)

Resolved (4)

  • Ambiguous or overlapping configuration keys. jsMappings (in ScalaJSWeb.autoImport) and scalaJSPipeline (in WebScalaJS.autoImport) likely refer to the same underlying concept of mapping source files to output artifacts. The split across two different autoImport objects (which are likely companion objects to the two plugin objects) creates confusion about which key to use.
  • Dependency hygiene PARTLY measured — sbt declarations read, no exact version to grade for currency
  • Duplicate method exposing project settings. Both objects provide a projectSettings method returning Seq[Setting[_]], which is the standard SBT pattern for plugin settings. Having two separate objects doing this implies redundant or conflicting configuration sources.
  • Duplicate plugin definition objects with identical intent and signatures. Both ScalaJSWeb and WebScalaJS expose a requires method/property returning Plugins, suggesting they are two different names for the same SBT plugin or provide the same configuration surface.

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

vmunier/sbt-web-scalajs 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 7 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 8704a50c4e7845a1c3e99e2ef0829b0984e76e73 — 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-5f8314471808.