awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目MCP 服务器关于排名机制媒体报道
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
unifiedjs avatar

unifiedjs/unified

0
View on GitHub↗
4,999 星标·126 分支·JavaScript·MIT·8 次浏览unifiedjs.com↗

Unified

Unified 是一个语法树处理引擎和内容生态系统,旨在解析、转换和序列化文本内容。它作为一个基于插件的内容流水线,利用纯 JavaScript 对象将原始文本转换为结构化的抽象语法树,以便进行程序化的检查和修改。

该项目通过模块化架构脱颖而出,支持跨生态系统转换,允许在 HTML 和 Markdown 等不同规范之间转换语法树。它利用不可变处理器克隆和共享状态容器系统,确保处理流水线可以在不更改原始配置的情况下进行扩展和定制。

该系统提供了全面的语法树管理功能,包括深度优先遍历、基于 CSS 的节点选择和递归转换。其处理范围涵盖自然语言分析、GitHub Flavored Markdown 解析,以及将语法树映射到虚拟 DOM 元素以进行浏览器可视化。

处理逻辑可以通过模块打包器或 CDN 集成到 Web 应用程序中。

Features

  • Content Transformation Pipelines - Implements a modular system of plugin-based pipelines for chaining parsers and transformers to convert content formats.
  • Abstract Syntax Tree Parsing - Provides a core engine for converting complex text formats into structured trees of plain JavaScript objects.
  • Content Processing - Transforms raw file data into final strings through a sequential pipeline of parsing and formatting stages.
  • Format Conversions - Translates syntax trees between different format specifications to enable interoperability between disparate tool ecosystems.
  • Content Node Transformers - Modifies syntax trees by replacing specific patterns with new nodes or values through a plugin-based system.
  • Abstract Syntax Tree Translations - Implements translation of syntax trees between different specifications to enable interoperability across parsing and serialization tools.
  • Abstract Syntax Tree Parsing - Walks and modifies structured data trees to analyze or rewrite content based on syntactic patterns.
  • Manipulation Utilities - Ships a comprehensive set of utilities for programmatic inspection, traversal, and modification of abstract syntax trees.
  • Tree Traversal - Provides programmatic depth-first traversal of syntax trees to locate, modify, or remove specific nodes.
  • Multi-Stage Content Processing - Executes a structured three-part lifecycle that converts raw text to a tree, transforms it, and serializes it back.
  • Parsing Pipeline Plugins - Utilizes a modular plugin system to chain functions that handle the parsing, transformation, and serialization of content.
  • Plugin-Based Extensibility - Adds custom processing logic to the content pipeline using modular plugins and presets.
  • Recursive Tree Transformers - Modifies syntax trees by recursively visiting nodes and applying custom logic to enforce rules.
  • Syntax Tree Construction - Converts raw text into a structured tree of plain JavaScript objects for programmatic inspection and modification.
  • Processing Engines - Provides a complete engine for the three-stage lifecycle of parsing text to a tree, transforming it, and serializing it back.
  • Syntax Traversal - Walks trees of nodes using depth-first traversal to visit and modify specific elements.
  • Syntax Tree Mutation - Transforms content structure by removing specific nodes or replacing them with children.
  • Syntax Tree Printing - Compiles structured syntax trees back into strings of text or other document formats.
  • Syntax Tree Transformers - Runs sequences of plugins to modify or analyze syntax trees before serialization.
  • Markdown-to-HTML Transpilers - Provides a pipeline for transpiling Markdown source into structured HTML via intermediate document models.
  • GitHub Flavored - Extends standard Markdown parsing to support GitHub Flavored Markdown syntax including tables, tasklists, and footnotes.
  • HTML to Markdown Converters - Transforms HTML syntax trees into clean Markdown text through a parsing and serialization pipeline.
  • Markdown to HTML Converters - Transforms Markdown syntax trees into structured HTML for web display using a parsing and serialization pipeline.
  • Inter-Plugin State Sharing - Maintains a shared state container accessible to all plugins within a pipeline for cross-plugin communication.
  • Linguistic Parsing - Converts raw text into structured syntax trees to expose linguistic patterns for analysis.
  • Typed Abstract Syntax Trees - Defines strongly typed interfaces for different content formats to ensure structural correctness during transformation.
  • CSS-Like Selectors - Retrieves specific nodes from a syntax tree using CSS-style selector patterns for intuitive traversal.
  • Context-Aware Traversal - Walks syntax trees while providing a list of parent nodes to enable context-aware transformations.
  • Cross-Format Interoperability - Enables a unified ecosystem where plugins can be shared across disparate specifications like HTML and Markdown.
  • Processor Configuration - Attaches plugins and presets to the processing pipeline to customize how content is parsed and handled.
  • Immutable Configuration Cloning - Allows the creation of independent processor instances through immutable cloning without altering original configurations.
  • Syntax Tree Node Retrieval - Searches syntax trees to find and retrieve specific nodes meeting defined conditions.
  • Content Transformers - Parses text into syntax trees to programmatically modify and convert content between different formats.

