Skip to main content

OpenUI Specification

This repository contains a technology-independent specification for a Web UI framework. It also includes an Angular TypeScript generator that applies a UI description authored against the spec to an existing Angular workspace. The goal is to use the specification as the basis for a standard.

Developer docs

Contributor and developer entry points for this repository:

  • Contributing guide — repository map, local setup and validation.
  • Releasing — version rules, release validation and publishing.
  • Requirements — what the solution must provide.
  • Changelog — release notes, breaking changes, and upgrade guidance.
  • AGENTS.md — guidance for AI coding assistants.

OpenUI JSON packages

Both implementations bundle spec/openui.schema.json and spec/openui.json, and parse, model and validate documents with the same API and the same diagnostics. Their grammar stage validates decoded values against the bundled JSON Schema; JSON decoding supplies the syntax and duplicate-member diagnostics the schema cannot observe. Validation runs the four stages of the conformance suite: grammar, document (globally unique ids and the spec version), catalog (every type is a known object type) and contract (every attribute value fits its declared value type).

Python

The openui-spec package requires Python 3.12 or newer and installs two command-line tools:

  • openui_spec validates and edits documents with validate, add, remove, and modify commands.
  • compare_openui_spec structurally compares two documents and emits a deterministic JSON changelog.
python -m pip install openui-spec
openui_spec validate --input document.json
openui_spec add --input document.json --parent root --object '{"id":"newTable","type":"Table"}'
compare_openui_spec reference.json updated.json --output changelog.json

The parse, model and validate API is the bin.openui_document module (parse, validate, validate_text, Document, Element, Attribute, Diagnostic).

The comparison API is openui_spec.compare(reference, new), which returns the same changelog as compare_openui_spec; its output contract is pinned by the conformance suite's comparison cases.

TypeScript and Node.js

The @shlomoa/openui-spec package provides the typed OpenUiJson document API, the equivalent ng-openui-spec editing CLI, and the same parse, model and validate API as the Python package (parse, validate, validateText, Document, Element, Attribute, Diagnostic).

npm install @shlomoa/openui-spec
import { OpenUiJson } from "@shlomoa/openui-spec";

const document = OpenUiJson.load("input.json");
document.validate();
document.add("root", { id: "newTable", type: "Table" });
document.updateAttributes("newTable", { title: "Updated" });
document.save("output.json");
ng-openui-spec validate --input document.json

Essentials

  • An OpenUI document is a tree with a root id of root; every node has a unique camelCase id and an exact, case-sensitive catalog type.
  • Put non-hierarchical values in attrs and nested objects in children. An attribute key names its category, uses.<name>, produces.<name> or behaves.<name>, and its value is typed; see attributes and value types.
  • Editing commands revalidate the result and update --input in place. Pass --output to preserve the source document.
  • Values accepted by --object and --attrs can be inline JSON or paths to JSON files.

Documentation

Metadata

Release files for openui-spec 0.15.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openui-spec 0.15.1
File Size Uploaded Provenance Actions
openui_spec-0.15.1.tar.gz 204.8 kB With provenance Details for openui_spec-0.15.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openui-spec 0.15.1
File Interpreter ABI Platform Actions
openui_spec-0.15.1-py3-none-any.whl Python 3 none any Details for openui_spec-0.15.1-py3-none-any.whl

Total release size: 399.6 kB

Release files / openui_spec-0.15.1.tar.gz

Download URL openui_spec-0.15.1.tar.gz
Size 204.8 kB
Tags Source
SHA-256 checksum
How to use checksums
58e0553f2249928f2e769ef8b9be1669bd5400adf4e2a1fb127c010c6da8d357
BLAKE2b-256 checksum
How to use checksums
9bfdfd5c95ae57be278022079b9bdfc89accb7da0cc440be7477357558ca6ef5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / openui_spec-0.15.1-py3-none-any.whl

Download URL openui_spec-0.15.1-py3-none-any.whl
Size 194.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
371f5ed17e189fef6cffaf5891b49255f6de7f182ab02f2a35d9c495f23311ae
BLAKE2b-256 checksum
How to use checksums
a09f9361b37e0a11d05e4a0f7b0e2cd57a721b1e47f2ef491982bc4485270da3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for openui-spec 0.15.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for openui_spec-0.15.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page