phcurado/zoi
68.7
Adequate · 15 November 2026
10.9k
lines of production code
Elixir
primary language
5
measurements over time
What this system is
Features
Added performance benchmarking suite for schema validation
A new benchmarking suite has been added to the \bench\ directory to measure the performance of Zoi schema validation against primitives, complex structures, and competing libraries like Ecto and NimbleOptions. This includes a README with instructions for running specific suites (such as \primitives\, \complex\, and \comparisons\) and a \run.exs\ script that utilizes the Benchee library to execute these tests, allowing users to profile parsing and constructor overhead.
bench · high confidence
Introduce Phoenix Forms integration and schema documentation generation
Zoi now includes \Zoi.Form\ and \Zoi.FormData\ to seamlessly integrate with Phoenix HTML forms, automatically handling coercion, empty values, and LiveView array normalization so schemas can be passed directly to \Phoenix.Component.to\_form/2\. Additionally, \Zoi.Describe\ allows users to automatically generate human-readable documentation strings for keyword, map, and struct schemas by leveraging type specifications and metadata like descriptions and defaults.
lib/zoi · high confidence
Introduce Zoi schema validation library and remove Xoi
The library now includes \Zoi\, a schema validation library for Elixir that allows defining schemas for various data types (strings, integers, booleans, maps, etc.) with built-in validations, coercion, refinements, and transforms. The previous \Xoi\ module has been removed.
lib · high confidence
Project renamed from Xoi to Zoi and initialized with Apache 2.0 license
The library has been renamed from Xoi to Zoi, updating the package name in dependencies, the gitignore patterns for build artifacts, and the documentation. The project is now licensed under the Apache License, Version 2.0, and includes a new CHANGELOG documenting the history up to version 0.18.11. Additionally, the repository is initialized with standard configuration files for the Credo linter, code coverage reporting, and the Mise tool for managing Elixir and Erlang versions.
(repo-wide) · high confidence
Test coverage
Added comprehensive test suite for Zoi validation library; Added test coverage for Zoi core modules.
Dependencies
Library renamed to Zoi with updated dependencies and documentation tooling
The Elixir library has been renamed from Xoi to Zoi (app: :zoi, module: Zoi.MixProject) and its minimum supported Elixir version lowered to 1.14. The dependency list now explicitly includes optional runtime dependencies on decimal (\~\> 2.0 or \~\> 3.0) and phoenix\_html (\~\> 2.14.2 or \~\> 3.0 or \~\> 4.1), alongside dev/test tools like credo (\~\> 1.7), dialyxir (\~\> 1.4), ex\_doc (\~\> 0.40), and excoveralls (\~\> 0.18). The project configuration also adds package metadata (maintainers, licenses, links), documentation settings (logo, extra sections for guides), and CLI environment preferences for coverage tools.
(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 68 → 69 (+0.6)
- Rubric changed (rubric-2026.11.1 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 98 → 94 (-4.2)
- Architecture 89 → 100 (+10.8)
- Maturity 54 → 54 (+0.0)
- Readiness 71 → 78 (+6.5)
- Security 83 → 75 (-7.7)
- Performance 95 → 95 (+0.0)
Resolved (1)
- Projects may be oversized for their cohesion
New (18)
- Edited copies of one member (3 members, 10+ corresponding lines) (lib/zoi/form_data.ex)
- Edited copies of one member (3 members, 11+ corresponding lines) (lib/zoi/error.ex)
- Edited copies of one member (3 members, 3+ corresponding lines) (lib/zoi/types/exclusive_union.ex)
- Edited copies of one member (3 members, 6+ corresponding lines) (lib/zoi/types/keyword.ex)
- Edited copies of one member (4 members, 1+ corresponding lines) (lib/zoi/types/date.ex)
- Edited copies of one member (4 members, 4+ corresponding lines) (lib/zoi/types/date.ex)
- Edited copies of one member (4 members, 4+ corresponding lines) (lib/zoi/types/date.ex)
- Edited copies of one member (6 members, 17+ corresponding lines) (lib/zoi/error.ex)
- Edited copies of one member (6 members, 26+ corresponding lines) (lib/zoi/types/date.ex)
- Edited copies of one member (6 members, 4+ corresponding lines) (lib/zoi/iso/datetime.ex)
- Edited copy of a member (12 corresponding lines) (lib/zoi/types/intersection.ex)
- Edited copy of a member (2 corresponding lines) (lib/zoi/types/array.ex)
- Edited copy of a member (21 corresponding lines) (lib/zoi/types/array.ex)
- Edited copy of a member (25 corresponding lines) (lib/zoi/types/keyword.ex)
- Edited copy of a member (5 corresponding lines) (lib/zoi/types/naive_datetime.ex)
- Edited copy of a member (6 corresponding lines) (lib/zoi/types/array.ex)
- Edited copy of a member (6 corresponding lines) (lib/zoi/types/keyword.ex)
- Edited copy of a member (7 corresponding lines) (lib/zoi/types/array.ex)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
phcurado/zoi 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 3cc358b8b920ec1aead4c0574f1adb6a89b970c7 — 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.73+preprod-52de90b74216.