Documentation · Benchmarks · GitHub Releases
As typesafe as Rust. As fast as C. As ergonomic as TypeScript.
ChadScript is a systems programming language that uses TypeScript syntax and compiles directly to native binaries via LLVM. It is not a full TypeScript compiler — it's a statically-typed, natively-compiled dialect that shares TypeScript's syntax and feel while imposing stricter rules needed for native code (no generics, by-value closures, no any).
Your code goes through a full compilation pipeline: parse, type-check, emit LLVM IR, and link into a standalone native binary with no Node.js, V8, or JavaScript runtime.
ChadScript is self-hosting — the compiler (~45k lines) is written in this same dialect and compiles itself to a native binary.
// hello.ts
console.log("Hello from ChadScript!");Run it:
$ chad run hello.ts
Hello from ChadScript!Or compile to a standalone binary:
chad build hello.ts -o hello
./hellocurl -fsSL https://raw.githubusercontent.com/cs01/ChadScript/main/install.sh | shRequires LLVM (brew install llvm / apt install llvm clang).
Learn more at cs01.github.io/ChadScript
MIT