Skip to content
CAI
Software that uses CAICheck a score

witchcrafters/witchcraft

56.3

Weak · 23 September 2026

7.4k

lines of production code

Elixir

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is an Elixir library named Witchcraft that provides a comprehensive set of functional programming abstractions, including type classes like Functor, Monad, and Applicative. It offers a unified import interface for these components and includes a robust test suite to verify their behavior. The project is supported by standard tooling, benchmarking suites for performance profiling, and formal brand assets.

Features

Add benchmark suites for functional programming abstractions

Added new benchmark files in the \bench\ directory to measure the performance of the \Witchcraft\ library's functional programming abstractions. This includes benchmarks for Applicative, Apply, Arrow, Bifunctor, Category, Chain, Comonad, Extend, Foldable, and Functor, each tested against Function, List, and Tuple data types. The suite covers standard operations like \map\, \lift\, \fold\, and \flat\_map\, as well as async and curried variants, providing a comprehensive performance profile for these core components.

bench · high confidence

Add functional programming type classes and protocols to Witchcraft

The library introduces a comprehensive set of functional programming abstractions, including Functor, Apply, Applicative, Chain (FlatMap), Monad, Comonad, Extend, Bifunctor, Arrow, Category, Semigroupoid, Semigroup, Monoid, and Foldable. These new modules provide protocols for mapping, applying functions in context, chaining effects, and folding data structures, enabling users to write more expressive and composable code using these functional programming patterns.

lib/witchcraft · high confidence

Added print-ready AI assets for the WC icon and wordmark

New Adobe Illustrator (.ai) files for the WC icon and wordmark have been added to the brand assets. These files are optimized for print production, containing CMYK color profiles and print-specific metadata, ensuring high-quality output for physical branding materials.

brand · high confidence

Adds project configuration, tooling, and governance files

The project now includes a Credo configuration (.credo.exs) to manage code style and linting rules, a .formatter.exs for Elixir code formatting, and a .tool-versions file to pin specific Erlang (24.2) and Elixir (1.13.2) versions. Additionally, the repository has been updated with a .gitignore to exclude build artifacts and generated files, a shell.nix for reproducible development environments, and new governance documents including a Code of Conduct and Contributing guidelines.

(repo-wide) · high confidence

Introduce top-level Witchcraft module for unified imports

A new top-level \Witchcraft\ module has been added to the library. It provides a convenient \use\ macro that recursively imports all functions from the library's submodules, including \Witchcraft.Arrow\, \Witchcraft.Monoid\, \Witchcraft.Bifunctor\, \Witchcraft.Traversable\, \Witchcraft.Monad\, and \Witchcraft.Comonad\. Users can now easily import the entire library or selectively exclude functions (e.g., \right\_fold\) or prevent overriding \Kernel\ functions via options passed to \use\.

lib · high confidence

Test coverage

Added tests for Witchcraft type classes and do notation

Added new test files to the project: do\_notation\_test.exs, witchcraft\_test.exs, and test\_helper.exs. The do\_notation\_test.exs file contains 11 tests verifying the behavior of the chain/do notation syntax, including single/multiple lines, variable binding, recursive draws, and destructuring. The witchcraft\_test.exs file adds doctests for a wide range of type classes including Functor, Applicative, Monad, and others, ensuring their documentation examples pass.

test · high confidence

Dependencies

Update project dependencies and lockfile

The project's dependency manifest (mix.exs) and lockfile (mix.lock) have been updated. Key version bumps include ex\_doc from 0.23.0 to 0.26.0, credo from 1.5.5 to 1.6.2, and quark from 2.3.1 to 2.3.2. Other dependencies such as earmark, type\_class, and operator have also been updated to their latest compatible versions.

(dependencies) · medium 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 51 → 56 (+4.9)
  • Rubric changed (rubric-2026.08.19 → rubric-2026.09.15) — scores are not directly comparable.

Lenses

  • Code Health 100 (new)
  • Architecture 100 → 100 (+0.0)
  • Maturity 34 → 34 (+0.0)
  • Readiness 50 → 54 (+3.9)
  • Security 86 → 98 (+12.4)

Resolved (9)

  • Coverage not included — suite not readable by the collector
  • Dependency hygiene not measured — no supported dependency manifest was read
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • Medium CVE: EEF-[CVE redacted] (mix.lock)
  • No exposed public API
  • Test reliability not included
  • complexity unreadable for .ex, .exs — churn × complexity hotspots could not be measured
  • dormant codebase — no living knowledge left to concentrate

New (14)

  • Documentation: no installation or build instructions (README.md)
  • Documentation: no usage examples (README.md)
  • Duplicated block (7 lines × 3) (bench/witchcraft/applicative/function_bench.exs)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • Medium CVE: EEF-[CVE redacted] (mix.lock)
  • Medium: security finding (details withheld)
  • No dependency advisory monitoring
  • Outdated: credo
  • Outdated: dialyxir
  • Outdated: ex_doc
  • Outdated: inch_ex
  • Retired release: earmark
  • Workflow token permissions not restricted

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

Survey your own repository

witchcrafters/witchcraft 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 6c61c3ecd5b431c52e8b60aafb05596d9182205e — 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.