Star 历史

unifiedjs/unified 的 Star 历史图表unifiedjs/unified 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

unifiedjs/unified 是做什么的?

Unified 是一个语法树处理引擎和内容生态系统,旨在解析、转换和序列化文本内容。它作为一个基于插件的内容流水线,利用纯 JavaScript 对象将原始文本转换为结构化的抽象语法树,以便进行程序化的检查和修改。

unifiedjs/unified 的主要功能有哪些?

unifiedjs/unified 的主要功能包括:Content Transformation Pipelines, Abstract Syntax Tree Parsing, Content Processing, Format Conversions, Content Node Transformers, Abstract Syntax Tree Translations, Manipulation Utilities, Tree Traversal。

unifiedjs/unified 有哪些开源替代品?

unifiedjs/unified 的开源替代品包括: dtolnay/syn — syn is a Rust syntax tree parser and token stream converter. It serves as a toolkit for procedural macro development,… benjamn/recast — Recast is a JavaScript AST parser and printer designed for automated code refactoring. It converts source code into… commonmark/commonmark.js — Commonmark.js is a library designed to parse and render text formatted according to the CommonMark specification. It… xoofx/markdig — Markdig is a markdown parser library that converts text into structured HTML, plain text, or other formats using a… jonschlinkert/remarkable — Remarkable is an extensible Markdown parser library that implements the CommonMark specification and supports GitHub… remarkjs/remark — Remark is a markdown processor and transformer that converts markdown text into a structured JSON abstract syntax tree…

Unified 的开源替代方案

相似的开源项目,按与 Unified 的功能重合度排序。
  • dtolnay/syndtolnay 的头像

    dtolnay/syn

    3,292在 GitHub 上查看↗

    syn is a Rust syntax tree parser and token stream converter. It serves as a toolkit for procedural macro development, providing a framework to parse Rust source code into structured syntax trees for analysis and transformation. The project enables the manipulation of Rust abstract syntax trees through specialized visitor and folder patterns for traversing and mutating nodes. It provides a bidirectional mapping that allows developers to convert token streams into structured trees and print those trees back into tokens for code generation. The library covers a broad range of syntax analysis ca

    Rustproc-macro
    在 GitHub 上查看↗3,292
  • benjamn/recastbenjamn 的头像

    benjamn/recast

    5,246在 GitHub 上查看↗

    Recast is a JavaScript AST parser and printer designed for automated code refactoring. It converts source code into abstract syntax trees that can be modified and then printed back into source code. The project focuses on formatting-preserving transformations, storing original whitespace and indentation metadata within syntax tree nodes to reconstruct code without losing its original layout. It also generates character-level source maps to maintain precise correspondences between original input and transformed output. The toolkit includes utilities for syntax tree manipulation using a visito

    TypeScript
    在 GitHub 上查看↗5,246
  • commonmark/commonmark.jscommonmark 的头像

    commonmark/commonmark.js

    1,559在 GitHub 上查看↗

    Commonmark.js is a library designed to parse and render text formatted according to the CommonMark specification. It functions as a document processing pipeline that converts plain text into structured HTML or an abstract syntax tree, enabling developers to programmatically inspect, modify, and transform document elements. The library distinguishes itself through its strict adherence to standardized parsing rules, ensuring consistent and predictable output across different software environments. It provides a robust framework for document tree manipulation, allowing users to traverse, insert,

    JavaScript
    在 GitHub 上查看↗1,559
  • xoofx/markdigxoofx 的头像

    xoofx/markdig

    5,127在 GitHub 上查看↗

    Markdig is a markdown parser library that converts text into structured HTML, plain text, or other formats using a configurable pipeline. It functions as a CommonMark compliant parser and an abstract syntax tree generator that transforms markdown into a hierarchical tree of block and inline nodes with precise source location mapping. The project is distinguished by a decoupled renderer architecture that separates parsing logic from output generation, enabling the transformation of the syntax tree into non-HTML formats such as LaTeX or XAML. It also serves as a lossless markdown processor by t

    C#commonmarkcommonmark-parsingcsharp
    在 GitHub 上查看↗5,127
  • 查看 Unified 的所有 30 个替代方案→