# How XWUI counts components

Marketing numbers rot; generated numbers don't. Every count below is produced
by tooling from the source tree, and the machine-checkable artifacts are
public - recount them yourself.

## The numbers (generated 2026-09-02, v1.0.8 line)

| What | Count | Definition | Verify with |
|------|-------|------------|-------------|
| Components | 1,329 | Directories under `src/components/<tier>/` containing `<Name>/<Name>.ts` - one implementation per directory | [`__component_index__.json`](/__component_index__.json) totals per tier |
| Custom elements | 1,141 | Components that register a `<xwui-*>` tag via `createXWUIElement()` | [`custom-elements.json`](/custom-elements.json) module count |
| Registered tags | 1,400+ | Custom-element tag names including compatibility aliases (some elements register more than one tag) | the loader's routing map, shipped inside `/esm/loader.js` |
| Component schemas | 1,329 | Draft-07 JSON Schemas (`conf_comp` + `data` contract per component) | `/schemas/v1/index.json` |

The 188-entry difference between components and custom elements is the
industry tier's class-API modules: real components used via
`new XWUIName(container, data)` that deliberately do not register a tag.

## What counts as a component, honestly

A chart type like `xwui-chart-gantt` counts as one component: it has its own
directory, schema, examples and registration. Critics can reasonably call the
335-entry chart tier "variants of one chart engine" - architecturally they are
thin presets over a shared `XWUIChart` base, and we consider that a feature,
not padding: every preset carries its own typed schema an agent can validate
against. Judge breadth by the tier table, not the headline:

| Tier | Components | Nature |
|------|-----------|--------|
| basic (incl. input) | 391 | primitives, forms, display, navigation, layout |
| chart | 335 | chart types over one SVG engine |
| industry | 290 | vertical composites (CRM, HR, accounting, ...) |
| game | 166 | game UI widgets |
| power | 63 | app-level tools (editors, viewers, shells) |
| super | 57 | embeddable applications (spreadsheet, kanban, diagram, ...) |
| dashboard | 22 | dashboard shells and widgets |
| gis | 6 | maps and geo |
| enterprise | 1 | commercial-grade sellable surfaces, licensed at the Power rank: the data grid moved here from power on 2026-09-02; scheduler and tree grid follow |

"1,300+" on the homepage refers to the component count. When a claim needs the
custom-element count, we say 1,100+.
