Skip to content
CAI
Software that uses CAICheck a score

sinasamavati/leptus

55.3

Adequate · 13 November 2026

1.8k

lines of production code

Erlang

primary language

8

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Leptus is a REST framework for Erlang that provides a robust infrastructure for building HTTP services. It manages HTTP/HTTPS listeners, routes requests to handlers, and supports static file serving and cross-origin requests. The system includes a configurable logging mechanism for structured HTTP traffic analysis and a parse transform to simplify route definition.

Features

Add leptus\_logger header with log data record

Introduced the 'leptus\_logger' module by adding include/leptus\_logger.hrl, which defines a log\_data record for capturing request and response details such as timestamps, HTTP method, URI, headers, and status code, enabling structured logging of HTTP traffic.

include · medium confidence

Complete rewrite of the Leptus REST framework

The library has been completely rewritten to provide a more robust and feature-rich REST framework for Erlang. This major update introduces a new configuration layer that reads from \App/priv/leptus.config\ files, allowing for flexible handler and option setup. It adds support for serving static files via the \static\_dir\ option, implements a new logging system with customizable access and debug log handlers, and improves route handling by sorting dispatch rules for correct Cowboy integration. The API has been updated to include \start\_listener/2,3,4\ for managing HTTP/HTTPS listeners, \upgrade/0,1,2,3\ for hot-swapping handlers, and \running\_listeners/0\ for monitoring. Additionally, the framework now supports cross-domain requests (CORS), optional debug logging with colored console output, and a parse transform (\leptus\_pt\) that automatically generates route and method definitions from handler modules.

src · high confidence

Test coverage

Added comprehensive test suites for Leptus components; Added test fixtures for HTTP/1.1 and HTTP/2 handlers; Added test fixtures for the leptus\_pt parse transform.

Dependencies

Upgrade to Cowboy 2.4.0 and Jiffy 0.15.2

The project has been updated to use Cowboy 2.4.0 and Jiffy 0.15.2, replacing the previous versions (Cowboy 0.8.6). This upgrade brings compatibility with newer Erlang/OTP versions and improved HTTP handling capabilities.

(repo-wide) · 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 55 → 55 (+0.0)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 78 → 78 (+0.0)
  • Architecture 100 → 100 (+0.0)
  • Maturity 41 → 41 (+0.0)
  • Readiness 47 → 47 (+0.0)
  • Security 87 → 87 (+0.0)
  • Event Sourcing 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

sinasamavati/leptus 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 13 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 abe699b1075a4e92a80ccc47eb9d12a51d7fcd77 — the exact code this score is about.
  • Scored under rubric-2026.11.3 — 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.61+preprod-b8b1a43ae4c3.