Skip to content
@syntax-tree

syntax-tree

πŸŒ²πŸŒ²πŸŒ²πŸŒ³πŸŒ²πŸŒ³πŸŒ²πŸŒ²πŸŒ²πŸŒ³πŸŒ³πŸŒ²πŸŒ²πŸŒ³πŸŒ²πŸŒ²πŸŽ„πŸŒ²πŸŒ³πŸŒ²πŸŒ²πŸŒ³πŸ»πŸŒ³πŸŒ³πŸŒ³πŸŒ²πŸŒ²πŸŒ³πŸŒ²πŸŽ„πŸŒ²πŸŒ³πŸŒ²πŸŒ²πŸŒ³πŸŒ³πŸŒ³

syntax-tree

syntax-tree is an organization that contains 100+ projects that deal with syntax trees based on unist. These trees typically deal with content: markdown (mdast), HTML (hast), natural language (nlcst), XML (xast), but also JavaScript (esast).

  • to learn unist, see its readme
  • you can use syntax trees without having to deal with them, by using unified and its plugins

unified

syntax-tree is part of the unified collective, which brings together organisations that work with content as structured data.

Get involved

This community has a code of conduct. You must follow it when interacting with the community.

Pinned Loading

  1. unist unist Public

    Universal Syntax Tree used by @unifiedjs

    904 21

  2. mdast mdast Public

    Markdown Abstract Syntax Tree format

    1.2k 45

  3. hast hast Public

    Hypertext Abstract Syntax Tree format

    789 24

  4. nlcst nlcst Public

    Natural Language Concrete Syntax Tree format

    213 10

  5. xast xast Public

    Extensible Abstract Syntax Tree

    70 2

  6. esast esast Public

    ECMAScript Abstract Syntax Tree format

    53 1

Repositories

Showing 10 of 140 repositories
  • hast-util-to-dom Public

    utility to transform hast to a DOM tree

    syntax-tree/hast-util-to-dom’s past year of commit activity
    JavaScript 20 ISC 8 0 0 Updated Feb 19, 2025
  • hast-util-to-xast Public

    utility to transform to xast (xml)

    syntax-tree/hast-util-to-xast’s past year of commit activity
    JavaScript 4 MIT 1 0 0 Updated Feb 19, 2025
  • hast-util-from-parse5 Public

    utility to transform Parse5’s AST to hast

    syntax-tree/hast-util-from-parse5’s past year of commit activity
    JavaScript 16 MIT 8 0 0 Updated Feb 19, 2025
  • hast-util-select Public

    utility to add `querySelector`, `querySelectorAll`, and `matches` support for hast

    syntax-tree/hast-util-select’s past year of commit activity
    JavaScript 39 MIT 1 0 0 Updated Feb 19, 2025
  • hast-util-to-jsx-runtime Public

    hast utility to transform to preact, react, solid, svelte, vue, etc

    syntax-tree/hast-util-to-jsx-runtime’s past year of commit activity
    JavaScript 59 MIT 3 0 1 Updated Feb 19, 2025
  • hast-util-to-estree Public

    hast utility to transform to estree (JavaScript AST) JSX

    syntax-tree/hast-util-to-estree’s past year of commit activity
    JavaScript 20 MIT 2 0 0 Updated Feb 19, 2025
  • hast-util-to-html Public

    utility to serialize hast to HTML

    syntax-tree/hast-util-to-html’s past year of commit activity
    JavaScript 98 MIT 19 0 0 Updated Feb 19, 2025
  • hastscript Public

    utility to create hast trees

    syntax-tree/hastscript’s past year of commit activity
    JavaScript 168 MIT 13 0 0 Updated Feb 19, 2025
  • hast Public

    Hypertext Abstract Syntax Tree format

    syntax-tree/hast’s past year of commit activity
    789 24 0 0 Updated Feb 17, 2025
  • mdast-util-to-markdown Public

    mdast utility to serialize markdown

    syntax-tree/mdast-util-to-markdown’s past year of commit activity
    JavaScript 104 MIT 22 1 0 Updated Feb 11, 2025