s

scriptc

Developed by vercel-labs

scriptc is an experimental compiler from Vercel Labs that transforms TypeScript and JavaScript code into various low-level outputs, including typed IR, C, LLVM IR, native assembly, objects, native executables, and WebAssembly modules. It leverages the TypeScript compiler for parsing and type checking. It supports static compilation to produce lightweight native binaries without Node.js or a JavaScript engine. For dynamic features or npm packages, it can embed quickjs-ng. scriptc targets high-performance native deployment on macOS, Linux, Windows, and WebAssembly (WASI), supporting a subset of Node.js APIs.

  • Multi-target compilation from TypeScript/JavaScript (IR, C, LLVM, Assembly, Native Executables, WASM)
  • Leverages TypeScript compiler for type checking and parsing
  • Supports static compilation for standalone native binaries, with optional QuickJS embedding for dynamic features
  • Offers static code coverage analysis tool
  • Cross-platform compatibility: macOS, Linux, Windows, WASI Preview 1 (WebAssembly)
desktopweb