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

@vchernoy/active-runtime

Latest version: v0.12.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: vchernoy
0 Stars
0 Forks
16 Versions
2.7K Downloads
TypeScript Repo language

Scan summary

@vchernoy/active-runtime was last scanned on 27 Nov 2026 at version 0.12.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 16 versions; the latest 5 were published within 6 days (22–27 Nov 2026).
  • Findings: No rules fired in version 0.12.0.
  • Downloads: 2,714 downloads.

Versions

16 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.12.0 LATEST 27 Nov 2026 No rules fired
0.11.0 26 Nov 2026 No rules fired
0.10.0 25 Nov 2026 No rules fired
0.9.0 25 Nov 2026 Not shown
0.8.0 22 Nov 2026 Not shown

No rules fired in 0.12.0

Findings

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

README

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

@vchernoy/active-runtime

Makes a document rendered by @vchernoy/remark-active live in the browser. Plain DOM, no framework.

import { renderActive } from '@vchernoy/remark-active';   // on the server, or in the browser
import { mount } from '@vchernoy/active-runtime';
import '@vchernoy/active-runtime/style.css'; // optional theme-neutral control/math layout

container.innerHTML = renderActive(markdown, { locale }).html;
const live = mount(container, { locale });   // later: live.destroy()
  • Reads the calc program from data-active-calc on .active-doc and starts a session.
  • input[data-active-input] and select[data-active-input] controls set inputs; several controls of one input stay in sync (the one being edited is never rewritten); values outside the input's range are rejected (aria-invalid, a title and the browser's validation message), and nothing changes.
  • [data-active-value] views and [data-active-tex] formulas are redrawn only when a value they use changes. KaTeX is loaded on the first formula update (loadKatex to supply it yourself).
  • Values the browser restored into controls (back/forward, autofill) are adopted on mount.
  • Use the same locale (and math output) as the renderer so updated text matches the first render.

The optional stylesheet is scoped to .active-doc, sizes number/range controls, marks invalid inputs with the current text color, and honors KaTeX MathML column alignment. Override --active-input-ch (default 8) to choose a number input width. Load this stylesheet with the renderer in lazy integrations; importing the runtime JavaScript does not load CSS automatically. It adds no fonts, requests or theme palette.

Optional hand-drawn look
import '@vchernoy/active-runtime/style.css';
import '@vchernoy/active-runtime/sketch.css';
container.classList.add('active-sketch'); // remove the class to go back to the plain look

sketch.css draws inputs, dropdowns, radios, checkboxes, sliders, the quiz Check button, questions and callouts with uneven, hand-drawn outlines. It applies only under an ancestor with the active-sketch class, so a host can switch it on and off at any time. It is CSS only: the controls stay native, so keyboard, focus and assistive technology work as without it. It follows the text color in light and dark themes and adds no fonts or requests. Customize with --active-sketch-ink (line color), --active-sketch-paper (control background) and --active-sketch-font (for example a bundled handwriting font for buttons). Button tilts are turned off under prefers-reduced-motion.

Restoring reader inputs (0.5.0)

Pass initialInputs: new Map([['x', 5]]) to mount. The runtime iterates declared inputs (including model-only inputs), accepts finite numeric values through the model validator, and also checks every authored control's min/max bounds. Unknown names, definitions, invalid values and out-of-range entries are skipped individually. Accepted values are installed before the first runtime refresh, with no host subscription events for the initial batch. Source and authored defaults are unchanged.

Accepted entries win over browser-restored/autofilled controls, even when equal to the authored default. Skipped entries retain normal browser restoration behavior. Slider steps keep their existing nearest-position behavior; the model/readout retains the accepted number. Public session setters now synchronize peer controls as well as views; the control actively being edited is not rewritten under the cursor. Model setters still validate model ranges; hosts restoring state should use initialInputs to additionally validate all authored control bounds.

For asynchronous restore, keep the rendered container hidden/staged, load saved values, call mount(container, { initialInputs }), then await live.settled() before revealing it so math and conditional visibility agree. Subscribe for persistence only after mount and restoration settle. The runtime stores no inputs and schedules no startup events; this API does not introduce quizzes, event initializers, or a persistence layer.

live.resetInputs() returns every input to its authored default as one model reset, synchronizes controls and clears unfinished invalid control text even when the model already equals defaults. Await live.settled() for math updates. Reset does nothing after destroy(). Hosts own storage deletion/reset policy and lifecycle cancellation.

