- 社区热度
- 26.2k Stars
- GitHub 收藏
- 最近活跃
- 2026/8/24
- 近 30 天还在更新
- 授权协议
- APACHE-2.0
- 宽松协议
为什么值得关注
不是看 Star 排名,而是看它解决了什么问题、实际有没有用,以及方法为什么值得关注。
解决的问题
使用 Go 语言重新实现 TypeScript 编译器,解决现有 JavaScript/TypeScript 工具链在大型项目中的性能瓶颈。
实际价值
提供 npm 预览包和 VS Code 插件,支持类型检查、编译、监听模式与增量构建等核心功能,但公共 API 尚处于未就绪状态。
创新 / 差异化
将通常由 JavaScript 编写的编译器核心迁移至 Go 语言运行,通过底层重写探索语言工具链性能极限。
扩展潜力
项目最终计划合并回微软官方主仓库,短期内作为独立实验分支验证原生编译方案。
为什么是现在
随着大型单体仓库和复杂类型系统规模持续膨胀,TypeScript 编译性能优化需求正变得极为迫切。
社区活跃度
近 90 天新增 248 个 Issue、540 个 PR;窗口内抽取的 Issue/PR 样本中有 21 位 Issue 发起者、20 位 PR 贡献者,并发布 2 个版本。
维护者响应
窗口内 98 个 Issue 样本关闭率 100%,97 个 PR 样本合并率 69%。维护者响应统计覆盖该 Issue 样本的 70%,响应率 16%,首次响应中位数 1.2 天。
核心亮点
- 基于 Go 语言重写的编译器核心
- 与 TypeScript 6.0 兼容的类型检查与语法解析
- 支持 tsconfig.json 配置与增量构建
快速开始
安装方式、上手难度、开始步骤。
装在哪
本地运行
难不难
中等,需要一点配置
- 01通过 npm 安装预览版包。
- 02使用
npx tsgo命令替代原有的tsc进行编译。 - 03若在 VS Code 中使用,需在设置中添加
"js/ts.experimental.useTsgo": true。
更适合谁
- 想在本机直接跑起来试用的开发者
更多介绍
TypeScript-Go 是 TypeScript 编译器的原生 Go 语言实现。该项目通过重写编译器核心,在保持与 TypeScript 6.0 语法和类型系统高度兼容的前提下,提高编译与类型检查的性能。
目前该项目处于预览阶段,已实现包括程序创建、解析、类型检查、代码生成以及增量构建在内的核心功能。该项目最终将合并至微软官方 TypeScript 仓库中。
信息来源
每条信息都标注了状态与出处,可展开查看。
14 条 · 展开
信息来源
每条信息都标注了状态与出处,可展开查看。
capability tags
已核验code_quality
来源: admin_cms · cms editor · 2026/8/22
editor note
已核验{"en":"This is an official Microsoft project porting the TypeScript compiler to Go, currently in preview with plans to merge into the main repository. It is suitable for developers looking to test higher-performance compilation in their build pipelines.","zh":"这是微软官方推出的 TypeScript 编译器 Go 语言移植项目,目前处于预览阶段,未来合并回主仓库。适合希望在构建流程中测试更高性能编译器的开发者。"}
来源: admin_cms · cms editor · 2026/8/22
how to use
已核验{"steps":[{"en":"Install the preview package via npm.","zh":"通过 npm 安装预览版包。"},{"en":"Use the `npx tsgo` command as a replacement for `tsc` to compile your project.","zh":"使用 `npx tsgo` 命令替代原有的 `tsc` 进行编译。"},{"en":"To use it in VS Code, add `\"js/ts.experimental.useTsgo\": true` to your settings.","zh":"若在 VS Code 中使用,需在设置中添加 `\"js/ts.experimental.useTsgo\": true`。"}],"installAt":"local","difficulty":"medium"}
来源: admin_cms · cms editor · 2026/8/22
intro
已核验{"en":"TypeScript-Go is a native Go implementation of the TypeScript compiler. By rewriting the compiler core, it aims to improve compilation and type-checking performance while maintaining high compatibility with the TypeScript 6.0 syntax and type system.\n\nThe project is currently in a preview state, with core features such as program creation, parsing, type checking, code generation, and incremental builds already implemented. It is intended to be merged into the official Microsoft TypeScript repository in the future.","zh":"TypeScript-Go 是 TypeScript 编译器的原生 Go 语言实现。该项目通过重写编译器核心,在保持与 TypeScript 6.0 语法和类型系统高度兼容的前提下,提高编译与类型检查的性能。\n\n目前该项目处于预览阶段,已实现包括程序创建、解析、类型检查、代码生成以及增量构建在内的核心功能。该项目最终将合并至微软官方 TypeScript 仓库中。"}
来源: admin_cms · cms editor · 2026/8/22
最新版本
已核验typescript/v7.0.2
来源: GitHub 官方接口 · latest_release=typescript/v7.0.2 · 2026/8/25
许可证
已核验Apache-2.0
来源: GitHub 官方接口 · license.spdx_id=Apache-2.0 · 2026/8/25
needs api key
已核验否
来源: admin_cms · cms editor · 2026/8/22
一句话用途
已核验{"en":"A native Go implementation of the TypeScript compiler, designed to improve type checking and build performance by rewriting core logic.","zh":"TypeScript 编译器的原生 Go 语言实现,通过重写核心逻辑提升类型检查与构建性能。"}
来源: admin_cms · cms editor · 2026/8/22
平台
已核验windows、macos、linux
来源: admin_cms · cms editor · 2026/8/22
分类线索
根据材料推断developer-tools
来源: 项目说明文档 · hint=developer-tools · 2026/8/16
product forms
已核验cli、ide_plugin
来源: admin_cms · cms editor · 2026/8/22
role tags
已核验frontend、backend、fullstack
来源: admin_cms · cms editor · 2026/8/22
supports local
已核验是
来源: admin_cms · cms editor · 2026/8/22
supports self host
已核验否
来源: admin_cms · cms editor · 2026/8/22
相关项目
根据分类、能力和适用角色匹配的其他已核验项目。
claude-code
运行在终端中的 Agent 编程工具,可理解代码库、执行日常开发任务、解释代码并处理 Git 工作流。
spec-kit
一套遵循「规范驱动开发」流程的开源 CLI 工具包,配合 AI 编程 Agent 按照规范生成与执行代码。
codex
运行在本机的 OpenAI 编程 Agent,可通过终端使用,也提供 IDE 和桌面应用入口。
pyright
微软维护的 Python 静态类型检查器,提供命令行工具和 Visual Studio Code 扩展。
openwiki
用 Agent 为代码库或个人资料生成并持续更新 Markdown Wiki 的 CLI,并提供本地关系图可视化。
puppeteer
基于 DevTools Protocol 或 WebDriver BiDi 控制 Chrome 和 Firefox 的 JavaScript 自动化 Node.js 库。

