Cloudflare and security startup VoidZero are jointly developing tsrs, a Rust implementation of the TypeScript compiler, as part of the Oxc JavaScript toolchain.
Cloudflare and security startup VoidZero are jointly developing tsrs, a Rust implementation of the TypeScript compiler, as part of the Oxc JavaScript toolchain. The project aims to reduce compilation delays and memory consumption for developers, enabling faster code checking and broader access to development environments, including browser-based tools.
The initiative involves close coordination with the official TypeScript team, which retains full authority over the language's design and evolution. Developers behind tsrs emphasize they are not creating a fork but rather seeking to mirror TypeScript's functionality while improving efficiency. This distinction reflects their intent to avoid disrupting the existing governance model of the language.
Early performance tests indicate the Rust version could offer up to eightfold speed improvements and reduce memory usage by approximately 70% relative to TypeScript 7.0 when operating with comparable parallel processing units. These gains stem partly from optimizations initially explored within the tsrs project and may eventually be integrated upstream into TypeScript's codebase.
Prior attempts to port TypeScript to alternative languages have largely stalled, with only the language's own migration from JavaScript to Go achieving sustained success. The emergence of advanced AI tools capable of automated code translation has recently enabled renewed experimentation, including faithful Rust and C++ reimplementations. Cloudflare notes that WebAssembly compatibility makes Rust particularly well-suited for deployment in constrained environments such as serverless platforms and embedded systems.
The company highlights that its Workers platform has supported WebAssembly for years and recently expanded support for native Rust compilation. This infrastructure allows development toolchains to operate within tightly restricted sandboxed environments, potentially enabling new models for client-side code analysis or edge computing applications.
Maintenance of the tsrs project will involve synchronization with TypeScript's evolution through automated testing workflows similar to those used in maintaining other open-source tools like Next.js. The team plans to minimize behavioral divergence from the reference implementation while exploring opportunities to contribute performance enhancements back to the broader TypeScript ecosystem.
Future integration points may include linting utilities within Cloudflare's developer tools, such as Oxlint. The overarching objective is to establish tsrs as a sustainable open-source project that complements, rather than competes with, the official TypeScript distribution. Development efforts will continue to prioritize compatibility, performance, and alignment with the language steward's roadmap.
- Publisher
- Hacker News
- Reliability
- high
- Published
- 10/21/2026, 11:25:58 AM
- Retrieved
- 10/21/2026, 11:25:58 AM
- Relevance
- 80%
- Confidence
- 85%

