ZScript is a modern language that transpiles to JavaScript, featuring real compile-time execution, strong typing, Sugar Syntax and native Bun / Node.js support.
fn main() {
console.log("Hello ZScript");
}
Install using the official ZScript installer.
# Linux / macOS curl -fsSL https://zscript.us.kg/install.sh | bash # Windows (PowerShell) powershell -ExecutionPolicy Bypass -Command "irm https://zscript.us.kg/install.ps1 | iex"
Run ZScript during compilation. Generate code, read files, call APIs. Full Bun and Node.js Api Supported.
Nominal types, interfaces, generics, async checking, and more.
Embedded Bun runtime. No extra tooling required.
defer(LIFO), queue(FIFO), match, pipelines, compile-time macros.
Use Node, npm, Bun, Javascript packages directly.
Build, run, and ship with one tool: zsc.