Quiz metadata inspection (0.6.0)

inspectQuizManifest(value) validates unknown object data against the bounded v1 compiler metadata schema and copies only known fields into an independent manifest. It returns { kind: 'valid', manifest } or an invalid reason (malformed, version, too-large). Empty documents are valid; malformed/oversized groups and ambiguous identities are rejected atomically. It does not parse JSON, compile expressions, prove source/session compatibility, sanitize label Markdown into HTML, mount quizzes, initialize seeds or persist answers. Existing mount() behavior is unchanged.

compileQuizManifest(value, session) prepares inspected quiz metadata against a trusted calc session, returning kind: 'compiled' with independent manifest, group-ID conditions and numeric-question-ID answers maps, or an all-or-nothing invalid result. It checks declared seed inputs and expression diagnostics without evaluating answers, changing inputs or mounting controls. Expressions stay bound to the supplied session. This helper does not prove source/DOM provenance or enable quiz attempts.

checkQuizGroup(prepared, groupId, responses) checks one prepared visible group using host-parsed numeric responses or choice-ID arrays. It returns hidden, invalid, or checked with detached weighted result rows. It applies current session conditions and expected answers without changing inputs or enabling quiz UI. This self-check helper does not manage attempts, Retry, persistence or authoritative grading.

Quizzes with Check / Retry (0.7.0, #48)

Render with renderActive(source, { quizManifest: true }) and pass the returned quiz to mount(root, { quiz }). Each ::quiz-submit group gets a working Check button: it grades the group against live calc values, shows per-question feedback and the score, and freezes the group; Retry reopens only that group. The HTML carries only identities; answers stay in the manifest. Without the option or with an incompatible manifest, quiz controls stay inert. A group bound to seed=name draws name within its declared range when the attempt starts and again on Retry (never on Check), so rand/randInt questions get a fresh variant and choice questions show their options in a seed-derived order (grading is by choice identity); pass quizSeedSource for reproducible draws. Completed-attempt notification is implemented on main (unreleased), as below; draft/checked-attempt restore is not implemented.

Completed-attempt notification (unreleased)
const rendered = renderActive(markdown, { quizManifest: true });
root.innerHTML = rendered.html;
const live = mount(root, {
  quiz: rendered.quiz,
  onQuizAttempt(attempt) {
    // Your own opt-in handling; the runtime performs no storage or network work.
    showCompletedScore(attempt.groupId, attempt.earned, attempt.max);
  },
});

onQuizAttempt is synchronous and runs once after each successful Check, after feedback, control freezing and the Retry state are installed. Initialization, invalid/hidden checks, Retry (successful or failed) and destroy emit nothing. A later successful Check after Retry produces a new snapshot. Synchronous callback exceptions are contained so checking still works; hosts must handle failures of their own asynchronous work.

The exported CompletedQuizAttempt is a detached, deeply frozen JSON-compatible object: version: 1, manifestVersion: 1, groupId, seed (null or { input, value }), responses, earned, max, and results. Responses carry question identity/type plus a finite numeric value (null when unanswered) or an array of selected choice identities (empty when unanswered). Result rows carry questionId, correct, points, and earned. No raw input text, expected answer/expression, tolerance, label, source or DOM enters it. Later calc changes, DOM edits, Retry and other groups cannot mutate an earlier snapshot.

This is client-side self-check output, not authoritative grading. Schema versions and positional identities describe the data; they do not prove source compatibility or provide a restore token. In particular a seed alone does not reconstruct grading against other live inputs. There is no attempt getter, draft notification, restore API or persistence in this slice. Hosts decide consent, compatibility, identifiers and storage themselves; TypeBridge attempt persistence remains deferred until a separately designed restore contract exists.

Numeric choice controls (0.6.0)

Readable edit/slider controls use the same runtime paths as legacy number/range controls. Selects use native change events and share the same numeric binding and reset API. The mounted session rejects values absent from its select option domains, including public setters and numeric peer edits. Initial restored values must fit all controls; a removed option retains the authored default. Pure calc sessions do not acquire widget domains. Source/defaults are never rewritten. Group/option labels are visible, unlike edit/slider bracket names. Optional CSS bounds long dropdowns and wraps group labels. Checkbox controls for calc inputs are not provided by these APIs; quizzes are described below.

Radio groups use native names scoped per mounted group. They share numeric option validation, peer synchronization and reset behavior with selects.

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 @vchernoy/active-runtime

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

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229