Vercel Labs Launches scriptc Compile TypeScript directly to 170KB Runtimeless Binaries.
Vercel Labs Introduces scriptc : A AOT Compiler Converting TypeScript Directly to Standalone Binaries Vercel Labs has officially unveiled scriptc , an experimental Ahead-Of-Time (AOT) compiler capable of transforming TypeScript code directly into native, standalone machine binaries without requiring external runtimes like Node.js, Deno, or Bun. Because TypeScript is inherently a statically typed language, direct compilation down to native code is structurally feasible. By stripping away runtime dependencies, scriptc achieves lightweight execution metrics: Minimal Binary Size: Base binary size starts at just 170 KB . Near-Instant Startup Time: Cold starts launch in as little as 2.4 ms . Ultra-Low Memory Footprint: RAM consumption ranges between 1 MB to 4 MB . For edge cases where developers utilize dynamic JavaScript features that cannot be statically compiled, scriptc issues a compiler warning and provides a --dynamic build option. This flag embeds the lightweight quickjs-ng Ja...