JohnDeved/awesome-typescript-compilers

GitHub: JohnDeved/awesome-typescript-compilers

这是一个精选的 TypeScript 编译器、转译器和运行时列表,旨在解决开发者选择合适工具的需求。

Stars: 56 | Forks: 2

# 优秀 TypeScript 编译器、转译器与运行时合集 一份精选的 TypeScript 编译器、转译器与运行时列表,旨在支持多种语言和平台。 ## JavaScript 目标平台 | 项目 | 描述 | |------|------| | [tsc](https://github.com/microsoft/TypeScript) | 微软官方 TypeScript 编译器。 ([在线演练](https://www.typescriptlang.org/play)) | | [tsgo](https://github.com/microsoft/typescript-go) | 微软开发的基于 Go 的 TypeScript 编译器,旨在实现 10 倍性能提升。 | | [swc](https://github.com/swc-project/swc) | 基于 Rust 的快速 TypeScript/JavaScript 编译平台。 ([在线演练](https://swc.rs/playground)) | | [esbuild](https://github.com/evanw/esbuild) | 用 Go 编写的极速 TypeScript/JavaScript 打包工具。 ([在线演练](https://esbuild.github.io/try/)) | | [vite](https://github.com/vitejs/vite) | 新一代前端构建工具,支持 TypeScript。 ([在线演练](https://vite.new)) | | [rspack](https://github.com/web-infra-dev/rspack) | 基于 Rust 的 Webpack 兼容打包工具,支持 TypeScript。 ([在线演练](https://playground.rspack.rs/)) | | [Turbopack](https://github.com/vercel/turbo) | 基于 Rust 的增量打包工具,在 Next.js 中零配置支持 TypeScript。 | | [Rsbuild](https://github.com/web-infra-dev/rsbuild) | 集成了 Rspack、SWC 和 Lightning CSS 的快速构建工具。 | | [Rslib](https://github.com/web-infra-dev/rslib) | 基于 Rsbuild/Rspack 构建的库开发工具。 | | [biome](https://github.com/biomejs/biome) | Rome 的后继者,提供统一的 TypeScript 工具链。 ([在线演练](https://biomejs.dev/playground/)) | | [rolldown](https://github.com/rolldown/rolldown) | 快速的 Rust 打包工具,用于 JavaScript/TypeScript,API 与 Rollup 兼容。 ([在线演练](https://repl.rolldown.rs/)) | | [tsdown](https://github.com/rolldown/tsdown) | 由 Rolldown 和 Oxc 驱动的库打包工具;支持构建 TypeScript 并生成声明文件。 | | [farm](https://github.com/farm-fe/farm) | 用 Rust 编写的极速、Vite 兼容的 Web 构建工具。 | | [Mako](https://github.com/umijs/mako) | 基于 Rust 的 Web 打包工具,适用于应用、库和框架。 ([在线演练](https://utoo-repl.vercel.app/)) | | [oxc](https://github.com/oxc-project/oxc) | 基于 Rust 的 JavaScript/TypeScript 工具链,包含解析器、代码检查工具和编译器。 ([在线演练](https://playground.oxc.rs/)) | | [swc4j](https://github.com/caoccao/swc4j) | 面向 JVM 的 TypeScript/JavaScript 编译和打包工具,基于 SWC 构建。 | | [webpack](https://github.com/webpack/webpack) | JavaScript 打包工具,支持 TypeScript 集成。 | | [rollup](https://github.com/rollup/rollup) | JavaScript 模块打包工具,支持 TypeScript。 ([在线演练](https://rollupjs.org/repl/)) | | [parcel](https://github.com/parcel-bundler/parcel) | 零配置的 Web 应用打包工具,支持 TypeScript。 ([在线演练](https://repl.parceljs.org/)) | | [tsup](https://github.com/egoist/tsup) | 由 esbuild 驱动的 TypeScript 打包工具。 | | [babel](https://github.com/babel/babel) | 面向下一代 JavaScript 的编译器,支持 TypeScript。 ([在线演练](https://babeljs.io/repl)) | | [sucrase](https://github.com/alangpierce/sucrase) | Babel 的超快替代方案,专注于现代 JS 运行时。 ([在线演练](https://sucrase.io/)) | | [ezno](https://github.com/kaleidawave/ezno) | 用 Rust 编写的 JavaScript 编译器和 TypeScript 类型检查器,专注于静态分析。 ([在线演练](https://kaleidawave.github.io/ezno/playground/)) | | [stc](https://github.com/dudykr/stc) | 基于 Rust 的 TypeScript 静态类型检查器,专注于性能。 | ## 运行时 | 项目 | 描述 | |------|------| | [deno](https://github.com/denoland/deno) | 用 Rust 编写的安全 TypeScript 运行时和工具包。 | | [bun](https://github.com/oven-sh/bun) | 用 Zig 编写的快速 JavaScript 和 TypeScript 运行时和工具包。 | | [node.js 23.6.0+](https://github.com/nodejs/node/pull/56450) | 23.6.0 及以上版本提供部分支持。 | | [elsa](https://github.com/elsaland/elsa) | 用 Go 编写的轻量级 JavaScript 和 TypeScript 运行时。 | | [elide](https://github.com/elide-dev/elide) | 多语言运行时和工具链,原生支持 TypeScript、JavaScript、Kotlin 和 Python,基于 GraalVM 构建。 ([在线演练](https://play.elide.dev/)) | | [yavascript](https://github.com/suchipi/yavascript) | 基于 QuickJS 的脚本运行时,内置 TypeScript 转译功能,旨在替代 bash。 | | [txiki.js](https://github.com/saghul/txiki.js) | 基于 QuickJS-ng 和 libuv 构建的小型 JavaScript 运行时,通过 `@txikijs/types` 提供 TypeScript 类型定义。 | | [LLRT](https://github.com/awslabs/llrt) | AWS Labs 为 AWS Lambda 打造的低延迟运行时;在提前打包/转译后可运行 TypeScript。 | | [DeviceScript](https://github.com/microsoft/devicescript) | 适用于小型 IoT 设备 (ESP32, RP2040, ...) 的 TypeScript — 微软项目,将 TS 的子集编译为自定义 VM 字节码 (已归档)。 | | [Andromeda](https://github.com/tryandromeda/andromeda) | 基于 Nova 引擎、用 Rust 构建的 JavaScript 和 TypeScript 运行时,支持零配置 TypeScript。 | | [dune](https://github.com/aalykiot/dune) | 基于 V8、用 Rust 构建的爱好者 JavaScript 和 TypeScript 运行时。 | | [azle](https://github.com/demergent-labs/azle) | 运行在 Internet Computer (ICP) 上的 TypeScript 和 JavaScript 的 WebAssembly 运行时。 | ## 加载器 / 执行工具 | 项目 | 描述 | |------|------| | [tsx](https://github.com/privatenumber/tsx) | 使用由 esbuild 驱动的 ESM 加载器运行 TypeScript。 | | [ts-node](https://github.com/TypeStrong/ts-node) | Node.js 的 TypeScript 执行和 REPL 工具。 | | [ts-blank-space](https://github.com/bloomberg/ts-blank-space) | 小型、快速、纯 JS 的类型剥离器,使用官方 TypeScript 解析器。 | | [swc-node](https://github.com/swc-project/swc-node) | 快速的 Node 运行时路径,用于 TypeScript 且不进行类型检查。 | | [esbuild-register](https://github.com/egoist/esbuild-register) | 使用 esbuild 进行即时 JSX/TypeScript/esnext 转译。 | | [tsm](https://github.com/lukeed/tsm) | TypeScript 模块加载器,支持 `node `、`--loader` 和 `--require`。 | | [tsimp](https://github.com/tapjs/tsimp) | Node 导入加载器,使用官方 TypeScript 实现,旨在实现与 `tsc` 一致的类型检查。 | | [Amaro](https://github.com/nodejs/amaro) | Node.js 的 TypeScript 封装,基于 `@swc/wasm-typescript`,在内部用于 Node 的类型剥离。 | | [vite-node](https://github.com/antfu-collective/vite-node) | 传统 Vite 驱动的 Node 运行时,支持 TS;新项目现在应使用 Vite 内置的 Module Runner。 | | [jiti](https://github.com/unjs/jiti) | Node.js 的运行时 TypeScript 和 ESM 支持。 | ## 其他语言目标平台 | 项目 | 目标语言 | 描述 | |------|----------|------| | [AssemblyScript](https://github.com/AssemblyScript/assemblyscript) | `WASM` | 类似 TypeScript 的 WebAssembly 语言。 ([在线演练](https://www.assemblyscript.org/editor.html)) | | [ts2lua](https://github.com/TypeScriptToLua/TypeScriptToLua) | `Lua` | 功能完整的 TypeScript 到 Lua 编译器。 ([在线演练](https://typescripttolua.github.io/play/)) | | [roblox-ts](https://github.com/roblox-ts/roblox-ts) | `Luau` | 用于 Roblox 的 TypeScript 到 Luau 编译器。 ([在线演练](https://roblox-ts.com/playground)) | | [ts2c](https://github.com/andrei-markeev/ts2c) | `C` | 将 JavaScript/TypeScript 转换为 C ([在线演示](https://andrei-markeev.github.io/ts2c/)) | | [TypeScript2Cxx](https://github.com/ASDAlexander77/TypeScript2Cxx) | `C++` | TypeScript 到 C++ 的转译器。 | | [ts2gd](https://github.com/johnfn/ts2gd) | `GDScript` | 将 TypeScript 编译为 Godot 的 GDScript。 | | [typesl](https://github.com/SieR-VR/typesl) | `GLSL` | TypeScript 到 GLSL 的转译器。 | | [hydro-sdk](https://github.com/hydro-sdk/hydro-sdk) | `Flutter` | 无原生桥接,无 V8。仅 Dart。 | | [jsii](https://github.com/aws/jsii) | `Python/Java/C#/.NET/Go/...` | 允许您使用 TypeScript 编写库,并从 Python、Java、C#/.NET、Go 等语言消费它们。 | | [ts2nim](https://github.com/bung87/ts2nim) | `Nim` | TypeScript 到 Nim 的转译器。 | | [ts2dart](https://github.com/dart-archive/ts2dart) | `Dart` | TypeScript 到 Dart 的转译器。 | | [SharpTS](https://github.com/nickna/SharpTS) | `.NET IL` | 用 C# 实现的 TypeScript 解释器/编译器,支持提前编译为 .NET IL。 | | [speedy.js](https://github.com/MichaReiser/speedy.js) | `WASM` | 将 TypeScript 编译为 WebAssembly 以加速执行。 | | [ts2rust](https://github.com/vedantroy/ts2rust) | `Rust` | TypeScript 到 Rust 的转译器。 | | [ts2php](https://github.com/searchfe/ts2php) | `PHP` | TypeScript 到 PHP 的转译器。 | | [ts2py](https://github.com/chayleaf/ts2py) | `Python` | TypeScript 到 Python 的转换器。 | | [ast-transpiler](https://github.com/carlosmiei/ast-transpiler) | `PHP/Python/C#/Go` | 开发中,基于 AST 的从 TypeScript 到 PHP、Python、C# 和 Go 的转译器。 | | [Karakum](https://github.com/karakum-team/karakum) | `Kotlin` | 将 TypeScript 声明文件转换为 Kotlin 声明。 | | [Porffor](https://github.com/CanadaHonk/porffor) | `WASM/Native` | 提前编译的 JavaScript/TypeScript 编译器,可生成 WebAssembly 和原生二进制文件。 | | [ts2go](https://github.com/leona/ts2go) | `Go` | 实验性的 TypeScript 到 Go 转译器。 ([在线演练](https://ts2go.pages.dev/)) | | [ts-swift-transpiler](https://github.com/marcelganczak/ts-swift-transpiler) | `Swift` | 使用 ANTLR 构建的 JavaScript/TypeScript 到 Swift 转译器。 | | [ts2haxe](https://github.com/Ezelia/ts2haxe) | `Haxe` | TypeScript 到 Haxe 的转换器,可自动处理常见转换任务。 | | [Wasmnizer-ts](https://github.com/web-devkits/Wasmnizer-ts) | `WasmGC` | 用于将 TypeScript 编译为支持垃圾回收的 WebAssembly 的工具链。 | | [poseidon](https://github.com/Turbin3/poseidon) | `Anchor (Rust)` | 将 TypeScript Solana 程序转换为 Anchor (Rust) 的转译器。 | ## 实验性/研究项目 | 项目 | 类型 | 描述 | |------|------|------| | [BosqueLang](https://github.com/microsoft/BosqueLanguage) | `研究语言` | 由微软创建的类 TypeScript 语言。 | | [TypeRunner](https://github.com/marcj/TypeRunner) | `原生编译器` | 实验性的 TypeScript 到原生代码编译器。 | | [StaticScript](https://github.com/StaticScript/StaticScript) | `研究语言` | 一种新的静态类型编程语言,支持原生编译。 | | [tsCompiler](https://github.com/ASDAlexander77/TypeScriptCompiler) | `原生编译器` | 使用 LLVM 的 TypeScript 到原生代码编译器。 | | [ts-llvm](https://github.com/emillaine/ts-llvm) | `原生编译器` | TypeScript 到 LLVM IR 编译器,支持 AOT 原生编译 (已归档)。 | | [mini-typescript](https://github.com/sandersn/mini-typescript) | `教育用途` | TypeScript 编译器的微型模型,旨在教授真实编译器的结构。 | | [muta-minits](https://github.com/nervosnetwork/muta-minits) | `原生编译器` | 来自 Nervos Network 的 TypeScript 到 LLVM 编译器,用于 Muta 区块链框架 (已归档)。 | | [typescript-types-only-wasm-runtime](https://github.com/MichiganTypeScript/typescript-types-only-wasm-runtime) | `类型层面` | 一个完全用 TypeScript 类型实现的 WebAssembly 运行时。 | | [tyvm](https://github.com/zackradisic/tyvm) | `类型层面` | 实验性的字节码解释器/类型检查器,用于类型层面的 TypeScript,用 Zig 编写。 |
标签:AI工具, awesome, CMS安全, Go, JavaScript, rizin, Ruby工具, Rust, Syscall, TypeScript, Web开发, 代码工具, 可视化界面, 增量构建, 安全插件, 工具链, 库开发, 开发资源, 性能优化, 打包器, 数据可视化, 日志审计, 检测绕过, 类型系统, 精选列表, 编程语言, 编译器, 网络流量审计, 资源集合, 转译, 转译器, 软件工具, 运行时, 零配置