microsoft开发者工具

Typescript Go

typescript-go

TypeScript 编译器的原生 Go 语言实现,通过重写核心逻辑提升类型检查与构建性能。

  • 前端
  • 后端
  • 全栈
  • 代码质量
  • CLI
  • IDE 插件
  • Windows
  • macOS
  • Linux
  • 支持本地运行
typescript-go 截图
社区热度
26.2k Stars
GitHub 收藏
最近活跃
2026/8/24
近 30 天还在更新
授权协议
APACHE-2.0
宽松协议

为什么值得关注

不是看 Star 排名,而是看它解决了什么问题、实际有没有用,以及方法为什么值得关注。

近 90 天

解决的问题

使用 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 天。

PR 样本 20 位贡献者2 次 ReleaseIssue 响应率 16% · 样本 69(覆盖 70%)首次响应中位数 1.2dPR 合并率 69% · 97 条窗口样本

核心亮点

  • 基于 Go 语言重写的编译器核心
  • 与 TypeScript 6.0 兼容的类型检查与语法解析
  • 支持 tsconfig.json 配置与增量构建

快速开始

安装方式、上手难度、开始步骤。

装在哪

本地运行

难不难

中等,需要一点配置

支持本地运行
  1. 01通过 npm 安装预览版包。
  2. 02使用 npx tsgo 命令替代原有的 tsc 进行编译。
  3. 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

根据分类、能力和适用角色匹配的其他已核验项目。