Cloudflare has taken over development of tsrs, a Rust reimplementation of Microsoft's TypeScript compiler conceived just last month at Owner.com. There, head of AI developer experience Max Schwenk used Anthropic's Claude Opus 5.5 to generate the entire port, deploying more than 20 AI subagents in parallel and waking to a functioning typechecker. "I wrote zero code. Not 'barely any'. Zero," Schwenk wrote. The resulting tool already runs 2.5 to five times faster than Microsoft's Go-based nightly compiler while using about a third as much memory, Schwenk reported.
Cloudflare's Nakazawa stressed the cooperative nature of the effort. "To be clear, we are not forking TypeScript. We believe the TypeScript team should remain in full control of the language's design and direction," a blog post co-authored with Cloudflare engineers Boshen Chen and Dimitri Mitropoulos states. Microsoft's principal product manager for TypeScript, Daniel Rosenwasser, confirmed the collaboration, noting in a Hacker News discussion that "some of what is going to make TS 7.1 faster and leaner … actually comes from optimizations discovered in tsrs." Rosenwasser announced the TypeScript 7.1 beta earlier on the same day, detailing substantial speed and memory improvements.
The Rust port, now part of Cloudflare's Oxc JavaScript toolchain, offers particular advantages for WebAssembly (Wasm). Rust compiles to Wasm without bringing a garbage collector along, reducing overhead in resource-constrained environments. For Cloudflare, this could enable complete development environments to run inside browsers and Workers sandboxes where AI agents write, check, and build applications.
Maintaining compatibility with Microsoft's TypeScript is an acknowledged challenge. Schwenk's team runs TypeScript's conformance tests, deliberately introduces errors into real projects, and uses Rust memory-safety tools. "A faster compiler that finds fewer errors is a broken compiler with good marketing," he wrote. Some discrepancies remain, such as diagnostic message ordering, and Cloudflare plans to apply the same AI-assisted process used in Vinext its Vite-based reimplementation of Next.js to monitor upstream TypeScript and propose fixes.
