awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
inikulin avatar

inikulin/parse5

0
View on GitHub↗
3,903 stars·252 forks·TypeScript·MIT·4 vues

Parse5

parse5 est un parseur et sérialiseur HTML WHATWG pour Node.js. Il transforme les chaînes HTML en un modèle objet de document (DOM) et reconvertit ces arbres en chaînes HTML valides, en suivant la logique définie par le standard HTML Living Standard.

Le projet fonctionne comme un processeur HTML en flux, utilisant une analyse incrémentale pour traiter les documents volumineux par blocs. Il inclut un tokenizer conforme à HTML5 qui utilise une approche par machine à états pour diviser l'entrée en jetons selon les spécifications web officielles.

L'ensemble d'outils couvre l'analyse de documents HTML, la sérialisation et la réécriture en temps réel via des flux. Ces capacités permettent l'analyse programmatique et l'extraction de données à partir de documents HTML tout en maintenant une cohérence entre différents environnements.

Features

  • XML and HTML Document Parsers - Parses HTML5 content from strings or files into in-memory document trees for traversal and manipulation.
  • WHATWG HTML Standard Implementations - Implements the exact parsing and serialization logic defined by the HTML Living Standard for cross-browser consistency.
  • Incremental Parsing - Processes large HTML documents in small chunks via incremental parsing to minimize memory consumption.
  • HTML - Provides incremental parsing of HTML documents via streams to handle large files without loading the entire source into memory.
  • HTML Serialization - Converts structured document object model trees back into valid HTML text strings.
  • HTML Tokenization - Implements a state-machine driven tokenizer that converts character streams into HTML tokens according to web specifications.
  • State-Based Parsing - Implements state-machine driven parsing to track context and handle incoming characters according to HTML standards.
  • DOM Tree Construction - Transforms a sequence of tokens into a hierarchical document object model using specific nesting and stacking rules.
  • DOM Serialization - Transforms a structured document object model back into an HTML string for output or storage.
  • HTML and XML Serialization - Provides the complete pipeline of parsing HTML into a tree and serializing that tree back into HTML strings.
  • HTML String Parsing - Converts HTML strings into a structured tree representation for programmatic analysis of document content.
  • HTML Living Standard Compliance - Ensures parsing and serialization behave consistently by following the official WHATWG HTML Living Standard.
  • HTML Parsers - Provides a complete toolset for parsing and serializing HTML strings into a document object model following WHATWG standards.
  • Large Scale Streaming - Enables parsing and rewriting of massive HTML files using streams to prevent system memory overload.
  • HTML Response Rewriting - Modifies HTML content during the streaming process to perform real-time transformations of the document structure.
  • Incremental HTML Processing - Processes large HTML documents in chunks to minimize memory usage during analysis and real-time rewriting.
  • Parsing Tools - HTML parsing and serialization.
  • Parsing Utilities - Spec-compliant HTML parser.

Historique des stars

Graphique de l'historique des stars pour inikulin/parse5Graphique de l'historique des stars pour inikulin/parse5

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Questions fréquentes

Que fait inikulin/parse5 ?

parse5 est un parseur et sérialiseur HTML WHATWG pour Node.js. Il transforme les chaînes HTML en un modèle objet de document (DOM) et reconvertit ces arbres en chaînes HTML valides, en suivant la logique définie par le standard HTML Living Standard.

Quelles sont les fonctionnalités principales de inikulin/parse5 ?

Les fonctionnalités principales de inikulin/parse5 sont : XML and HTML Document Parsers, WHATWG HTML Standard Implementations, Incremental Parsing, HTML, HTML Serialization, HTML Tokenization, State-Based Parsing, DOM Tree Construction.

Quelles sont les alternatives open-source à inikulin/parse5 ?

Les alternatives open-source à inikulin/parse5 incluent : fb55/htmlparser2 — htmlparser2 is a collection of tools for high-performance markup parsing, DOM manipulation, and incremental stream… whatwg/html — This repository contains the HTML specification, which defines the core standards for web page structuring, content… scinfu/swiftsoup — SwiftSoup is a cross-platform HTML processing library for Swift that converts raw HTML or XML strings and files into a… sunra/php-simple-html-dom-parser — php-simple-html-dom-parser is a PHP library for parsing HTML documents into a traversable in-memory tree that handles… tmpvar/jsdom — jsdom is a Node.js implementation of web standards that functions as a headless browser emulator. It provides a… anglesharp/anglesharp — AngleSharp is an HTML5 DOM parser and web scraping framework designed to parse HTML5, SVG, and MathML documents into a…

Alternatives open source à Parse5

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Parse5.
  • fb55/htmlparser2Avatar de fb55

    fb55/htmlparser2

    4,774Voir sur GitHub↗

    htmlparser2 is a collection of tools for high-performance markup parsing, DOM manipulation, and incremental stream processing. It functions as an HTML and XML parser that converts markup strings into structured object trees, alongside a streaming markup parser designed for memory-efficient processing of large documents. The project includes a DOM manipulation library for querying, modifying, and serializing document object model trees. It also provides a web feed parser to extract structured metadata and entries from RSS, RDF, and Atom feeds. The library covers broad capabilities in data par

    TypeScript
    Voir sur GitHub↗4,774
  • whatwg/htmlAvatar de whatwg

    whatwg/html

    9,163Voir sur GitHub↗

    This repository contains the HTML specification, which defines the core standards for web page structuring, content organization, and document rendering. It establishes the fundamental algorithms for state-machine-based tokenization, tree construction for the document object model, and origin-based security isolation. The specification provides a framework for defining custom elements with independent lifecycles and registries. It also details the requirements for cross-document communication, session history management, and the synchronization of interface properties with content attributes.

    HTMLcanvaseventsourcehtml
    Voir sur GitHub↗9,163
  • scinfu/swiftsoupAvatar de scinfu

    scinfu/SwiftSoup

    5,087Voir sur GitHub↗

    SwiftSoup is a cross-platform HTML processing library for Swift that converts raw HTML or XML strings and files into a structured document object model. It provides the core infrastructure to parse web content into a traversable tree, enabling programmatic access to page elements across iOS, macOS, and Linux. The library features a CSS selector engine for data extraction and a whitelist-based sanitization system to remove unsafe tags and attributes from user-submitted content. It optimizes repetitive document queries through memoized query caching. The project covers DOM manipulation for upd

    Swift
    Voir sur GitHub↗5,087
  • sunra/php-simple-html-dom-parserAvatar de sunra

    sunra/php-simple-html-dom-parser

    1,286Voir sur GitHub↗

    php-simple-html-dom-parser is a PHP library for parsing HTML documents into a traversable in-memory tree that handles malformed markup gracefully. It constructs a complete object graph from raw HTML strings while retaining document structure and relational node hierarchies, and supports lazy child node iteration to load descendant nodes on demand for large documents. The library features a CSS selector query engine that translates selector expressions to locate and filter matching nodes within the parsed DOM tree. Programmatic accessors provide direct string-based attribute retrieval to extra

    HTML
    Voir sur GitHub↗1,286
Voir les 30 alternatives à Parse5→