DavidAlphaFox/aihtml
28.6
Weak · 15 November 2026
74.6k
lines of production code
Erlang
with TypeScript
4
measurements over time
What this system is
Features
Added configuration templates for release and development environments
New configuration files have been added to support the build and release process. A release configuration template (sys.config.src) and VM arguments template (vm.args.src) now allow environment variables (such as secret keys, ports, and database settings) to be substituted at boot time, enabling flexible deployment. Additionally, a dedicated development configuration (shell.config) has been introduced to support the rebar3 shell, providing sensible defaults for local testing without requiring the full release environment setup.
config · high confidence
Cowboy example app with demo site styling
The aihtml\_example application now includes a Cowboy dependency (version 2.13.0) and a new CSS file (example.css) that styles the demo site. This stylesheet imports the core aihtml CSS and adds specific styles for a hero section, component cards with hover effects, syntax-highlighted code blocks, and API documentation tables, including support for dark mode themes. Also in this area: 1 commit (0 fixes) modifying apps/aihtml\_example; 4 commits (0 fixes) modifying apps/aihtml\_example.
_apps/aihtml\example/assets · medium confidence · unverified
Expanded component library and build automation for aihtml CSS
The aihtml application now includes a significantly larger set of UI components, with new CSS stylesheets added for elements such as alerts, badges, breadcrumbs, buttons, calendars, cards, cascaders, charts, chips, color pickers, comboboxes, command palettes, datagrids, data tables, date pickers, dock layouts, docking windows, drag-and-drop interfaces, dropdown buttons, dropdown lists, empty states, form fields, form layouts, formatted inputs, Gantt charts, heatmap calendars, inputs, OTP fields, keyboard shortcuts, KPI cards, listboxes, list menus, loaders, markdown editors, and many more. Additionally, the CSS index file is now generated automatically by a script rather than being manually maintained, and specific components like markdown\_editor and markdown\_view have been integrated into the build.
apps/aihtml/priv/css/extra · high confidence
Initial release of aihtml with Apache-2.0 license
The repository is initialized with the aihtml library, a tool for generating HTML pages using Erlang functions that compile templates at build time and bundle a TypeScript-based browser runtime via Vite. The project includes a Cowboy demo application, comprehensive documentation in English and Chinese, and is released under the Apache-2.0 license.
(repo-wide) · high confidence
Introduces the aihtml CSS core library and component manifest
This change adds the foundational CSS assets for the aihtml library, including a main entry point (aihtml.css) that imports Tailwind CSS v4 and aggregates styles from the sigil design system under the 'ah-' prefix. It establishes a four-axis theming system (appearance, palette, typography, skin) and provides a central component manifest (components.css) that registers dozens of UI components, ranging from basic form controls and layouts to complex data grids, charts, and editors. Additionally, it includes specific overrides for the theme switcher to prevent style inheritance from the sigil sidebar and defines dark-mode accent tints to ensure color palettes render correctly on dark backgrounds.
apps/aihtml/priv/css · high confidence
New Cowboy HTTP endpoint for actions and push streams
This change introduces the \aihtml\_cowboy\ application, providing a Cowboy-based HTTP interface for the aihtml runtime. It exposes a POST endpoint (default \/aihtml/action\) to execute actions and return operations as JSON or NDJSON streams, and a GET endpoint (default \/aihtml/events\) to open Server-Sent Events (SSE) push streams for real-time updates. The implementation includes origin validation for security, supports configurable paths, and serves static assets (JS/CSS) by default. It depends on Cowboy 2.13.0 and integrates with the existing \aihtml\ and \aihtml\_push\ applications.
_apps/aihtml\cowboy · high confidence
New Mustache templates and fixtures for UI components
Added server-side Mustache templates and corresponding JSON fixtures for the calendar (list, month, timegrid), data grid (column menu, group row, pager), data table pager, datepicker (month), datetime input (calendar), dock layout (float, group, menu), and node graph (group, link, menu, minimap, node) components. These templates define the HTML structure and data bindings for rendering these UI elements, supporting features like pagination, grouping, docking, and node visualization.
apps/aihtml/templates · high confidence
New aihtml example application with component demos and live action page
The aihtml\_example application is introduced as a Cowboy-based demo site (v0.1.0) that showcases the aihtml component library. It provides a comprehensive set of interactive demos for UI components (such as buttons, calendars, charts, and forms) served via dedicated documentation pages, and includes a live action page demonstrating stateless server-driven interactions, real-time push updates, and data layer integration.
_apps/aihtml\example/src · high confidence
New build and development tooling scripts
The project now includes a suite of automation scripts to streamline the build, testing, and preview workflows. A CSS index generator (\gen-css-index.mjs\) and a content-hashing script (\hash-css.mjs\) manage stylesheet imports and caching. A facade generator (\gen-facade.escript\) automates the creation of Erlang wrappers and record headers from component modules. A TypeScript catalog generator (\gen-ts-catalog.escript\) ensures type safety between the server and browser. Shared template support is added via a JavaScript Mustache compiler (\mustache.mjs\) with spec tests, and a Markdown data generator (\gen-markdown-data.mjs\) aligns server-side parsing with the \markdown-it\ library. Development is supported by a preview group renderer (\preview-group.escript\), a static file server (\serve.mjs\), and screenshot automation (\screenshots.mjs\, \preview.mjs\) using Playwright. Finally, a comprehensive JavaScript test runner (\test-js.mjs\) executes Node-side checks, TypeScript type checks, and browser-based component tests.
scripts · high confidence
aihtml component library introduces new element records and facade imports
The aihtml library now provides a comprehensive set of UI components, defined by new Erlang record types in the include directory (e.g., \ah\_button\, \ah\_datagrid\, \ah\_calendar\) and exposed via a central \aihtml.hrl\ header. This header imports builder functions for standard HTML elements as well as generated imports for the new component modules, allowing pages to use markup-style calls like \ah\_div(\[ah\_button(...)\])\. The change establishes the foundational data structures and API surface for the library's component catalog.
apps/aihtml/src · high confidence
Behavioural changes
4 commits (0 fixes) modifying apps/aihtml
A change to existing behaviour in apps/aihtml — 4 commits, 43 files: “特性:日历按范围刷新、窗口标题设置与确认框选项”; “特性:confirm 改用 aihtml 自己的页面内确认框”; “特性:ah:event-click 带出被点日程那次的具体起止时间”; and 1 more. Also in this area: Static CSS assets now use content-based hashing for filenames.
_apps/aihtml/priv/static/css, apps/aihtml\example/priv · medium confidence · unverified
JavaScript component library rewritten in TypeScript with unified localization
The frontend component library in apps/aihtml/assets/js/components has been rewritten from JavaScript to TypeScript, introducing a consistent set of internal helper modules (\lib\\*) for shared logic across UI elements. This change standardizes how components handle state (via data-ah-value), accessibility, and interactions. Crucially, it implements comprehensive localization support: hardcoded text in components like datepickers, buttons, and charts is now pulled from a central translation table, and time/date formatting (such as 12-hour clocks and AM/PM indicators) adapts to the page's language. Users will see interface text and date formats automatically adjust to their selected language, and the underlying codebase is now type-safe.
apps/aihtml/assets/js/components · high confidence
Migrated JavaScript build to Vite with dynamic chunking
The static JavaScript assets in the aihtml app are now built using Vite instead of the previous single-file runtime approach. This change introduces a new manifest file and splits third-party libraries (such as canvg, dompurify, echarts, jspdf, and xlsx) into separate, lazily loaded vendor chunks. This allows the application to load only the necessary code on demand, reducing initial bundle size and improving load performance.
apps/aihtml/priv/static/js · high confidence
Ported Sigil UI component styles to the editor
The editor now includes the visual styles for the Sigil component library, covering base resets, dark/light/paper themes, and a comprehensive set of UI components such as buttons, cards, avatars, badges, and form controls. This change brings the editor's interface in line with the established Sigil design system.
apps/aihtml/priv/css/sigil · high confidence
aihtml client runtime rewritten in TypeScript with new component and protocol APIs
The aihtml client runtime has been rewritten in TypeScript, introducing a new \AH\ object (\core.ts\) that exposes APIs for registering component behaviors (\AH.register\), invoking methods (\AH.invoke\), and managing page lifecycle (\AH.mount\, \AH.destroy\, \AH.ready\). The runtime now uses a custom Stimulus schema (\data-ah\) and supports lazy-loading of component chunks. It introduces a new action protocol (\data-ah-on\) for server-side DOM updates and a new client-side operation protocol (\data-ah-on-client\) for immediate local updates. Additional features include a new floating popup utility (\AH.float\), improved theme switching (\AH.theme\), and i18n support (\AH.t\, \AH.format\). The runtime also handles fetch round-trips (\AH.fetch\) and push notifications (\AH.push\).
apps/aihtml/assets/js/runtime · high confidence
Test coverage
Added EUnit test suites for aihtml components and action system; Added JavaScript unit tests for aihtml UI components; Added Mustache specification test suite for the JavaScript template compiler; Added tests for the example site and Mnesia storage layer.
Dependencies
Added pre-built CSS asset and pinned beamai\_render dependency
Consumers who do not run their own Tailwind build can now use the pre-built stylesheet located at priv/static/css/aihtml-\<hash\>.css, which includes the library's prefabs and necessary utilities. Additionally, the app now depends on the beamai\_render library, pinned to a specific Git commit (528d36b) due to the absence of release tags.
apps/aihtml/assets · high confidence
Introduce Vite-based TypeScript build with Tailwind CSS v4 and modern libraries
The project now uses Vite to bundle a TypeScript browser runtime, replacing previous build methods. Tailwind CSS has been upgraded to version 4, and the build system includes scripts for CSS generation, hashing, and testing. Key dependencies added for the browser runtime include ProseMirror (for rich text editing), ECharts, jsPDF, and XLSX, while Stimulus is included for controller-based interactions.
(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
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 26 → 29 (+2.3)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 61 → 59 (-1.9)
- Architecture 90 → 90 (-0.1)
- Maturity 64 → 67 (+3.2)
- Readiness 26 → 36 (+9.4)
- Security 74 → 71 (-2.6)
- Event-Driven 10 → 10 (+0.0)
- Event Sourcing 100 → 100 (+0.0)
- Accessibility 31 → 33 (+2.3)
- Performance 85 → 85 (+0.0)
Resolved (6)
- Medium CVE: EEF-[CVE redacted] (rebar.lock)
- Medium: security finding (details withheld)
- No ADRs found
- mustache.tokenize (cognitive 26) (scripts/mustache.mjs)
- render-markdown.taskListRule (cognitive 46) (scripts/render-markdown.mjs)
- render-markdown.taskListRule (cyclomatic 24) (scripts/render-markdown.mjs)
New (87)
- Edited copies of one member (3 members, 12+ corresponding lines) (apps/aihtml/src/aihtml_gantt.erl)
- Edited copies of one member (3 members, 12+ corresponding lines) (apps/aihtml_example/src/aihtml_example_calendar_app.erl)
- Edited copies of one member (3 members, 15+ corresponding lines) (apps/aihtml/src/aihtml_checkbox.erl)
- Edited copies of one member (3 members, 16+ corresponding lines) (apps/aihtml/src/aihtml_input.erl)
- Edited copies of one member (3 members, 2+ corresponding lines) (apps/aihtml/src/aihtml_lib_chart.erl)
- Edited copies of one member (3 members, 2+ corresponding lines) (apps/aihtml/src/aihtml_lib_date.erl)
- Edited copies of one member (3 members, 2+ corresponding lines) (apps/aihtml/src/aihtml_lib_dock.erl)
- Edited copies of one member (3 members, 26+ corresponding lines) (apps/aihtml/src/aihtml_drawer.erl)
- Edited copies of one member (3 members, 3+ corresponding lines) (apps/aihtml/src/aihtml_activity_bar.erl)
- Edited copies of one member (3 members, 3+ corresponding lines) (apps/aihtml/src/aihtml_lib_form.erl)
- Edited copies of one member (3 members, 4+ corresponding lines) (apps/aihtml/src/aihtml_gantt.erl)
- Edited copies of one member (3 members, 5+ corresponding lines) (apps/aihtml/src/aihtml_dock_layout.erl)
- Edited copies of one member (3 members, 6+ corresponding lines) (apps/aihtml/src/aihtml_datagrid.erl)
- Edited copies of one member (3 members, 7+ corresponding lines) (apps/aihtml/src/aihtml_dock_layout.erl)
- Edited copies of one member (3 members, 8+ corresponding lines) (apps/aihtml/src/aihtml_markdown_editor.erl)
- Edited copies of one member (4 members, 2+ corresponding lines) (apps/aihtml/src/aihtml_gantt.erl)
- Edited copies of one member (4 members, 3+ corresponding lines) (apps/aihtml/src/aihtml_gantt.erl)
- Edited copies of one member (5 members, 1+ corresponding lines) (apps/aihtml/src/aihtml_lib_layout.erl)
- Edited copies of one member (5 members, 2+ corresponding lines) (apps/aihtml/src/aihtml_dropdownlist.erl)
- Edited copies of one member (5 members, 3+ corresponding lines) (apps/aihtml/src/aihtml_area_chart.erl)
- …and 67 more
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
DavidAlphaFox/aihtml 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 b4d3439f8298b3c3eeecf8f9218155dab79da09e — 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.65+preprod-3c33c1882dc1.