Vercel's Scriptc compiles TypeScript to 178KB native binaries

Cold start drops 47ms→2.4ms and memory ~100MB→under 4MB — but most real repos hit a slow QuickJS fallback, and the codebase is largely AI-written.

Nowline JUL 30 7:00 AM banner

Top AI stories from the last hour

Top AI stories from the last hour

Copy markdown

  • No Node, no V8, no JS engine in the binary

    Scriptc (Vercel Labs, Apache-2.0) compiles well-typed TypeScript straight into a self-contained native executable — install via npm, then run its `coverage` command to see what compiles statically. Nothing is bundled at runtime, unlike Node's single-executable apps.

  • The numbers: 178KB and a 2.4ms cold start

    A static binary is ~178KB versus 60–100MB for a Node SEA, boots in 2.4ms (~20x faster than Node's 47ms), and idles at 1–4MB RSS instead of 67–116MB. For CLIs, git hooks, and Docker or edge scripts, that's a real image-size and cold-start win.

  • The catch: the `any` cliff

    Roughly 4 in 5 real TS repos lean on `any` or npm deps that can't compile statically — those fall back to an embedded ~620KB QuickJS engine one language designer called “hilariously slow,” erasing the speedup. Today it only shines on dependency-free, strictly-typed code.

  • 918K lines in a week — written by AI agents

    The codebase reportedly grew ~918,000 lines in one week using AI coding agents, with leftover “Claudisms” still in the docs. It's a live test of whether agent-generated code can be trusted as production infrastructure — and Hacker News is openly skeptical.

  • Build this weekend

    Take a strictly-typed, dependency-light TS utility — a cron job, an MCP server stub, a CI helper — and ship it as a ~180KB binary that starts in ~2ms. It pairs neatly with this week's stateless, edge-ready MCP spec, where Node's cold start is the tax you pay.

  • Elsewhere: Kimi K3 is the week's open-weights lightning rod

    Moonshot's Kimi K3 — a 2.8T-param MoE (104B active, 1M-token context) — is topping Hacker News as builders weigh self-hosting against its ~1.4TB footprint. It's the most capable open weights of the month, if you have the disk to run it.