Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary
Why CEREBRO kept it
Vercel TS-to-native compiler; innovative build tool, rising repo
The text below is an automated extraction of the article at https://github.com/vercel-labs/scriptc, stored verbatim in the public cerebro-vault repository. Copyright remains with the original publisher (github.com).
Zero-runtime TypeScript. scriptc compiles ordinary TypeScript into small, fast native executables — no Node, no V8, no JavaScript engine in the binary. $ cat fib.ts function fib(n: number): number { return n < 2 ? n : fib(n - 1) + fib(n - 2); } console.log(fib(30)); $ scriptc run fib.ts 832040 $ scriptc build fib.ts && ls -la fib -rwxr-xr-x 178K fib # a self-contained native binary, ~2ms startupNo changes to your code. No annotations, no dialect — the same TypeScript you run on Node, type-checked by the real TypeScript compiler and compiled to native. What compiles behaves byte-for-
Community take
Real-world npm packages ship untyped JavaScript requiring a JS runtime anyway; this only works for greenfield projects with zero external dependencies.
Backlinks
Appeared in 1 briefing