Scan your whole stack
Are you using @kimen/emitter?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.5.0
@kimen/emitter was last scanned on 27 Nov 2026 at version 0.5.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
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.
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.
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 } }
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.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).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.
| 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.
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.
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.