Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@kimen/emitter

Latest version: v0.5.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: marcelagotta
1 Stars
0 Forks
6 Versions
527 Downloads
TypeScript Repo language

Scan summary

@kimen/emitter was last scanned on 27 Nov 2026 at version 0.5.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest 5 were published within 3 days (25–27 Nov 2026).
  • Findings: No rules fired in version 0.5.0.
  • Downloads: 527 downloads.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.5.0 LATEST 27 Nov 2026 No rules fired
0.4.0 26 Nov 2026 No rules fired
0.3.0 25 Nov 2026 No rules fired
0.2.1 25 Nov 2026 Not shown
0.0.0 25 Nov 2026 Not shown

No rules fired in 0.5.0

Findings

Findings for v0.5.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.5.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@kimen/emitter

The emitter kit of Kimen's GenUI layer (spec 033): model-agnostic guidance artifacts and emission ingest helpers, derived deterministically from a catalog value — the built-in generated catalog or one you registered with createCatalog (spec 032). One catalog in; a system prompt, a catalog-specialized JSON Schema, a provider-neutral tool definition, and the two helpers that close the reliability loop out.

Security model, up front: everything this package produces is ADVISORY. A derived schema or prompt improves a model's first-try validity; it authorizes nothing. Budgets, the URL scheme allowlist, the purity wall and catalog membership are enforced ONLY by validateUiSpec and the guarded renderer in @kimen/catalog — always run emissions through them, whatever your provider's "guaranteed" mode promises.

Install

pnpm add @kimen/emitter @kimen/catalog
# or: npm install @kimen/emitter @kimen/catalog

@kimen/emitter depends on @kimen/catalog at its own version. Install the catalog as a direct dependency too, at that same version: your code imports catalogData, createCatalog and validateUiSpec from it.

Deriving guidance for your model

import { catalogData, createCatalog } from '@kimen/catalog';
import { catalogPrompt, uiSpecJsonSchema, uiSpecTool } from '@kimen/emitter';

const registered = createCatalog(myDefinition, { extend: catalogData });
if (!registered.ok) throw new Error(registered.issues[0].message);
const catalog = registered.catalog;

catalogPrompt(catalog);                                  // → { ok, artifact: string }
uiSpecJsonSchema(catalog, { target: 'openai-strict' });  // → { ok, artifact: JSON Schema }
uiSpecTool(catalog, { target: 'openai-strict' });        // → { ok, artifact: { name, description, inputSchema } }
  • Prompt (catalogPrompt): works with ANY model — format rules, every component's when-to-use / when-NOT-to-use guidance verbatim, props with enums inline, required and URL props marked and numeric ranges stated, and one example spec that validates against the same catalog. Judgment lives here; shape lives in the schema.
  • Schema (uiSpecJsonSchema): the neutral UI-spec format specialized to your catalog (one branch per component, closed objects, closed enums, the optional stable node id in the boundary's grammar, and the limits the catalog declares: a required prop is required, non-blank and never nullable; numeric bounds become minimum/maximum). The URL policy is not in the schema: no target expresses it faithfully, so the prompt states it and the boundary enforces it. Targets: draft-2020-12 (default) and openai-strict (closed all-required objects, recursion kept via $ref, only the keywords OpenAI's strict mode documents, its published size limits enforced with named offenders).
  • Tool (uiSpecTool): { name: 'emit_ui', description, inputSchema } — maps mechanically onto any provider's tool/function surface.

Both the prompt and the schema offer a prop's values as a closed set only when the catalog declares it an enum. In the built-in catalog that includes ki-alert and ki-toast tone and ki-toaster placement, whose elements accept any string in markup (spec 164). A consumer prop declared as an open string with documentedValues reaches the model as a plain string; declare it an enum when the model must pick one of its values.

Which target for which provider
Provider mode Target Why
OpenAI Structured Outputs / strict function calling openai-strict Stays inside the documented subset: pattern instead of minLength, every size limit checked. A test measures the artifact against the published numbers. The subset closes every object over listed properties, so a node's collect (a map of free names) is not offered there: a form under this target binds an action per field. A binding per event is offered with every declared event listed, each an action name or null.
Anthropic tools draft-2020-12 on a regular (non-strict) tool Anthropic's strict mode rejects recursive schemas and caps a request at 24 optional and 16 union-typed parameters; no catalog-specialized schema of a real catalog fits, so the kit ships no strict target for it.
Anything else that takes a JSON Schema as guidance draft-2020-12 The neutral default.
No schema support at all prompt only catalogPrompt works with any model.

Provider limits were read in the official documentation on 2026-11-14 (OpenAI, Anthropic). Whatever the mode, run every emission through validateUiSpec.

Every derivation accepts { components: [...] } to subset large catalogs, returns { ok: false, issues } (never throws) on version skew, unknown subset members or exceeded provider limits — never a silent truncation — and stamps the catalog schema version on the artifact. Identical inputs yield byte-identical artifacts.

Closing the reliability loop

import { validateUiSpec, renderUiSpec } from '@kimen/catalog';
import { normalizeEmission, repairPrompt } from '@kimen/emitter';

let spec = normalizeEmission(JSON.parse(modelOutput));
let report = validateUiSpec(spec, { catalog });
if (!report.ok) {
  const repair = repairPrompt(report);      // ONE corrective message…
  spec = normalizeEmission(JSON.parse(await askModel(repair)));
  report = validateUiSpec(spec, { catalog });
  if (!report.ok) throw new Error('emission rejected'); // …then fail closed
}
renderUiSpec(spec, { surface, catalog });   // renders the ACCEPTED emission

normalizeEmission strips exactly the placeholders strict-mode all-required schemas force a model to emit (null-valued props, null action bindings and null events of a binding per event, null node ids, empty props containers) and touches nothing else — a value the model got WRONG stays wrong so validation reports it. repairPrompt formats every issue (code, path, named offender) into a single corrective message; the one-round-then-fail-closed policy is deliberate and fixed.

See the emitting-specs guide for provider wiring patterns, and the UI-spec format guide for the format itself.

  • available — Consumer catalog registration: your own components behind a JSON facade, validated and rendered through the same fail-closed guardrail
  • available — Emitter kit: model-agnostic prompt, catalog-specialized JSON Schema and tool definition so any LLM emits valid specs, with a single-round repair loop
  • available — Generated framework wrappers: @kimen/react, @kimen/vue and @kimen/angular with typed props, native events and each framework form idiom, drift-gated
  • available — Schema-constrained guarded renderer: untrusted UI specs render only through the neutral catalog, fail-closed
  • available — Live surface: a long-lived surface stays current through atomic, id-addressed batches validated by the same guardrail, so focus, typed text and scroll survive
  • available — Kimen MCP server: over stdio, agents list and describe the catalog, validate UI specs with correctable issues and render them as MCP Apps surfaces through the guarded renderer
  • hardening — Changed-core mutation quality gate in hardening
  • available — A2UI protocol adapter: declarative A2UI messages render through the guarded renderer
  • available — MCP Apps adapter: Kimen surfaces reach MCP Apps hosts as self-contained ui:// resources rendered through the guarded renderer
  • available — Neutral runtime component catalog with schema-validated UI specs at the GenUI boundary
  • available — Machine-readable Web Components foundation with token-driven theming

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @kimen/emitter

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229