# Theo open-sources tsc-rs, a Rust port of the TypeScript 7 compiler

> Original title: T3 Stack 作者 @theo 开源了一个 TypeScript 编译器/类型检查器/LSP 的 Rust 完整移植「tsc-rs」

- Source: meng shao
- Published: 2026-10-09T01:31:04.000Z
- Bad Influence: https://badinfluence.news/items/khl7nu2v4xxrbqav8ks9lzljv
- Original: https://x.com/shao__meng/status/2108369624832356447

## Summary

Theo, creator of the T3 Stack, open-sourced tsc-rs, a line-by-line Rust port of Microsoft's Go-native TypeScript 7 compiler, type checker, and language server under MIT, pinned to typescript-go commit 673a5f17. The author reports tsc-rs is about 1.61× faster than tsc 7 and about 2.95× faster than bun check on six real-app benchmarks on an Apple M4 Pro. The port passes all 181,711 ported Go tests, and CLI output matches the Go version on 120 open-source repos except for known edge cases such as monorepo rootDir and tsc -b incremental output.

## Why it matters

The post reports a benchmarked, test-verified Rust port of the TypeScript 7 compiler, with pinned upstream and stated edge cases useful for judging its compatibility.

## Post

T3 Stack 作者 @theo 开源了一个 TypeScript 编译器/类型检查器/LSP 的 Rust 完整移植「tsc-rs」

它不是从零设计的编译器，是对微软官方 TypeScript 7（typescript-go，Go 原生版） 的逐行为移植，"保留 Go 的算法和行为"，锁定的上游提交是 typescript-go@673a5f17。MIT 协议，保留上游 Apache-2.0 / BSD-3 声明。

开源地址：https://github.com/pingdotgg/ts-rust

核心数据
性能（Apple M4 Pro，hyperfine 取 5 次中位数，120 个真实开源仓库 + 60 个项目测试集）：相对 tsc 7（Go），tsc-rs 快约 1.61×，bun check 快约 2.95×。

兼容性：全部 181,711 个从 Go 移植的测试通过；在 120 个开源仓库上 CLI 输出与 Go 版一致（除已知的 monorepo rootDir、tsc -b 增量输出等少数边界问题）。VS Code 上报的 10 个错误、Sentry 的 2 个错误，与 TypeScript 7.1.0-dev 完全一致；bun check 在 Sentry 多报 3 个、tRPC 多报 2 个。

## AI translation

T3 Stack author @theo open-sourced "tsc-rs", a complete Rust port of the TypeScript compiler/type checker/LSP

It is not a compiler designed from scratch. It is a line-by-line port of Microsoft's official TypeScript 7 (typescript-go, the native Go version), which "preserves Go's algorithms and behavior." The pinned upstream commit is typescript-go@673a5f17. Licensed under MIT, retaining the upstream Apache-2.0 / BSD-3 notices.

Open-source repo: https://github.com/pingdotgg/ts-rust

Key numbers
Performance (Apple M4 Pro, hyperfine, median of 5 runs, 120 real open-source repos + a 60-project test set): compared to tsc 7 (Go), tsc-rs is about 1.61× faster, and bun check is about 2.95× faster.

Compatibility: all 181,711 tests ported from Go pass; across the 120 open-source repos, CLI output matches the Go version (except for a few known edge cases such as monorepo rootDir and tsc -b incremental output). The 10 errors reported by VS Code and the 2 errors reported by Sentry match TypeScript 7.1.0-dev exactly; bun check reports 3 extra in Sentry and 2 extra in tRPC.

![](https://badinfluence.news/api/img-proxy?u=https%3A%2F%2Fpbs.twimg.com%2Fmedia%2FHUJu_NtasAA9T1Q.jpg&mode=thumb&exp=1795651200&sig=bfd7ac383abdd2a1)

## Quoted post @theo

> Announcing tsc-rs (aka ts-rust), my complete rewrite of the Typescript compiler, type checker, and LSP, all in Rust.
> 
> This is a project I've had agents working on for 5 months now. I burned ~$400k of Codex tokens and got nowhere. Burned ~$20k of Opus and got there in 2 weeks.
> 
> I have not read a single line of the code.
> 
> tsc-rs is an open source drop-in replacement for tsc, and it's available now.

https://x.com/theo/status/2107789940482621795
