
Security News
Suno Breached via Shai-Hulud Worm, Leaked Code Exposes AI Music Scraping
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.
@asterql/schema
Advanced tools
npm install @asterql/schema
TypeNode schemas for AsterQL data shaping and code generation.
This package is intentionally small. It gives the rest of the AsterQL stack a plain JSON-like type graph that can represent practical TypeScript-shaped JSON, including recursive and reused shapes through named references.
import {
arrayType,
defineSchema,
objectType,
optionalProp,
refType,
stringType,
} from "@asterql/schema";
const schema = defineSchema({
root: refType("Category"),
definitions: {
Category: objectType({
id: stringType(),
title: stringType(),
parent: optionalProp(refType("Category")),
children: arrayType(refType("Category")),
}),
},
});
type TypeSchema = {
root: TypeNode;
definitions: Record<string, TypeNode>;
};
refType("Name") points at definitions.Name. References are never expanded
during normalization, which keeps recursive graphs finite and deterministic.
defineSchema(input): normalize a schema and verify all refs are defined.normalizeTypeNode(node): canonicalize a TypeNode.serializeTypeNode(node): stable JSON string for a TypeNode.serializeSchema(schema): stable JSON string for a schema.collectRefs(node): collect named refs from a TypeNode.unknownType, neverType, nullType, booleanType,
numberType, stringType, literalType, arrayType, objectType,
prop, optionalProp, unionType, intersectionType, recordType,
tupleType, refType, and nullableType.AsterQL codegen needs to preserve shape identity. If two fields point at the same named type, codegen should know that. If a type points at itself, codegen must not expand forever. Named refs keep those cases simple and explicit.
FAQs
TypeNode schemas for AsterQL data shaping and code generation.
The npm package @asterql/schema receives a total of 107 weekly downloads. As such, @asterql/schema popularity was classified as not popular.
We found that @asterql/schema demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.

Security News
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.