Cloudflare's tsrs ports TypeScript to Rust
2026-10-21 · Cloudflare Blog
Cloudflare and VoidZero announced tsrs, a Rust port of the TypeScript compiler built with Max Schwenk of Owner.com and incubated in the Oxc JavaScript toolchain. They stress it is not a fork: the TypeScript team should keep control of language design, and a port must follow it closely or become incompatible.
On performance, Cloudflare says that with the same number of type-check workers tsrs is up to 8x faster and uses about 70% less memory than TypeScript 7.0; by default it ships an adaptive configuration that uses more memory and is faster still. TypeScript 7.1 beta is up to 2.5x faster than 7.0, partly from optimizations upstreamed from tsrs. These are the team's own benchmarks, confirmed with the TypeScript team for configuration parity, and await independent verification.
Why Rust? The post argues frontier models can now do large ports almost independently in days, producing many Rust and C++ TypeScript ports. Rust compiles to WebAssembly without a garbage collector and has simpler host memory interaction, suiting full dev toolchains in Workers, browsers or embedded devices, with agents in sandboxes.
The team will merge tsc-rs and tsrs with Theo Browne, support LSP, and keep it in sync with upstream like Vinext. An experimental build runs with npx tsrs. The post drew 300+ points on Hacker News.