Vercel has launched Scriptc, a new compiler designed to transform TypeScript code into native executables. This tool allows developers to create applications that run without requiring a Node.js runtime or a V8 JavaScript engine embedded in the binary. The resulting executables are self-contained and feature fast startup times, as demonstrated by a 178KB binary with a ~2ms startup time for a Fibonacci calculation example.
Scriptc processes standard TypeScript code without requiring any modifications, annotations, or dialect changes. It uses the real TypeScript compiler for type-checking and aims for byte-for-byte behavioral compatibility with Node.js execution. The primary development platform is macOS arm64, with support for Linux and Windows through cross-compilation, verified by differential testing.
Scriptc analyzes TypeScript constructs to determine what can be compiled to native code. It operates on three tiers: statically compiled native code (the default), dynamically run code using an embedded QuickJS-ng engine (for elements like npm dependencies or 'any'-typed code), and rejected code that fails with specific error messages and rewrite hints. The static compilation covers a significant portion of the language and standard library, including classes, closures, generics, async/await, and regular expressions.
The introduction of Scriptc could broaden the applicability of TypeScript, enabling its use in scenarios where minimal overhead and fast execution are critical, such as command-line tools, embedded systems, or serverless functions with strict cold-start requirements. By removing the dependency on a full JavaScript runtime, Scriptc offers a path to more efficient and performant TypeScript applications.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Vercel has released Scriptc, a new tool that compiles TypeScript code directly into small, fast native executables, eliminating the need for a JavaScript engine in the binary. This development allows TypeScript applications to run with faster startup times and reduced memory footprint, potentially expanding TypeScript's use cases to environments where Node.js or V8 are impractical.