JavaScript Ast

Open-source JavaScript projects categorized as Ast

Top 23 JavaScript Ast Projects

  • prettier

    Prettier is an opinionated code formatter.

    Project mention: Angular 14 + Prettier + Husky Setup | dev.to | 2024-03-01

    What is Prettier 😎?

  • Acorn

    A small, fast, JavaScript-based JavaScript parser

    Project mention: Abstract Syntax Trees and Practical Applications in JavaScript | dev.to | 2023-10-21

    Why do we then have other JavaScript parsers like babel parser, swc parser, acorn, espree and the likes since JavaScript engines have their own internal parsers?

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

  • remark

    markdown processor powered by plugins part of the @unifiedjs collective (by remarkjs)

    Project mention: Which software do you use to create presentations using Vim that is superior to existing ones? | /r/neovim | 2023-12-11

    I also didn't try this tool but it's called RemarkJS which is named too similar to revealjs.

  • js-code-to-svg-flowchart

    js2flowchart - a visualization library to convert any JavaScript code into beautiful SVG flowchart. Learn other’s code. Design your code. Refactor code. Document code. Explain code.

    Project mention: JS2flowchart – convert any JavaScript code into beautiful SVG flowchart | news.ycombinator.com | 2023-05-12
  • astexplorer

    A web tool to explore the ASTs generated by various parsers.

    Project mention: ESLint: under the hood | dev.to | 2023-11-07

    The rule that I want to write will be called not-allows-underscore: the idea is to abolish the use of underscores when declaring variables or functions. It's a real dummy rule, but it should be enough to see in action the concepts that we have discussed earlier. The first thing that I would do is to go to AST Explorer, write down a code that declares variables and functions (both standard and arrows one) and take a look at what type of node is the one that encodes the identifier. Doing that, I found out that the node type of my interest is Identifier, what a surprise! 🤣. In particular, the structure of the node holds the string used as identifier in the name property.

  • gogocode

    GoGoCode is a transformer for JavaScript/Typescript/HTML based on AST but providing a more intuitive API.

  • unified

    ☔️ interface for parsing, inspecting, transforming, and serializing content through syntax trees

    Project mention: No CMS? Writing Our Blog in React | news.ycombinator.com | 2024-02-12

    From TFA:

    > My idea was that surely it's possible to write a bunch of markdown, and then have that get wrapped in a bunch of JSX tags that come pre-styled, using the styles of your existing repo? For example, what I expected was to be able to write *test* (Markdown for bold) and then get a component that looked liketest where is a library-defined React component

    It surely is possible, so perhaps I can share some links if others are wondering the same thing.

    If you like to roll your own solution for that, you can use the unified ecosystem: https://unifiedjs.com/

    However, if you want JSX just do what everyone does and reach for MDX:

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • ESDoc

    ESDoc - Good Documentation for JavaScript

  • escodegen

    ECMAScript code generator

  • retext

    natural language processor powered by plugins part of the @unifiedjs collective

  • csstree

    A tool set for CSS including fast detailed parser, walker, generator and lexer based on W3C specs and browser implementations

    Project mention: Building a lightweight CSS formatter | dev.to | 2023-06-12

    After thinking about the problem for a while I realised that I could enlist the help of CSSTree to do some of the work. The CSS Analyzer is based on CSSTree's AST, so I know how the thing works and the dependency is already on the page, so no need to download more dependencies. Prettier + Postcss cost almost 340kB to download, which isn't huge, but it would be nice if we could reduce that amount.

  • micromark

    small, safe, and great commonmark (optionally gfm) compliant markdown parser

  • birdseye

    Graphical Python debugger which lets you easily view the values of all evaluated expressions

  • rehype

    HTML processor powered by plugins part of the @unifiedjs collective

    Project mention: I built an Markdown editor using Next.js and TailwindCss 🔥 | dev.to | 2023-11-14

    Add Remark and Rehype plugins

  • starry-night

    Syntax highlighting, like GitHub

    Project mention: Astro Markdoc: Readable, Declarative MDX Alternative | dev.to | 2023-11-15

    See starry-night docs for more details on how it works. Some interesting points to note in the starry-night setup here are:

  • astring

    🌳 Tiny and fast JavaScript code generator from an ESTree-compliant AST.

  • solhint

    Solhint is an open-source project to provide a linting utility for Solidity code.

  • estraverse

    ECMAScript JS AST traversal functions

  • esquery

    ECMAScript AST query library.

  • webassemblyjs

    Toolchain for WebAssembly

  • putout

    🐊 Pluggable and configurable JavaScript Linter, code transformer and formatter with built-in ESLint and Babel support for js, jsx typescript, flow, markdown, yaml and json. Write declarative codemods in a simplest possible way 😏

  • php-parser

    :herb: NodeJS PHP Parser - extract AST or tokens (by glayzzle)

  • astq

    Abstract Syntax Tree (AST) Query Engine

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

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 2024-03-01.

JavaScript Ast related posts

Index

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

Project Stars
1 prettier 47,840
2 Acorn 10,084
3 remark 7,065
4 js-code-to-svg-flowchart 6,955
5 astexplorer 5,848
6 gogocode 5,086
7 unified 4,179
8 ESDoc 2,745
9 escodegen 2,601
10 retext 2,323
11 csstree 1,817
12 micromark 1,626
13 birdseye 1,622
14 rehype 1,558
15 starry-night 1,289
16 astring 1,116
17 solhint 982
18 estraverse 908
19 esquery 780
20 webassemblyjs 761
21 putout 639
22 php-parser 509
23 astq 195
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com