TypeScript Compiler

Open-source TypeScript projects categorized as Compiler

Top 23 TypeScript Compiler Projects

  • Svelte

    Cybernetically enhanced web apps

    Project mention: Introducing react.dev: the new React docs site! | reddit.com/r/reactjs | 2023-03-16
  • Babel (Formerly 6to5)

    🐠 Babel is a compiler for writing next generation JavaScript.

    Project mention: Babel is used by millions, so why are we running out of money? (2021) | news.ycombinator.com | 2023-02-18

    I do appreciate your transparency, though I disagree with the sentiment that I’m arguing from a position of bad faith.

    It’s a self-evident fact that the Babel team has not shown a moment of interest in lowering their role in the JavaScript ecosystem to anything short of kingmakers. Have a gander at their GitHub README and what do we see?[1]

    - “Babel is a compiler for writing next generation JavaScript.” Indefinitely.

    - Over a dozen sponsor logos. An embarrassment of riches.

    - A literal audio recording of a song in praise of the project.

    The Babel team has a well documented history of their priorities[2], emphasizing the need for a modular approach that has no exit strategy[3]. At best, we have a case of accidental entrenchment and long term dependence on the Babel brewing as early as 2017![4]

    Compare this infinite circus to the humble but popular Normalize.css, which has the express purpose to stop existing.[5]

    If the Babel team wants to raise some money, they can start by putting a plan together that would codify an exit strategy. It’s certainly more noble than their current plan of barnacling on to every NPM package…

    - [1] https://github.com/babel/babel

    - [2] https://github.com/babel/notes

    - [3] https://github.com/babel/notes/blob/master/2016/2016-07/july...

    - [4] https://github.com/babel/notes/blob/master/2017/2017-04/apri...

    - [5] https://nicolasgallagher.com/about-normalize-css/

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

  • compiler-explorer

    Run compilers interactively from your web browser and interact with the assembly

    Project mention: Any recommendations for learning compiler efficient programming? | reddit.com/r/AskComputerScience | 2023-03-17

    Godbolt is your friend.

  • mitosis

    Write components once, run everywhere. Compiles to Vue, React, Solid, Angular, Svelte, and more.

    Project mention: Best front-end stack for Golang backend | reddit.com/r/golang | 2023-01-28

    I discovered https://github.com/BuilderIO/mitosis, and it has changed my front-end development workflow with the ability to create one development and export and test metrics on multiple front-ends delivering the best MVP possible.

  • sucrase

    Super-fast alternative to Babel for when you can target modern JS runtimes

    Project mention: The TypeScript compiler is now implemented internally with modules | news.ycombinator.com | 2022-11-02

    Hi, Sucrase author here.

    To be clear, the benchmark in the README does not allow JIT warm-up. The Sucrase numbers would be better if it did. From testing just now (add `warmUp: true` to `benchmarkJest`), Sucrase is a little over 3x faster than swc if you allow warm-up, but it seemed unfair to disregard warm-up for the comparison in the README.

    It's certainly fair to debate whether 360k lines of code is a realistic codebase size for the benchmark; the higher-scale the test case, the better Sucrase looks.

    > worse it disables esbuild and swc's multi-threading

    At some point I'm hoping to update the README benchmark to run all tools in parallel, which should be more convincing despite the added variability: https://github.com/alangpierce/sucrase/issues/730 . In an ideal environment, the results are pretty much the same as a per-core benchmark, but I do expect that Node's parallelism overhead and the JIT warm-up cost across many cores would make Sucrase less competitive than the current numbers.

  • TypeScriptToLua

    Typescript to lua transpiler. https://typescripttolua.github.io/

    Project mention: Lang Lua | news.ycombinator.com | 2022-11-12

    I've had some success with https://github.com/TypeScriptToLua/TypeScriptToLua

    Luau may be an alternative as well, haven't tried it.

    I love Lua, but at larger scales it's unmanageable.

  • solc-js

    Javascript bindings for the Solidity compiler

    Project mention: Compile Solidity In The Browser | dev.to | 2022-10-03

    Since the eth_compile API was deprecated, the available alternatives (Solc-JS and the extended Browser-Solc) work best in a server setup or is tightly coupled to the HTML DOM, they are not so flexible to work with in modern Javascript library environment such as ReactJS, well at least, not so straight-forward. This will make your application throw tantrums as you develop with them which, from my experience, is a terrible developer experience.

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • estrella

    Lightweight and versatile build tool based on the esbuild compiler

  • roblox-ts

    A TypeScript-to-Luau Compiler for Roblox

    Project mention: is it possible to make roblox scripts in a programming language other than lua | reddit.com/r/ROBLOXExploiting | 2022-11-08

    You can use typescript https://roblox-ts.com/

  • verilog2factorio

    This project will compile verilog (a hardware description language) into factorio blueprints.

  • Snel

    A Cybernetical framework for svelte applications in deno

  • tiny-sass-compiler

    Another sass compiler write from scatch,runnable on both node and browser

  • wing

    The Wing Programming Language (by winglang)

    Project mention: Wing: a cloud-oriented programming language - request for feedback | reddit.com/r/ProgrammingLanguages | 2023-01-18

    The project is in early Alpha, we'd love to get as much feedback on the language, its roadmap, and the various RFCs we have.

  • cjstoesm

    A tool that can transform CommonJS to ESM

    Project mention: How to use ESM on the web and in Node.js | dev.to | 2022-09-03

    There are tools to help make migrating code from CommonJS to ES Modules easy. One of the most popular tools is cjstoesm, a command line tool that automatically transforms CommonJS code in Node to its ESM equivalent. Almost all CommonJS code is transformed. However, there are some things that are not transformed. The most notable is the __dirname. __dirname is not part of Node.js, but it is one thing that Node does not suppport in "ESM mode". Luckily, there are replacements. A simple way to polyfill __dirname is to do this:

  • js-ziju

    Compile javascript to LLVM IR, x86 assembly and self interpreting

  • REXS

    A language for writing regular expressions.

    Project mention: Melody - A readable language that compiles to regular expressions, now with Babel and NodeJS support! | reddit.com/r/programming | 2022-04-04

    How do you think this compares to REXS? I personally think REXS is a bit more readable. They're both good though. The thing that would really interest me would be a reverse compiler and neither project has that. I'd like a language to explain complicated regexes to me.

  • ts-transform-import-path-rewrite

    TS AST transformer to rewrite import path

  • uniroll

    Opinionated universal frontend bundler in browser

  • ts-c-compiler

    ⚙️ Tiny C compiler with builtin NASM syntax assembler and emulator written entirely in TypeScript

    Project mention: Tiny-C Compiler | news.ycombinator.com | 2023-03-13

    Recently I'm working on toy C compiler and Assembler in TypeScript[1] and I can confirm that the amount of work that have to be done to compile and print simple Hello World is astronomically huge.

    [1] https://github.com/Mati365/ts-c-compiler

  • cashscript

    ⚖️ Easily write and interact with Bitcoin Cash smart contracts

    Project mention: How would someone claim cashscript p2sh funds with their authorized address? | reddit.com/r/btc | 2023-02-22

    This is a stripped down example from p2pkh.cash showing a simple authorized address example:

  • mints

    lightweight typescript compiler

  • bagel

    A reactive and strongly-typed, but also pragmatic, new programming language. Compiles to JavaScript, designed to be comfy for people used to the JavaScript/TypeScript language and ecosystem.

  • psi

    WIP ISO 7185 Pascal interpreter (by komninoschat)

  • Sonar

    Write Clean JavaScript Code. Always.. Sonar helps you commit clean code every time. With over 300 unique rules to find JavaScript bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-03-17.

TypeScript Compiler related posts


What are some of the best open-source Compiler projects in TypeScript? This list will help you:

Project Stars
1 Svelte 66,386
2 Babel (Formerly 6to5) 42,049
3 compiler-explorer 12,779
4 mitosis 8,357
5 sucrase 5,066
6 TypeScriptToLua 1,632
7 solc-js 1,246
8 estrella 1,077
9 roblox-ts 644
10 verilog2factorio 633
11 Snel 310
12 tiny-sass-compiler 283
13 wing 282
14 cjstoesm 281
15 js-ziju 137
16 REXS 132
17 ts-transform-import-path-rewrite 125
18 uniroll 110
19 ts-c-compiler 103
20 cashscript 96
21 mints 93
22 bagel 78
23 psi 48
Write Clean JavaScript Code. Always.
Sonar helps you commit clean code every time. With over 300 unique rules to find JavaScript bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.