Skip to main content

2 posts tagged with "check"

View All Tags

Day 0 — observe JavaScript without rewriting it

· 2 min read
Nudo Contributors
Nudo maintainers

Launch series (1/5) — published together on 2026-09-21. Read in order: Day 0 — observe JavaScript without rewriting it · Contracts are JS — Day 1 with sidecar *.nudo.js · Nudo vs TypeScript — when a JS-first gate is the right tool · Nudo for coding agents — agents.md, agent integration, stable diagnostics · The 22-file smear: how call-site attribution almost shipped fake precision

Welcome back to JavaScript. Nudo does not ask you to rewrite a JS package in another language surface before you can see types or gate obligations.

Day 0 product face: nudo check prints signatures on success and failure. Call sites are evidence. Unconstrained entry params display as any — not unknown. Optional nudo test reports cases for debugging; it is not the CI gate.

npx nudojs check src/
signatures
subtract(a: any, b: any) => number

Even without sidecar contracts, export functions carry the L2 runtime boundary: undigested may-throw on entry functions is an error (nudo:entry-may-throw), filterable while you migrate.

Try it in the Playground, or read the Quick Start.

Contracts are JS — Day 1 with sidecar *.nudo.js

· 2 min read
Nudo Contributors
Nudo maintainers

Launch series (2/5) — published together on 2026-09-21. Read in order: Day 0 — observe JavaScript without rewriting it · *Contracts are JS — Day 1 with sidecar .nudo.js · Nudo vs TypeScript — when a JS-first gate is the right tool · Nudo for coding agents — agents.md, agent integration, stable diagnostics · The 22-file smear: how call-site attribution almost shipped fake precision

Nudo’s contract product is not a second type language. Contracts are ordinary JavaScript modules: sidecar *.nudo.js files that auto-bind to same-name exports, or in-source @nudo:contract.

// pricing.nudo.js
import { number, fn } from "@nudojs/core";

export const lineTotal = fn(
{ price: number().gt(0), qty: number().ge(1) },
number().gt(0)
);
npx nudojs check pricing.js
issues
[error] lineTotal: actual ⊭ expected (nudo:constraint-violated)
actual: 0 #exact
expected: price > 0