sinasamavati/leptus
61.0
Adequate · 23 September 2026
1.8k
lines of production code
Erlang
primary language
5
measurements over time
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 watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.
Score
- CAI 49 → 61 (+11.8)
- Rubric changed (rubric-2026.08.19 → rubric-2026.09.15) — scores are not directly comparable.
Lenses
- Code Health 100 → 99 (-0.6)
- Architecture 100 → 100 (+0.0)
- Maturity 35 → 48 (+12.3)
- Readiness 26 → 47 (+21.3)
- Security 100 → 92 (-8.0)
- Event Sourcing 100 → 100 (+0.0)
Resolved (6)
- Coverage not included — suite not readable by the collector
- Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
- No exposed public API
- Test reliability not included
- complexity unreadable for .erl, .hrl — churn × complexity hotspots could not be measured
- dormant codebase — no living knowledge left to concentrate
New (7)
- Coverage not measured — no coverage collector is wired up
- Dependency hygiene PARTLY measured — rebar3 pinning read, dependency currency not (no rebar.lock-pinned Hex declaration to grade)
- Duplicated block (20–22 lines × 2) (src/leptus_handler.erl)
- High: security finding (details withheld)
- No dependency lockfile committed (rebar.config)
- TodoComment (src/leptus_handler.erl)
- leptus_handler.authorization (cognitive 16) (src/leptus_handler.erl)
Written by watchdog.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 23 September 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.09.15 — the same rubric and the same method as every other entry in this index.
- Measured by watchdog.canine.dev using codehealth-analyzer preprod-955b9cee9818.