@grayhaven/nerve
v7.0.0
Published
Grayhaven Nerve core: domain model, DSL builders, HIR types and schema, compiler interface, validation primitives.
Readme
@grayhaven/nerve
The core of Grayhaven Nerve: the typed harness DSL (harness / connector / wire / splice / cable / branch / label / variant), the versioned HIR schema, deterministic compileDesign, diagnostics + the rule() API, diffHir, part-data providers (resolvePart, staticProvider), and defineConfig.
import { harness, connector, wire } from "@grayhaven/nerve"
import { MolexMicroFit } from "@grayhaven/nerve-connectors"
const j1 = connector("J1", MolexMicroFit["43025-0800"], {
pins: { 1: "VBAT_24V", 2: "GND", 3: "CAN_H", 4: "CAN_L" },
})
// wire(), branch(), label() ... -> compileDesign() -> deterministic HIRPart of Grayhaven Nerve — harnesses as code. Live demo + docs · llms.txt · Apache-2.0
