Tool Open source

scriptc

scriptc is an experimental TypeScript-to-native compiler from Vercel Labs. It uses the TypeScript compiler for parsing and type checking, then emits typed IR, readable C, textual LLVM IR, native assembly and object files, native executables, or WebAssembly modules. Static builds include a small native runtime and do not require Node.js or a JavaScript engine when run; code that cannot compile statically is reported through diagnostics, and coverage reporting identifies the statically compilable portions and blockers. For npm packages and other dynamically typed code, an optional dynamic mode embeds quickjs-ng. The compiler itself requires Node.js 24 or newer and targets macOS, Linux, Windows, and WebAssembly through WASI Preview 1.

View repository Visit site Mentioned in 2 videos ↓

What scriptc is used for

2 uses taken from transcripts — each links to the moment in the video.

  • A Vercel Labs compiler that turns ordinary TypeScript into native binaries without Node or V8 in the static path. It reports what compiles statically and identifies blockers with error codes.

  • Compiles ordinary TypeScript into native executables that do not require Node, V8, or a JavaScript engine. It includes coverage reporting, unsupported-construct hints, and optional QuickJS dynamic mode.

Videos mentioning scriptc

2 in the library.