oxc-project/tsrs
Developer ToolsA Rust implementation of the TypeScript 7 type checker that acts as a faster, lower-memory drop-in replacement for tsc and the language server.
What it is
tsrs is a Rust port of the TypeScript 7 type checker, intended as a drop-in replacement for the TypeScript 7 compiler and language server. The stated goal is full conformance to the pinned TypeScript release while using less memory and checking types faster Read the announcement. It ships as a CLI, an editor language server, a Node API, and a WebAssembly build, so it can slot into existing TypeScript build and editor workflows.
Quick start
Install the npm package as a dev dependency and run a type check without emitting files:
pnpm add -D tsrs
pnpm exec tsrs --noEmit --fast
--fast enables performance optimizations such as adaptive checker counts and extra caches; the same preset can be turned on with TSRS_FAST=1 fast mode. Without --fast, tsrs keeps the pinned TypeScript compiler's checker settings.
To evaluate it without installing, use the browser playground. Editor setup, CLI flags, memory tuning, and the Node API are documented in the usage guide, editor setup, and Node API.
Type-aware lint
From tsrs 0.23.0, tsrs-lint can back Oxlint's type-aware rules in place of tsgolint. With Oxlint 1.92.0 or later and tsrs installed, run:
pnpm add -D oxlint tsrs
TSRS_FAST=1 pnpm exec oxlint --type-aware --type-check
Only files that Oxlint lints are type-checked in this run, so keep a separate tsrs --noEmit run for whole-program checking type checking in the lint run.
Conformance and versioning
The project targets a stable release against TypeScript 7.1 with full conformance; supported features and known gaps are tracked in compatibility and evidence. Default mode reproduces the pinned compiler's checker behavior, including diagnostic differences that arise when checker count or file order changes; remaining runtime differences are listed in differences from pinned TypeScript.
Versions encode the supported TypeScript release plus an unpadded tsrs revision, e.g. 7.1.0-beta.tsrs1 or 7.1.0-tsrs1 for stable TypeScript. These are prereleases published to npm's next tag. Note that SemVer compares tsrsN as text, so tsrs10 sorts before tsrs9.
Constraints
- Conformance is a work in progress; the roadmap is a stable release with 100% conformance against TypeScript 7.1, not an already-finished guarantee.
- Default mode inherits TypeScript's sensitivity to checker count and file order, so diagnostics may differ from a different TypeScript invocation.
- The GitHub repository is license Apache-2.0 and is a derivative of TypeScript; bundled
lib.*.d.tsfiles come from TypeScript, see the NOTICE. It is not affiliated with or endorsed by Microsoft. - The issue tracker is open for bug reports with minimal reproductions, but pull requests are closed due to review bandwidth.
HotRepo's take
The repository recorded 3,504 stars and 86 forks in a Rust-language daily snapshot on 2026-12-01, when it ranked 2nd on that language list and gained 16 stars for the day. That is the only HotRepo snapshot available, so it shows a strong one-day position within the Rust list rather than a multi-day trend. The project's practical draw is that it targets a drop-in role for an existing, widely used toolchain while the README positions conformance and memory as the open questions; the compatibility document is the place to check before relying on it for strict build parity.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
Hacker News
You might also like
- colinhacks/reyloTurns raw .sql files into typed TypeScript imports by asking your dev database for column and parameter types, no codegen.
- microsoft/TypeScriptAdds optional types to JavaScript so large codebases can be refactored and checked before they run.
- Aaryan-Kapoor/english-rsA Rust joke that doubles as a real grammar checker: type-level English plus the englishc prose linter.
- cloudflare/oxlint-configShared Oxlint preset adding type-safety and promise-handling rules for Cloudflare JavaScript and TypeScript projects.
- expo/exactBuild one Contract UI in TypeScript or Rust and run it natively on web, macOS, iOS, and Linux.