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

@altopelago/aeon-highlight

Latest version: v0.18.0-rc.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: altopelago
4 Stars
0 Forks
3 Versions
640 Downloads
Rust Repo language

Scan summary

@altopelago/aeon-highlight was last scanned on 29 Nov 2026 at version 0.18.0-rc.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions, all published within 6 days (24–29 Nov 2026).
  • Findings: No rules fired in version 0.18.0-rc.1.
  • Downloads: 640 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.18.0-rc.1 LATEST 29 Nov 2026 No rules fired
0.17.0 24 Nov 2026 No rules fired
0.17.0-rc.3 24 Nov 2026 No rules fired

No rules fired in 0.18.0-rc.1

Findings

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

README

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

@altopelago/aeon-highlight

Optional lexer-backed AEON rendering for browsers and server-side HTML generation. Prepared for the TypeScript 0.17.0 release; publication is on hold.

import {highlightAeon} from '@altopelago/aeon-highlight';
const html = highlightAeon('name\\id\\:string="Hello"');

The renderer uses @altopelago/aeon-lexer, original UTF-16 source spans and escaped source text. It preserves text, gaps and malformed input; it has no custom AEON scanner. Sources above MAX_HIGHLIGHT_SOURCE_CODE_UNITS (1,048,576) render as escaped plain text without lexing. This presentation allowance does not change compiler/parser limits. This API renders text; it does not validate documents or resolve references or identities.

highlightAeon(source, {diagnosticLine, diagnosticColumn}) optionally marks a one-based line and UTF-16 column. highlightJson(source) is a separate presentation helper. Optional &ND decoration is confined to lexer-classified doc comments. Both JavaScript entry points can be imported without a DOM. Core/runtime packages do not depend on this package.

Optional custom element

import {defineAeonCodeBlock} from '@altopelago/aeon-highlight/element';
defineAeonCodeBlock(); // Explicit, idempotent browser registration.
const block = document.createElement('aeon-code-block');
block.setAttribute('theme', 'light'); // Omit for dark.
block.setAttribute('title', 'Example');
block.code = source; // Exact source, including empty strings and trailing newlines.
document.body.append(block);

code property overrides the code attribute; otherwise source comes from a nested script[type="text/plain"], a template's content, or text content. Empty attributes are respected. Source is not trimmed. For arbitrary source use the property rather than interpolating HTML. Light-DOM edits and edits within the selected template content update the display; disconnecting the element disconnects its observer. show-copy="false" hides the copy button. Register only one implementation per tag; a foreign existing definition is rejected rather than assumed to support this API. Copy uses the browser clipboard API following a button click; unavailable clipboard access is reported in a live status region.

The component is an AEON code block. Site-specific expansion controls, JSON, TypeScript, grammar rendering and navigation remain consumer responsibilities.

Themes

For renderer output, load either exported stylesheet and wrap it in <pre class="aeon-highlight"><code>…rendered HTML…</code></pre>:

  • @altopelago/aeon-highlight/theme.css: existing AEON dark palette.
  • @altopelago/aeon-highlight/theme-light.css: existing Aeonite light palette.

Styles are scoped to .aeon-highlight. The component carries equivalent shadow styles and uses theme="light" for the light palette. Consumers can override --aeon-* custom properties on the wrapper/element. Names used as keys, types or tags retain their distinct existing colours; unclassified identifiers retain the foreground. Symbols, identities and SANSA addresses have explicit theme colours.

Development

From implementations/typescript:

pnpm --filter @altopelago/aeon-highlight... build
pnpm --filter @altopelago/aeon-highlight... typecheck
pnpm --filter @altopelago/aeon-highlight... test

The consumer migration checklist keeps adoption separate from package preparation and PR #197.

Browser lifecycle regression

test/browser/element-lifecycle.html and its module execute real DOM mutation cases, including selected-template edits/replacement, source precedence, script type changes and disconnect/reconnect. Copy both files into the root of a local packed consumer alongside node_modules, serve that root over loopback, open the page and press Run lifecycle tests. The import map uses the installed package and lexer; it has no workspace fallback. This browser fixture is separate from the Node-only test command above. Clipboard permissions and the browser-engine matrix remain release qualification checks.

Hosts with a selected lexer

@altopelago/aeon-highlight/renderer exports createHighlighter(lexer) and the Highlighter, LexerProvider and diagnostic option types. This entry loads no lexer or DOM. Supply the actual implementation namespace selected by the host:

import * as lexer from '@aeon/lexer'; // The host page's existing import map.
import {createHighlighter} from '@altopelago/aeon-highlight/renderer';
const {highlightAeon, highlightJson} = createHighlighter(lexer);

This keeps legacy website 0.16 and candidate 0.17 tokenization tied to their own selected runtimes. Consumers must test those exact provider artifacts. The root and element entries retain their matching 0.17 lexer dependency and unchanged APIs. Provider rendering does not add a parser or a fallback scanner.

Numbers (including radix/hex literals) use tok-number / --aeon-number; dates, times and datetimes use tok-temporal / --aeon-temporal. Dark defaults are cyan #7dd3fc and light yellow #f5e6a8; light-theme equivalents are #006b80 and #806500. SANSA address literals retain tok-sansa and inherit --aeon-symbol. Booleans and other literals retain --aeon-literal. JSON numbers use the numeric colour too. These are presentation roles over existing lexer tokens and do not change parsing or reference semantics.

Custom OKLCH colours

Custom properties also accept OKLCH, for example on the rendered wrapper:

.aeon-highlight.my-theme {
  --aeon-number: oklch(0.78 0.14 230.32);
  --aeon-string: oklch(0.78 0.14 91.25);
  --aeon-symbol: oklch(0.78 0.14 176.9);
  --aeon-sansa: var(--aeon-symbol);
}

The local source playground provides three selectable experimental presets and shared L/C controls. Those local presets are not additional package exports.

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 @altopelago/aeon-highlight

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

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Microsoft's Official agent framework Hijacked
AI & VibeSec

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

Frame 2085668439 (1)
Group 1261154229