Cinematic close-up of a translucent crystalline structure shattering into precise, geometric metallic shards. Cold blue

For years, the deal with TypeScript has been simple: you get the luxury of a typed language, but you still pay the 'runtime tax.' To run your code, you need a JavaScript engine like V8 and a heavyweight environment like Node.js. It’s a trade-off we’ve all accepted—until now. Vercel Labs is shaking things up with scriptc, a compiler that aims to strip away the middleman entirely.

Zero-Runtime, Maximum Speed

At its core, scriptc is a TypeScript-to-native compiler. Instead of transpiling TS into JS and then letting a runtime figure it out at execution, scriptc compiles ordinary TypeScript directly into small, fast native executables.

The headline feature here is the absence of a JS engine in the binary. By removing the overhead of Node or V8, the resulting binaries are significantly smaller and potentially much faster. It’s a compelling value proposition: you write the same code you're used to, it's checked by the real TypeScript compiler, but it ships as a lean, standalone machine-code binary.

A Growing Trend Toward Native TS

Vercel isn't the only one eyeing this horizon. Projects like Perry and geatsc are also pushing for native TypeScript binaries, with geatsc specifically targeting C++ as an intermediate step. This movement suggests a broader shift in the ecosystem: developers want the productivity of the TypeScript ecosystem without the performance penalties of a virtual machine.

While we are still seeing these tools emerge from labs and early stages, the goal is clear: treat TypeScript not just as a 'better JavaScript,' but as a viable language for high-performance native applications.

The Road Ahead

If scriptc gains mainstream traction, we could see a future where CLI tools and backend services are distributed as tiny, single-file binaries rather than massive node_modules folders. It’s a bold step toward making TypeScript as performant as the native languages it seeks to complement.

Sources

Media