Skip to content
CAI
Software that uses CAICheck a score

qcam/saxy

75.8

Strong · 15 November 2026

2.9k

lines of production code

Elixir

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Introduce XML encoder and builder protocol

Saxy now includes an XML encoder (Saxy.Encoder) that converts simple-form data structures back into XML strings, handling prolog generation, attribute escaping, and content serialization. Additionally, a new Saxy.Builder protocol allows users to derive automatic XML generation from Elixir structs, enabling seamless conversion of application data into XML content via the @derive macro.

lib/saxy · high confidence

Introduce simple form handler with CDATA support

A new handler module for the simple form parsing capability has been added, implementing the Saxy.Handler behaviour to convert XML streams into a nested tuple structure. This implementation specifically distinguishes CDATA sections as a separate event type, storing them as {:cdata, content} tuples within the element's content list, while standard character data is accumulated as strings.

_lib/saxy/simple\form · high confidence

New accumulating handler for stream transformations

Saxy now includes a new \Saxy.Handler.Accumulating\ module that collects SAX events into a list, designed to be used with stream transformations. This handler implements the \Saxy.Handler\ behaviour and allows users to easily accumulate parsed events for further processing or conversion.

lib · high confidence

Behavioural changes

1 commit (0 fixes) modifying bench

A change to existing behaviour in bench — 1 commit, 2 files: “Test Elixir 1.12 to 1.20 on OTP 24 to 29 (\#141)” (refs \#141). Also in this area: Added benchmarking suite for XML parsing and encoding.

bench · medium confidence · unverified

New optimized parser implementation with streaming support

The XML parser in lib/saxy/parser has been replaced with a new implementation that introduces a builder-based architecture for generating optimized parsing code. This change adds support for streaming XML parsing via a new lookahead macro and edge-ngram matching, allowing the parser to handle data chunks incrementally. It also includes improved error reporting through a dedicated ParseError struct and utility functions for encoding validation and character length computation, resulting in better performance and more robust handling of XML prologs and declarations.

lib/saxy/parser · high confidence

Removed default application configuration file

The default \config/config.exs\ file has been removed from the project. This file previously contained boilerplate comments and the \use Mix.Config\ directive but no active configuration settings. Its removal simplifies the project structure by eliminating unused configuration scaffolding, relying instead on other configuration mechanisms (such as \mix.exs\ or environment-specific files) for application setup.

config · high confidence

Update CHANGELOG and project configuration for v1.6.1

The CHANGELOG has been updated to document the v1.6.1 release, which addresses handling of UTF-8 characters split across chunks. Additionally, the project's Elixir formatter configuration (.formatter.exs) has been updated to include the :stream\_data dependency, set a line length of 130, and define local functions without parentheses, while the .gitignore file now excludes /tmp directories.

(repo-wide) · high confidence

Test coverage

Added test coverage for Saxy builder, encoder, partial parsing, and simple form; Added test support utilities and handler implementations; Added unit tests for XML element and prolog parsing; Expanded test coverage for XML parsing, streaming, and encoding.

Dependencies

Update minimum Elixir version to 1.12 and add development dependencies

The project now requires Elixir 1.12 or higher, raising the minimum version from 1.6. Additionally, the \mix.exs\ configuration has been updated to include \ex\_doc\ and \stream\_data\ as development dependencies, and the package metadata (description, maintainers, licenses, links) and documentation settings have been added to the project definition.

(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 76 → 76 (-0.0)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 98 → 98 (-0.3)
  • Architecture 100 → 100 (-0.1)
  • Maturity 66 → 66 (+0.0)
  • Readiness 68 → 68 (+0.0)
  • Security 100 → 100 (+0.0)
  • Performance 100 → 100 (+0.0)

Findings

  • No change — the same findings as the prior survey.

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

Survey your own repository

qcam/saxy 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 15 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 74a99c833a5cb747fce0937d35f722f0619dcced — the exact code this score is about.
  • Scored under rubric-2026.11.4 — 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.65+preprod-3c33c1882dc1.