Node-Estree VS kataw

Compare Node-Estree vs kataw and see what are their differences.

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.
surveyjs.io
featured
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.
www.influxdata.com
featured
Node-Estree kataw
1 19
11 328
- 0.0%
4.9 0.0
6 months ago about 1 year ago
TypeScript TypeScript
MIT License ISC License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Node-Estree

Posts with mentions or reviews of Node-Estree. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-06.
  • A technical tale of NodeSecure - Chapter 2
    7 projects | dev.to | 6 Jun 2022
    I also had fun re-implementing the ESTree Specification in TypeScript. It helped me a lot to be more confident and comfortable with different concepts that were unknown to me until then.

kataw

Posts with mentions or reviews of kataw. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-21.
  • We've been lied to: JavaScript is very fast
    1 project | /r/javascript | 12 Oct 2021
    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).
  • Rome will be written in Rust
    7 projects | news.ycombinator.com | 21 Sep 2021
    esbuild is the current darling leading the pack, but there are also various other projects in the space (swc[0] is written in Rust, fjb[1] is written in C, bun[2] is written in zig, leveraging JavascriptCore's engine).

    The most significant performance-oriented effort in this space still leveraging JS that I know of is kataw[3], and while that's quite fast compared to babel, it's still within an order of magnitude from babel. Kataw itself is a CST-based implementation that was created to outperform seafox (a AST-based parser by the same developer).

    Babel gained popularity due to the crazy amount of churn in grammar over the past few years, but more and more I think the dust is settling, and flexibility is no longer the name of the game, making an AST-based implementation less appealing. The Rome team must be feeling the heat if the data structure design choices are being informed by performance. I highly doubt someone will be able to compete in performance using a JS implementation in today's landscape.

    [0] https://github.com/swc-project/swc

    [1] https://github.com/sebbekarlsson/fjb

    [2] https://bun.sh/

    [3] https://github.com/kataw/kataw

  • An 100% spec compliant ES2022 Javascript toolchain
    2 projects | /r/javascript | 18 Jun 2021
    Kataw is a *work in progress* javascript toolchain with high focus on performance, and it's main goal is to unify functionality that has previously been separate tools. It's core is an ECMAScript friendly CST that allows you to parse `ECMAScript® 2022 (ECMA-262 12th Edition) language specification`. Each CST node contains several properties, and the `flags` property contains the CST info. The CST info can be extracted from the CST node through public API methods. Click [here](https://github.com/kataw/kataw/tree/main/src/parser#public-api-methods-to-extract-info-from-cst-nodes) for a complete list over all the public API methods. Many of these APIs have the advantage that they allow you to "retrieve" info that is not otherwise available with a standard AST parser. One example is that you only need to use `kataw.isStatementNode` to find out if the current CST node is a statement node. With an AST parser you must use a `switch statement` with 60 `switch cases`. Another example is how easy it is to find out if a keyword node contains an `escaped keyword`. You only need to use `kataw.hasUnicodeEscape`. You can narrow this down further if you use `kataw.isChildLess`. A keyword doesn't have any child nodes. A third benefit with this CST parser is that it is running in `recovery mode` by `default` and can be used in any editor. A build-in diagnostic system reports diagnostics if an `error handler` have been used. The diagnostics are dynamic. It means all the diagnostics are informative, and they will will change based on the context you are parsing in. The diagnostics have been designed like this so you can quickly understand what the problem is and correct it. These features used together gives you more options to adjust, modify and customize the CST tree compared to a regular AST parser and you can also write fewer code lines and at the same time experience insane performance.
  • About An 100% spec compliant ES2022 Javascript toolchain
    1 project | /r/programming | 18 Jun 2021
  • Kataw - An 100% spec compliant ES2022 Javascript toolchain
    1 project | /r/programming | 14 Jun 2021
    1 project | /r/programming | 14 Jun 2021
  • ECMAScript2022 CST parser with error recovery and types
    1 project | news.ycombinator.com | 14 Jun 2021
  • JavaScript CST Parser
    1 project | news.ycombinator.com | 9 Jun 2021
  • ECMAScript2022 CST parser with error recovery
    1 project | news.ycombinator.com | 3 Jun 2021
  • kataw/kataw An insane fast Javascript toolchain.
    4 projects | /r/programming | 30 May 2021

What are some alternatives?

When comparing Node-Estree and kataw you can also consider the following projects:

meriyah - A 100% compliant, self-hosted javascript parser - https://meriyah.github.io/meriyah

esbuild - An extremely fast bundler for the web

cli - JavaScript security CLI that allow you to deeply analyze the dependency tree of a given package or local Node.js project.

estree - The ESTree Spec

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

swc - Rust-based platform for the Web

estree-ast-utils - Utilities for AST (ESTree compliant)

fjb - fast javascript bundler :package:

js-x-ray - JavaScript & Node.js open-source SAST scanner. A static analyser for detecting most common malicious patterns 🔬.

cli - CLI for swc

binjs-ref - Reference implementation for the JavaScript Binary AST format