Build your own components

For a vendor who publishes controls or capabilities, and for someone building a host.

The built-in controls are one catalog among any number. A vendor publishes others, an app names them beside the core ones, and a host draws what it can. Here is how that works today, and what does not exist yet.

A catalog describes parts by contract

A catalog is a versioned JSON document, *.oadcatalog.json, that holds contracts. A contract describes one reusable part: a control, which a host draws, or a capability, typed access to the outside world. Anyone can publish a catalog: the standard defines how parts are described, not which parts exist. (In the specification: Catalogs.)

Controls and capabilities share one envelope, the contract shape. A contract declares:

A signature sidecar beside a catalog signs its digest. A host should verify the signatures of catalogs that ship executable implementations, and must treat executable code from an unsigned or untrusted catalog as untrusted (trust and distribution).

The example vendor catalog

The repository holds one, examples/catalogs/com.example.premium-charts.oadcatalog.json: a commercial chart catalog whose breakdownChart takes every prop of the core chart with the same meaning, and adds reference lines, value labels and an export to a file. Its id is com.example.premium-charts, at version 1.2.0. The vendor, its addresses and its module are fictional. These are the lines of the contract that say where the control comes from and on what terms, after its intent, interface, surfaces and accessibility:

Lines 118 to 140

"implementations": [
  {
    "adapter": "web",
    "module": "https://cdn.charts.example.com/oad/1.2.0/breakdown-chart.js",
    "digest": "sha256-9vV0lJ6mI2k1Jq8yTt9cT2Yb0m3cS0c8q9xvJmYbq3k"
  }
],
"requires": [
  { "contract": "core:files", "scopes": ["files.save"] }
],
"distribution": {
  "license": "LicenseRef-Example-Premium-Charts",
  "pricing": { "model": "paid", "terms": "https://charts.example.com/pricing" },
  "provenance": { "source": "https://charts.example.com/source-available/breakdown-chart", "build": "https://charts.example.com/builds/1.2.0" }
},
"conformance": [
  {
    "suite": "Open App Definition control conformance",
    "version": "0.2.0",
    "result": "partial",
    "report": "https://charts.example.com/conformance/1.2.0/report.json"
  }
]

Its signature is in the sidecar com.example.premium-charts.oadcatalog.sig.json beside it, an ed25519 signature over the catalog’s digest. The public key is pinned in examples/catalogs/keys.json under its keyId, and the repository’s tests verify both the digest and the signature.

{
  "$schema": "https://openappdefinition.org/schema/0.2/signature.schema.json",
  "oadSignature": "0.2",
  "digest": "sha256-vTUPT2z4cfGnrq48SavpWRXNrPEK9-qp6ivedMRluKM",
  "signatures": [
    {
      "keyId": "charts.example.com/2026-signing-1",
      "algorithm": "ed25519",
      "value": "Nxp2SR9WSK_eAjOTow6NJxB5TpgmoKxv33tn9uPgoXH9Hm38TR5FW6PlKl-6ebG7svMR0uUfpg8B7MExUEVBBA",
      "signedAt": "2026-11-14T02:05:16Z",
      "signer": "com.example.premium-charts"
    }
  ]
}

In an app, with a fallback

Support plus is the support dashboard of the samples with that chart on its Overview. Its definition, examples/support-dashboard-premium/support-dashboard-premium.oad.json, names the catalog in uses, and gives the chart node a fallback: the core chart, with the same data and the same handler. The node, from the vendor’s control to the end of its fallback:

Lines 491 to 535

"control": "charts:breakdownChart",
"id": "byPriority",
"props": {
  "kind": "bar",
  "label": "Open tickets by priority",
  "items": "=state.priorityChart",
  "category": "label",
  "series": [
    { "field": "waitingOnUs", "label": "Waiting on us", "color": "category1" },
    { "field": "waitingOnCustomer", "label": "Waiting on the customer", "color": "category2" }
  ],
  "stacked": true,
  "referenceLines": [{"value": 5, "label": "Target: no more than 5 open in any priority", "tone": "warning"}],
  "showValues": true,
  "exportable": "=capabilities.files.available"
},
"on": {
  "select": [
    { "run": "filterTickets", "with": { "priority": "=event.item.priority", "status": "active" } },
    { "navigate": "back" },
    { "navigate": "home" }
  ]
},
"fallback": {
  "control": "core:chart",
  "id": "byPriorityBasic",
  "props": {
    "kind": "bar",
    "label": "Open tickets by priority",
    "items": "=state.priorityChart",
    "category": "label",
    "series": [
      { "field": "waitingOnUs", "label": "Waiting on us", "color": "category1" },
      { "field": "waitingOnCustomer", "label": "Waiting on the customer", "color": "category2" }
    ],
    "stacked": true
  },
  "on": {
    "select": [
      { "run": "filterTickets", "with": { "priority": "=event.item.priority", "status": "active" } },
      { "navigate": "back" },
      { "navigate": "home" }
    ]
  }
}

A host that cannot draw a control draws the node’s fallback; without one, the control the contract names in degradeTo; without that, a placeholder with the node’s accessible label. The app still loads. (In the specification: Resolution and graceful degradation.)

The reference host draws no control of another catalog, so on Overview it draws the fallback: a stacked bar chart, “Open tickets by priority”, with the series “Waiting on us” and “Waiting on the customer”, where picking a bar lists those tickets. What only the vendor’s chart would add is not there: the target line, the value labels and the export button.

Support plus on Overview: the chart is drawn by the fallback, the core chart.Support plus on Overview: the chart is drawn by the fallback, the core chart.
Support plus on Overview, in the reference host. Open it in the playground, choose Overview, and see the fallback beside the document that names it.

Adding a renderer to a host

Someone building a host on the reference implementation adds a renderer in code. A renderer draws one control: it is a function from a render context to the element it draws, with update, called for every tree that holds the node, and dispose. The host gives it to mount under the control’s full name, the catalog’s id and the contract’s name. The example in packages/web/README.md:

import type { ControlRenderer } from '@openappdefinition/web';

const gauge: ControlRenderer = (ctx) => {
  const value = ctx.e.h('span', { class: 'oad-figure' });
  const element = ctx.e.h('div', { attrs: { role: 'meter' } }, value);
  element.addEventListener('click', () => void ctx.event('press', {}));
  return {
    element,
    update(node) {
      value.textContent = ctx.format.number(Number(node.props['value']), 'percent');
    },
    dispose() {},
  };
};
mount(session, root, { renderers: { 'com.example.gauges:gauge': gauge } });

A renderer creates elements only with the element helper of its context, opens no element on the top layer, and treats every value in the node as untrusted text. The package’s webControls answers full for the core controls it draws and none for everything else; given to the runtime and the presenter, it is what sends a control of another catalog to its fallback.

What does not exist yet

The reference host does not load a vendor’s code from a catalog’s implementations. A catalog may name a module with its digest, as the example does, but the host fetches nothing: it draws the controls it has renderers for, and the fallback for the rest.

Loading a vendor’s module is planned as a piece designed on its own, with isolation for the vendor’s code and a permission for it. It has no date. Until then, a control of another catalog reaches a person through a host that brings its own renderer, or as its fallback.

Every built-in control, with its props, events and slots: the core catalog. The whole of catalogs, contracts and design systems: Catalogs and Contracts.