Perry compiles TypeScript and JavaScript into native machine-code executables for desktop, mobile, and embedded targets without bundling Node.js or a browser engine at runtime. SWC parses source and LLVM generates binaries from a shared codebase.
Overview
Perry targets developers who want TypeScript ergonomics but native deployment: one binary instead of a Node install, Bun embed, or Electron shell. The pipeline uses SWC for parsing and LLVM for codegen, with optional web or WebAssembly output from the same projects.
Supported native platforms include macOS, Windows, Linux, iOS, Android, watchOS, and TV. A SwiftUI-like UI layer can target platform-native widgets across many of those targets. The toolchain advertises real OS threads with compile-time checks against shared mutable state for parallel work.
Compatibility work covers a large subset of Node’s built-in modules and many popular npm packages, plus plain JavaScript. Published benchmarks compare Perry against Node, Bun, and Rust on selected workloads; the project documents cases where JIT still wins.
Installation paths include npm global install, platform package managers, and source builds. Telemetry is opt-in via configuration, with an environment variable to disable it entirely.
Key features
- LLVM native binaries from TypeScript
- SWC-based parsing pipeline
- Multi-platform native UI toolkit
- Parallel map and filter on OS threads
- Node module compatibility subset
- CLI compile and doctor commands
- Web and WASM emit modes
Use cases
- Ship small native CLI tools from TypeScript
- Build cross-platform desktop UIs without Electron
- Compile mobile apps from one TypeScript codebase
- Avoid embedding Node on servers for tools