If you write TypeScript in a large monorepo or a codebase with hundreds of thousands of lines, you know that agonizing feeling: you commit, push your branch, and go grab coffee while the CI runner grinds through tsc --noEmit. On big codebases, typechecking can take five to fifteen minutes, burning cloud CPU minutes and stalling engineers.
Why does this happen? Historically, Microsoft's TypeScript compiler is written in TypeScript itself and runs inside Node.js. V8's garbage collector, AST interpretation, and a single-threaded model impose an unavoidable "Typecheck Tax."
Earlier fast tools like esbuild or swc only solved half the problem: they stripped types in a flash to turn TS into plain JS, without checking type correctness at all. Rewriting a full typechecker with its intricate generics, conditional types, and contextual inference seemed like an impossible undertaking.
Yet VoidZero (founded by Evan You, creator of Vue and Vite), together with Max Schwenk and in direct partnership with Microsoft engineers, unveiled tsrs—an official native port of the TypeScript compiler in Rust.
Up to 8x Faster and 70% Less Memory
Unlike scattered solo enthusiast attempts, tsrs is being built in tight coordination with the official language team. Microsoft retains leadership over the language specification, while tsrs is engineered as a drop-in replacement for the official tsc compiler and TSServer language server with 100% compatibility with the TypeScript 7.1 standard.
Early benchmark results on real projects are striking:
- 6–8x speedup: typechecks that took 8 minutes in CI now finish in just over a minute;
- 70% lower RAM usage: the Rust compiler doesn't suffer from heap fragmentation or VM overhead;
- Type-aware linting in Oxlint: tsrs plugs in as the type-inference backend for the Oxlint linter, unlocking ultra-fast checks across all code-quality rules;
- WebAssembly compilation: thanks to Rust, the compiler can run right in the browser (the online tsrs playground) and in edge workers.
Installation and execution run through the modern Vite+ toolchain:
# 1. Add the native tsrs compiler to your project
vp add -D tsrs
And invoke fast typechecking in CI/CD:
# 2. Run ultra-fast typechecking without emitting JavaScript files
vpx tsrs --noEmit --fast
Of course, the project is still in public stabilization and calibrating conformance against the reference test262 suite. Even so, the arrival of an industrial-scale native typechecker marks the end of painful terminal waits: typed JavaScript is finally getting the compilation speed it deserved from the start.


