Scan your whole stack
From OX Research Newsroom
Are you using @a2ui/web_core?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.17.0
@a2ui/web_core was last scanned on 1 Dec 2026 at version 0.17.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.17.0 LATEST | 1 Dec 2026 | No rules fired |
| 0.16.1 | 23 Nov 2026 | No rules fired |
| 0.16.0 | 23 Nov 2026 | No rules fired |
| 0.15.0 | 2 Nov 2026 | Not shown |
| 0.14.0 | 17 Oct 2026 | Not shown |
Findings for v0.17.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.17.0; other versions have their own rules, not their own score.
0 CRITICAL 0 HIGH 1 MEDIUM 0 LOW
The publisher’s own README, as collected from the registry.
The @a2ui/web_core package provides state management, protocol parsing, and schema generation for the A2UI framework. It is framework-agnostic and provides the foundational engine for renderer packages such as Angular, React, and Lit.
@preact/signals-core.Rendering is driven by a SurfaceGroupModel and its constituent SurfaceModel instances, with DataModel managing reactive state, DataContext providing expression evaluation, and MessageProcessor validating and applying incoming protocol messages.
Pass outboundListener with unifiedOutbound: true to route all renderer-to-agent wire messages (actions, processing errors, callAgentFunction requests, and rendererFunctionResponse replies) through a single callback:
import {MessageProcessor} from '@a2ui/web_core';
const processor = new MessageProcessor(catalogs, undefined, {
outboundListener: send,
unifiedOutbound: true,
});
Protocol message schemas, common types, and catalog definitions are generated directly from the JSON schemas in the specification/ directory.
To regenerate all Zod schemas and catalog APIs:
# Generate all protocol Zod schemas and versioned Basic Catalog APIs
yarn generate-zod-schemas
# Or run individual version generators directly
node src/v0_9/scripts/generate-catalog.mjs
node src/v1_0/scripts/generate-catalog.mjs
The code generator uses Schema Flattening to remain version-, catalog-, and type-agnostic. Schema files adhere to the following structure:
catalog.json)components: Maps component names to JSON schema objects.functions: Maps function names to JSON schema objects.catalog.discriminator.propertyName (defaults to "component")."id" are omitted from generated property schemas as they are handled by the runtime component envelope.allOf to reference common envelopes (such as ComponentCommon or CatalogComponentCommon). The generator recursively resolves $ref pointers and merges allOf branches into a flat property bag.returnType (e.g. "string", "number", "boolean", "validationResult") at the root level and define arguments inside an args or parameters object property.common_types.json)$defs Scope:$defs. Definition names are not hardcoded; any definition present in $defs is resolved dynamically when referenced.$defs/<DefName>, the generator maps it to <DefName>Schema and attaches a .describe('REF:#/$defs/<DefName>|<description>') annotation.generateValidationSchema inspects these markers to emit $ref pointers and tree-shake unused $defs definitions.$defs reference targets or descriptions indicate a child component relationship (such as references to ComponentId, Child, or ChildList).A Catalog has three serialization entry points:
Catalog.fromJson(json, protocolVersion?, catalogId?) loads a catalog document into the catalog's model. Each entry is a JsonComponentApi or JsonFunctionApi whose model is its JSON Schema definition as written (jsonSchema); its Zod schema is derived from the definition on first use. The catalog keeps the document-level fields (metadata, named $defs, other top-level keys). protocolVersion, when given, takes precedence over the version the document declares and selects the loading rules, while toJson still writes the document's own protocolVersion; without it the document's version applies, then DEFAULT_PROTOCOL_VERSION. catalogId replaces the document's own ID.catalog.toJson() assembles the unbundled catalog document from the model, computing the anyComponent and anyFunction unions. A catalog loaded with fromJson returns its document unchanged (minus any entries omitted from the document's anyComponent.oneOf or anyFunction.oneOf unions, which fromJson filters out on load). An entry defined in code whose Zod schema is annotated with spec() has its definition computed from the model in the layout of the catalog's protocol version; any other entry defined in code is generated from its Zod schema. The result is computed once per catalog; each call returns a fresh copy.catalog.validationSchema is the self-contained schema used to validate payloads: common types and the catalog's own $defs are bundled into $defs and every $ref is local. It is computed once per catalog; each read returns a fresh copy.import {Catalog} from '@a2ui/web_core';
const catalog = Catalog.fromJson(document);
const unchanged = catalog.toJson(); // deep-equals document
const schema = catalog.validationSchema; // bundled JSON Schema
The Catalog constructor takes a CatalogOptions object as its fifth argument, with the themeSchema, the document-level fields (instructions, schemaUri, schemaId, title, description, declaredProtocolVersion, declaresCatalogId, declaresComponents, functionsLayout, unions, defs, extensionFields) that toJson emits, and, for a catalog defined in code, commonTypesUri, themeLocation and defModels. catalog.withEntries(components, functions) returns a catalog with the same fields and other entries, as catalog transformers need.
catalog.derive(options) returns a new catalog under its own id, built from entries of catalog and new ones. In components and functions, a name keeps the entry of that name and an object adds an entry. The new catalog does not keep the source's $id, title, description or instructions, since the instructions of the basic catalog, for example, name its id in their examples:
const chatCatalog = basicCatalog.derive({
catalogId: 'https://example.com/catalogs/chat.json',
components: ['Text', 'Image', 'Row', 'Column', 'Button', carousel],
functions: ['openUrl'],
instructions,
});
spec(schema, annotation) returns a copy of a Zod schema that records what a catalog document writes about it beyond the schema itself, without changing validation: mixins (the common types, such as 'ComponentCommon', and the specDef() models a component's definition composes with allOf), closure (additionalProperties or unevaluatedProperties), required (the order of the required list), allOf (schemas that follow the schema's own, such as a format rule) and keywords (such as format). specDef(name, schema) names a model that the document declares under $defs. The descriptions come from .describe(), and common types references from REF:#/$defs/<Name> description markers.
import {Catalog, spec, specDef} from '@a2ui/web_core/catalog';
import {z} from 'zod';
const Common = specDef('Common', z.object({weight: z.number().optional()}));
const Badge = {
name: 'Badge',
schema: spec(
z
.object({...Common.shape, label: z.string()})
.describe('A badge.')
.strict(),
{mixins: ['ComponentCommon', Common]},
),
};
// Badge's definition composes ComponentCommon and #/$defs/Common with allOf,
// and $defs.Common is computed from the Common model.
const document = new Catalog('https://example.com/badges', '0.9', [Badge]).toJson();
The built-in basic catalogs are built this way. Their components and functions are Zod models generated from the published catalog documents by scripts/generate-catalog-schemas.mjs (v0.9 and v1) and src/v0_8/scripts/generate-catalog.mjs (v0.8), which run as part of yarn generate-zod-schemas. For every schema node, the generator predicts the JSON Schema that toJson derives from the Zod code it emits, and annotates the node with the difference from the published schema. toJson of each basic catalog computes its published document from the models; no copy of the document is kept in the package.
The package uses wireit for build orchestration:
yarn build
Run unit tests:
yarn test
Run conformance test suite:
node tests/conformance/conformance_test.mjs
Run the timing cases of conformance/core/message_processor_scaling.yaml, which check that processing a surface sent in many small messages takes time in proportion to its size. Times depend on the machine and its load, so yarn test leaves these cases out:
yarn test:timing
yarn format
yarn lint Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.