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-typegen

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
10 Versions
639 Downloads
Rust Repo language

Scan summary

@altopelago/aeon-typegen 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: 10 versions; the latest 4 were published within 7 days (23–29 Nov 2026).
  • Findings: No rules fired in version 0.18.0-rc.1.
  • Downloads: 639 downloads.

Versions

10 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
0.17.0-rc.2 23 Nov 2026 Not shown
0.16.0 17 Oct 2026 Not shown

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-typegen

TypeScript type generation from AEOS schemas.

This package converts exact AEOS schema rules (path + constraints) into a deterministic TypeScript interface definition.

Quick Start

import { generateTypes } from '@altopelago/aeon-typegen';

const schema = {
  rules: [
    { path: '$.name', constraints: { type: 'StringLiteral', required: true } },
    { path: '$.port', constraints: { type: 'NumberLiteral' } },
  ],
};

const result = generateTypes(schema, {
  rootName: 'AppConfig',
});

console.log(result.code);
console.log(result.diagnostics);

Typical output:

export interface AppConfig {
  name: string;
  port?: number;
}

What This Package Does

  • reads AEOS schema rules by exact canonical SANSA path
  • builds a nested TypeScript object shape
  • marks fields required when the schema requires them
  • emits diagnostics for invalid or conflicting schema shapes

AEOS selector rules are accepted in SchemaV1, but they do not identify one concrete property path. Typegen therefore reports selector rules with UNSUPPORTED_SCHEMA_SELECTOR and leaves them out of the generated static interface. Use exact path rules for fields that should appear in generated TypeScript types.

Common Patterns

Map datatype labels to custom TypeScript types
const result = generateTypes(schema, {
  datatypeMap: {
    uuid: 'string & { readonly __brand: "uuid" }',
  },
});
Generate a typed runtime binder
const result = generateTypes(schema, {
  rootName: 'AppConfig',
  emitRuntimeBinder: true,
});

When emitRuntimeBinder is enabled, the generated code also includes:

  • a SchemaV1 constant for the schema
  • a typed bind... helper backed by createTypedRuntimeBinder(...)
Inspect diagnostics

generateTypes() always returns both generated code and diagnostics:

for (const diag of result.diagnostics) {
  console.log(diag.level, diag.code, diag.message);
}

Common diagnostic cases include:

  • invalid schema paths
  • selector rules that cannot be converted to concrete TypeScript properties
  • invalid generated identifier names
  • scalar/object path conflicts
  • unknown constraint types falling back to unknown

Finalization Alignment

  • Generated scalar types are intended to match the default typed runtime contract, which operates on JSON finalization output.
  • InfinityLiteral therefore emits as 'Infinity' | '-Infinity' rather than number, because JSON finalization materializes infinity values as strings to remain JSON-safe.
  • NaNLiteral likewise emits as 'NaN' | '-NaN' rather than number, because JSON finalization materializes NaN values as strings to remain JSON-safe.

API

export function generateTypes(schema: SchemaV1, options?: TypegenOptions): TypegenResult;

TypegenOptions highlights:

  • rootName - interface name (default AeonDocument)
  • datatypeMap - map AEOS datatype labels to TS types
  • emitRuntimeBinder - emit schema const + typed runtime binder helper
  • schemaConstName - override emitted schema constant name
  • binderName - override emitted binder function name
  • runtimeModule - runtime import path (default @altopelago/aeon-runtime)
  • schemaModule - schema type import path (default @altopelago/aeos-core)

TypegenResult:

  • code - generated TypeScript source
  • diagnostics - warnings and errors found during generation

Notes

  • Required fields are derived from required: true and required descendants.
  • Unsupported/unknown schema paths and selector-only rules are reported in diagnostics.
  • Unknown constraint types fall back to unknown with warnings.
  • Datatype labels can be mapped to custom TypeScript types via datatypeMap.

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-typegen

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

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

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

CVE

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

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229