The engine
KERN compiles one source to production code across 11 targets, extends itself by discovering patterns, and powers the deepest static analysis in the industry.
Why it works
Rules operate on meaning, not text patterns. That's why KERN catches what regex-based tools miss.
Every function call is classified: read, write, network, auth. KERN knows what your code does, not just what it looks like.
KERN tracks whether effects are guarded by auth checks, try/catch, or validation. Missing guard = finding.
Every finding includes a confidence score. Filter by threshold. No more alert fatigue from low-confidence noise.
One source, every target
KERN compiles to Next.js, React, Vue, Express, FastAPI, React Native, CLI, Terminal, Ink, Nuxt, and Tailwind. One source file, every stack.
machine name=Order initial=pending
transition from=pending
to=confirmed event=confirm
transition from=confirmed
to=shipped event=ship
transition from=shipped
to=delivered event=deliverexport enum OrderState {
Pending = 'pending',
Confirmed = 'confirmed',
Shipped = 'shipped',
Delivered = 'delivered',
}
export enum OrderEvent {
Confirm = 'confirm',
Ship = 'ship',
Deliver = 'deliver',
}
const transitions: OrderTransition[] = [
{ from: OrderState.Pending,
to: OrderState.Confirmed,
event: OrderEvent.Confirm },
// ... + type guards, transition fn,
// exhaustive checks (140+ lines)
];lines of KERN
lines of TypeScript
compile targets
Self-extending
kern evolve discovers patterns in your codebase, proposes new syntax, validates it through 9 steps, and extends the language. No other language does this.
$ kern evolve:discover src/
Found 3 recurring patterns:
1 auth-guard-pattern
Appears 12x across 4 files
guard auth.check() before db.write()
2 api-response-shape
Appears 8x across 3 files
{ data: T, error?: string, status: number }
3 retry-with-backoff
Appears 5x across 2 files
retry(fn, { max: 3, backoff: 'exponential' })
? Promote to language construct? [y/N]validation pipeline
Compiles offline. No network.
Nothing enters the language without your sign-off.
Proof
68 source files. Next.js output. This page included. The compiler is real. The language works.