Native Speed
Compiles to native CPU code via LLVM — the same compiler backend used by C, Rust, and Swift. No V8, no JIT warmup, no garbage collection pauses.
A compiler that takes a statically analyzable subset of TypeScript and generates optimized machine code via LLVM — the same backend behind C, Rust, and Swift.
Your code goes through the same LLVM optimization passes as C and Rust. No interpreter, no JIT warmup, no virtual machine overhead. The binary starts in under a millisecond and runs at native speed.
| Benchmark | ChadScript | Node.js | vs Node | C |
|---|---|---|---|---|
| Cold Start | 0.6ms | 21.8ms | 36x | 0.6ms |
| Monte Carlo Pi | 0.398s | 1.474s | 3.7x | 0.400s |
| File I/O | 0.089s | 0.315s | 3.5x | 0.088s |
| JSON Parse | 0.005s | 0.015s | 3.0x | 0.004s |
| Fibonacci | 1.424s | 2.842s | 2.0x | 0.725s |
| N-Body Sim | 1.852s | 2.296s | 1.2x | 1.453s |
No new syntax to learn. If you write TypeScript, you already know ChadScript.
import { httpServe, Router, Context } from "chadscript/http";
const app: Router = new Router();
app.get("/", (c: Context) => c.json({ hello: "world" }));
httpServe(3000, (req: HttpRequest) => app.handle(req));chad build app.ts → 247KB binary, 0.8ms startup.No package manager. No node_modules. Everything ships with the compiler.
In production today: chadsmith.dev/hn and chadsmith.dev/weather — both running as single ChadScript binaries.
curl -fsSL https://raw.githubusercontent.com/cs01/ChadScript/main/install.sh | shChadScript compiles a subset of TypeScript — not a drop-in replacement. See what's supported →