I spent last week testing Scriptc (by Vercel Labs) — a compiler that takes TypeScript and produces a native executable. No Node.js runtime, no JavaScript engine, just a fast binary.
Why this matters
For small CLIs and scripts, the Node.js runtime is often the bottleneck:
- Slow startup — hundreds of ms to boot the VM
- Huge Docker images — 200MB+ just for a 50-line CLI
- Runtime dependencies — target machines need Node installed
Scriptc changes the game: TypeScript goes in, native binary comes out.
Quick experience
# Install
npm i -g @vercel/scriptc
# Compile
scriptc compile ./my-cli.ts -o my-cli
# Run — no Node needed
./my-cli
What impressed me
- Startup is instant — milliseconds, not hundreds of ms
- Binary is small — single file, no dependencies
- TypeScript stays TypeScript — no Rust/Go rewrite required
Current state
- Open source: vercel-labs/scriptc (~2.5k stars)
- Actively developed by Vercel Labs
- Great fit for CLIs, dev tools, and edge scripts
Honest caveats
- Still early-stage — not all TS features supported
- Best for self-contained scripts, not full applications
- Check compatibility before adopting for production
Bottom line: if you ship TypeScript CLIs, Scriptc is worth a weekend experiment. The no-runtime distribution story is genuinely compelling.
Cross-posted as part of my daily AI/dev tool testing. Follow for more hands-on reviews.
Top comments (0)