scriptc is a TypeScript-to-native compiler that turns ordinary TypeScript programs into small, self-contained executables. Its default output contains no Node.js runtime, V8 engine, or JavaScript interpreter. The compiler uses the real TypeScript checker, lowers supported code into a typed intermediate representation, and generates native code through LLVM or C. A coverage command explains which statements compile statically and identifies unsupported constructs with precise diagnostics. Optional dynamic mode embeds QuickJS for npm dependencies and loosely typed code while validating values that cross into static code. The supported surface includes major language features, standard collections, many Node APIs, networking, TLS, fetch, streams, and asynchronous programming. Differential tests compare native output with Node.js, while sanitizer testing checks memory safety and documented divergences.
Features
- Native TypeScript executable generation
- Zero-runtime static compilation by default
- Static coverage and blocker diagnostics
- Optional QuickJS dynamic fallback
- Broad Node and web API support
- Differential and memory-safety testing