TypeScript Ast

Open-source TypeScript projects categorized as Ast | Edit details

Top 16 TypeScript Ast Projects

  • Babel (Formerly 6to5)

    🐠 Babel is a compiler for writing next generation JavaScript.

    Project mention: NPM Vulnerability Discussion on Twitter | news.ycombinator.com | 2022-05-10

    The reason it doesn't get called out is because the philosophy of "thousands of small packages" has spread far and wide. [1]

    For every person calling it out like we're doing here, there are ten others praising maintainers able to whip ten semi-useless packages per week.

    It's not just random maintainers making small packages. The core infrastructure of Javascript is in it. Babel is made of hundreds of packages, which all live on the same repository (because of course the maintainers don't want the hassle of maintaining multiple things). Some of those packages don't even have anything of importance in it, just metadata, a couple flags and some boilerplate [2]. The package is just a way of organizing code. Webpack, ESLint and others aren't exactly better.

    The reason people do it is because other popular people have been doing it for a long time, and nobody calls them out on it.

    [1] https://blog.sindresorhus.com/small-focused-modules-9238d977...

    [1] https://github.com/babel/babel/blob/main/packages/babel-plug...

  • PostCSS

    Transforming styles with JS plugins

    Project mention: PurgeCSS & styled-components: Does It Work? | dev.to | 2022-04-29

    The second of those two reasons is very disappointing, as PostCSS is a rich ecosystem of plugins to extend your CSS' functionality and build process. PostCSS is what Babel is for JavaScript, and unfortunately styled-components is missing out on an entire suite of new functionality.

  • 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!

  • esprima

    ECMAScript parsing infrastructure for multipurpose analysis

    Project mention: How to make your own programming language in JavaScript | dev.to | 2022-05-07

    AST is an acronym for Abstract Syntax Tree. It's the way to represent code in a format that tools can understand. Usually in form of tree data structure. We will use AST in the format of an Esprima, which is a JavaScript parser that outputs AST.

  • compodoc

    :notebook_with_decorative_cover: The missing documentation tool for your Angular, Nest & Stencil application

    Project mention: 🚀 Angular 13 + ESLint, Material + Transloco + Jest, TestCafe + Docker + Prettier 🚀 | dev.to | 2022-02-11

    npm run compodoc - generate compodoc documentation

  • ts-morph

    TypeScript Compiler API wrapper for static analysis and programmatic code changes.

    Project mention: Polymorphism Best Practices & Type Safety | reddit.com/r/typescript | 2022-01-27

    I'll definitely look into these two generation suggestions, one I found from a quick google search was [ts-morph](https://github.com/dsherret/ts-morph/tree/latest/packages/ts-morph), but I haven't looked into it further yet.

  • typehole

    TypeScript development tool for Visual Studio Code that helps you automate creating the initial static typing for runtime values

    Project mention: Typehole – Automatically generate TypeScript types from runtime values | news.ycombinator.com | 2021-05-24
  • orgajs

    parse org-mode content into AST

    Project mention: Tree-sitter grammar for org-mode | news.ycombinator.com | 2022-04-07

    Thanks @preek. I mentioned you guys in [3] above. BTW I'm actually using this parser: https://github.com/orgapp/orgajs for my product (https://braintool.org), so there are other choices. I guess the key thing is a single well defined grammar.

    Is GDrive syncing working in Organice these days? I've wanted to demonstrate interop with BrainTool (which syncs to GDrive files) but last I checked there was some bug.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • kataw

    An 100% spec compliant ES2022 JavaScript toolchain

    Project mention: We've been lied to: JavaScript is very fast | reddit.com/r/javascript | 2021-10-12

    It then builds on the assumption that all of Javascript performance scales linearly based on the results of that fishy benchmark. Never mind that in C you can stack allocate, or use arena allocators, or use a million of other tricks, where in JS, once you write {}, you got a heap allocation that you don't have any control over (and if you think this doesn't matter, this is one of the reasons why esbuild is so much faster than babel, or heck even kataw, the fastest JS parsing toolkit I'm aware of).

  • vscode-blockman

    VSCode extension to highlight nested code blocks

    Project mention: I've seen Blockman, but is there something better (or a fix)? | reddit.com/r/vscode | 2022-01-03

    1) https://github.com/leodevbro/vscode-blockman/issues/45

  • react-ast

    render abstract syntax trees with react

    Project mention: Utopia, a visual design tool for React, with code as the source of truth | news.ycombinator.com | 2021-06-15

    I was planning on building something similar. My first attempt involved trying to get grapesjs to work with react. This attempt was very cumbersome because grapesjs generated html, and I would try to manipulate the html into react.

    https://github.com/artf/grapesjs

    Later however, I discovered craft.js, which is basically a framework for creating systems similar to this (page/component editors). Craft.js was inspired by grapesjs, but is specifically made for react.

    https://github.com/prevwong/craft.js

    Of course craft.js only solves the UI editor, not the code parsing/generation part. Babel is an obvious choice for code generation/manipulation, but I found its imperative approach unnecessarily complicated, so I built react-ast to enable declarative and composable code generation using react.

    https://github.com/clayrisser/react-ast

    The part I had not figured out was using the code as the source of truth for the editor and syncing it back. I definitely thought about it a lot, but postponed solving it since I had more pressing problems.

    So, I have a lot of curiosity about this project. How does it work? And how does it stack up against a technology like craft.js? I noticed it’s not using craft.js, so I’m guessing the developers rolled their own equivalent.

  • ts-transform-import-path-rewrite

    TS AST transformer to rewrite import path

  • js-ziju

    Compile javascript to LLVM IR, x86 assembly and self interpreting

    Project mention: Compile javascript to LLVM and x86 assembly | reddit.com/r/typescript | 2021-09-21
  • openapi-typescript-code-generator

    TypeScript code generator via OpenAPI scheme.

  • ucast

    Conditions query translator for everything

  • deno_swc

    The SWC compiler for Deno.

    Project mention: Call for feedback on Frugal, a framework inspired by next | reddit.com/r/Deno | 2022-04-21

    Currently i'm using deno_swc, so it is rather quick, but i did not run any benchmark to know if it is critical to restrict the analysis only to the relevant modules.

  • astx

    the best structural search and replace tool for JavaScript, Flow, and TypeScript

    Project mention: Found this great method in production code | reddit.com/r/programminghorror | 2021-09-17

    I've written a tool for JS (and other people have written tools too) where you can search for a pattern like if ($x) return $y; return $y and it will find any instance of this.

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 2022-05-10.

TypeScript Ast related posts

Index

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

Project Stars
1 Babel (Formerly 6to5) 40,862
2 PostCSS 26,249
3 esprima 6,523
4 compodoc 3,634
5 ts-morph 2,741
6 typehole 1,008
7 orgajs 524
8 kataw 303
9 vscode-blockman 224
10 react-ast 215
11 ts-transform-import-path-rewrite 120
12 js-ziju 119
13 openapi-typescript-code-generator 102
14 ucast 89
15 deno_swc 88
16 astx 20
Find remote jobs at our new job board 99remotejobs.com. There are 7 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.
www.sonarlint.org