Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary
Vercel has introduced 'scriptc', a new compiler that transforms TypeScript code into small, native executables without requiring a JavaScript engine like Node or V8. This tool aims to improve performance and reduce runtime overhead for static TypeScript applications.
Why it matters
This represents a significant shift in how TypeScript can be deployed, potentially increasing performance for server-side and CLI applications.
Zero-runtime TypeScript. scriptc compiles ordinary TypeScript into small, fast native executables — no Node, no V8, no JavaScript engine in the binary.
$ cat fib.ts function fib(n: number): number { return n < 2 ? n : fib(n - 1) + fib(n - 2); } console.log(fib(30)); $ scriptc run fib.ts 832040 $ scriptc build fib.ts && ls -la fib -rwxr-xr-x 178K fib # a self-contained native binary, ~2ms startup No changes to your code. No annotations, no dialect — the same TypeScript you run on Node, type-checked by the real TypeScript compiler and compiled to native. What compiles behaves byte-for-byte like Node.
$ npm install -g scriptc Requires clang (preinstalled with Xcode Command Line Tools). macOS arm64 is the primary platform; Linux and Windows binaries build by cross-compilation, each verified by its own differential test lane.
Get smarter about the news
Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.
Create free accountAlready have an account? Sign in