Skip to content
CAI
Software that uses CAICheck a score

petalframework/petal_components

48.3

Weak · 13 November 2026

59.7k

lines of production code

Elixir

with JavaScript

8

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Added \`mix petal.gen.skill\_snapshot\` task to regenerate AI skill assets

A new Mix task, \mix petal.gen.skill\_snapshot\, has been added to automatically regenerate the \petal-design\ skill's schema snapshot (\schemas.json\) and component inventory (\components.md\) from the compiled library modules. This tool ensures that the AI assistant's knowledge base remains synchronized with the current public API by extracting component metadata, handling specific namespace requirements for the Chat family, and updating version markers in the skill's frontmatter and plugin manifest.

lib/mix · high confidence

Added automated release script for versioning and publishing

A new \priv/release.exs\ script has been added to automate the release process. This tool programmatically manages version bumps (major, minor, patch) in \mix.exs\ and \README.md\, appends entries to the changelog, runs tests to ensure stability, and handles git tagging and publishing to Hex.pm, streamlining the deployment workflow.

priv · high confidence

Added combobox harness and tap-debug playground pages

Two new static HTML pages have been added to the development environment to support testing and debugging of the Combobox component. The \combo-harness.html\ page provides a keyboard-focused test environment, including a form with a combobox and a native dialog containing another combobox, allowing developers to verify focus management, form submission, and keyboard navigation behaviors. The \tap-debug.html\ page offers a visual debugging tool for touch interactions, featuring multiple combobox variants (input-based and trigger-based) with a live event log that captures pointer, touch, and mouse events to help diagnose issues like the iOS chevron tap closure bug mentioned in the commit history.

dev/static · high confidence

Adds A11y Audit playground for component accessibility testing

Introduces a new \A11yLive\ LiveView in the web layer that serves as a development playground for auditing the accessibility of Petal Components. This view renders a comprehensive suite of UI elements—including forms, alerts, buttons, and icons—allowing developers to visually inspect and test component behavior against accessibility standards using the \:a11y\_audit\ tool.

_lib/petal\_components\web · high confidence

Data table gains in-memory filtering, sorting, and typed column filters

The data table now includes a built-in in-memory engine (\Engine.List\) that handles sorting, filtering, and pagination for plain lists of maps or structs without requiring a database. This change introduces a unified \State\ contract to manage table configuration (page, sort, filters) and round-trips it through URL parameters for shareable, bookmarkable states. Users can now apply column-specific filters via typed popover editors (supporting text, number, date, options, choice, and boolean shapes) and use a quick global search. The engine enforces specific semantics, such as case-insensitive text comparisons, nil values never matching filters, and inclusive 'between' ranges, providing a zero-setup path for small datasets while defining the interface for future database adapters.

_lib/petal\_components/data\table · high confidence

Initial repository scaffolding and development environment setup

The repository is initialized with the foundational structure for the Petal Components library, including the MIT license, contributing guidelines, and AI coding assistant rules. It establishes a standalone Phoenix LiveView playground for component development and testing, configured via a Dockerfile and Fly.io deployment settings. The setup pins specific tool versions (Erlang 26.2.1, Elixir 1.17.2) and configures the Elixir formatter to handle Phoenix LiveView macros, while also defining standard ignore patterns for build artifacts and dependencies.

(repo-wide) · high confidence

New petal.gen.skill\_snapshot task for AI component documentation

Added the \mix petal.gen.skill\_snapshot\ task to regenerate the \petal-design\ skill's schema snapshot and component inventory. This tool extracts component metadata from the compiled \PetalComponents\ modules and updates the \schemas.json\ and \components.md\ files used by the AI skill, ensuring the documentation stays in sync with the library's public API.

_lib/petal\components · high confidence

New standalone dev server with live theming and typography controls

A new standalone development server has been added to simplify contributor onboarding, featuring a playground interface that allows real-time customization of the design system. The server includes a color dial that maps primary and secondary themes (defaulting to a neutral monochrome palette) and a typography dial that applies curated font families—such as Inter, Geist, and Roboto—to body text, headings, and code surfaces via dynamically loaded variable fonts.

dev · high confidence

Showcase registry expands with new component examples

The showcase library adds new example modules for Accordion, Alert, AlertDialog, Aurora, Avatar, Badge, BorderBeam, BorderPlasma, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Carousel, and Chart. These files provide the concrete usage patterns, variant demonstrations, and composition examples that populate the component documentation.

_lib/petal\components/showcase · high confidence

Behavioural changes

Add Heroicons v1 icon set with SVG accessibility helpers

The icon library now includes the Heroicons v1 set (both Outline and Solid variants) as default components, replacing the previous Heroicons modules. These new components support dynamic icon selection via a \render/1\ function and include built-in accessibility support through an optional \title\ attribute, which is rendered using a new \PetalComponents.Svg\ helper module.

_lib/petal\components/icons · high confidence

Introduce LiveView.JS-only hooks and drop Alpine.js dependency

The JavaScript assets have been rewritten to remove the Alpine.js dependency, with all component logic now implemented as native LiveView.JS hooks registered via \PetalComponents\. This new \petal\_components.js\ module exports hooks such as \PetalChatStream\ for handling AI chat token streaming, \PetalChatComposer\ for managing input auto-growth and file paste events, and \PetalCopy\ for clipboard interactions, ensuring a consistent, framework-free interaction model for users.

assets/js · high confidence

New Tailwind v4 color tokens and default component styles

The assets directory now ships a new \default.css\ file that defines the library's design tokens using Tailwind v4's \@theme default\ syntax. This establishes a fresh color palette (blue primary, pink secondary, zinc grays) and provides base CSS classes for core components like buttons and containers. To help users migrate or customize, a \tailwind-gray.css\ file is also included, which restores Tailwind's original gray palette if the zinc-based default is overridden.

assets · high confidence

Standalone dev server and chat code highlighting

The application now includes a standalone development server to simplify contributor onboarding, configured via new environment-specific config files. In development, the Tailwind CSS compiler is set up to process styles for this server. Additionally, the MDex native library is configured to use the Lumis syntax highlighter, enabling code block highlighting in the dev playground's chat interface, with a fallback to plain text if the library is not present. For testing, Wallaby is configured to use the Chrome driver in headless mode with screenshots on failure.

config · high confidence

Unified component import and LiveView.JS-only default

The \PetalComponents\ module now provides a single \use PetalComponents\ macro that imports the entire core component set (including new additions like \ComboBox\, \Sortable\, \Resizable\, and \Chat\-related components) as unqualified function components, while explicitly excluding the \Chat\ family to avoid naming clashes. Additionally, the library has dropped Alpine.js support in favor of LiveView.JS; the \default\_js\_lib/0\ function is retained for backward compatibility but always returns "live\_view\_js".

lib · high confidence

Test coverage

Added JavaScript test suites for core UI components; Added tests for the in-memory data table engine and state management; Comprehensive test suite for Petal Components; New test infrastructure for component testing; Test infrastructure setup with optional accessibility testing.

Dependencies

Initial dependency manifests for Elixir and JavaScript tooling

The project now includes its primary dependency configuration files: mix.exs and mix.lock for the Elixir/Phoenix backend, and package.json and package-lock.json for the JavaScript frontend. The Elixir dependencies pin Phoenix to version 1.8, Phoenix LiveView to 1.2, and include optional libraries for accessibility auditing (a11y\_audit), code highlighting (lumis), and QR code generation (eqrcode). The JavaScript dependencies establish a test harness using Vitest and jsdom for the component hooks.

(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 45 → 48 (+3.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 38 → 44 (+5.1)
  • Architecture 88 → 100 (+12.2)
  • Maturity 61 → 66 (+5.2)
  • Readiness 62 → 62 (-0.0)
  • Security 77 → 79 (+2.0)
  • Accessibility 36 → 38 (+2.0)

Resolved (6)

  • No ADRs found
  • Off-boarding risk: anonymized user #1
  • Off-boarding risk: anonymized user #2
  • Projects may be oversized for their cohesion
  • Repeated repair: lib/petal_components/data_table/engine/list.ex (lib/petal_components/data_table/engine/list.ex)
  • Repeated repair: lib/petal_components/pagination.ex (lib/petal_components/pagination.ex)

New (22)

  • Edited copies of one member (3 members, 13+ corresponding lines) (dev.exs)
  • Edited copies of one member (3 members, 2+ corresponding lines) (dev.exs)
  • Edited copies of one member (5 members, 4+ corresponding lines) (dev.exs)
  • Edited copy of a member (10 corresponding lines) (dev.exs)
  • Edited copy of a member (10 corresponding lines) (dev.exs)
  • Edited copy of a member (11 corresponding lines) (dev.exs)
  • Edited copy of a member (12 corresponding lines) (dev.exs)
  • Edited copy of a member (18 corresponding lines) (dev.exs)
  • Edited copy of a member (22 corresponding lines) (lib/petal_components/modal.ex)
  • Edited copy of a member (3 corresponding lines) (dev.exs)
  • Edited copy of a member (5 corresponding lines) (lib/petal_components/date_picker.ex)
  • Edited copy of a member (9 corresponding lines) (lib/petal_components/sidebar.ex)
  • Medium CVE: EEF-[CVE redacted] (mix.lock)
  • Medium CVE: EEF-[CVE redacted] (mix.lock)
  • Medium CVE: EEF-[CVE redacted] (mix.lock)
  • No ADRs found (fly.toml)
  • Off-boarding risk: anonymized user #1
  • Off-boarding risk: anonymized user #2
  • Outdated: phoenix_html
  • redundant comment (assets/js/petal_components.js)
  • …and 2 more

Changes since last survey

  • 1 commits — 1 feature/other, 0 fixes

By area

  • (root) — 1 commit

Notable commits

  • change: docs: fix the install step's CSS paths and load @tailwindcss/forms (#724)

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

Survey your own repository

petalframework/petal_components 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 0e36faf0d6540dc7d86d765670a6d4a2f15eb721 — 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.57+preprod-8ebfb01cf4c0.