Preparing for system design interviews?  Try bugzed.com →

SVG Document to HAST Parser

JSON →
library 2.0.4 ·javascript maintenance
verified Jun 17, 2026

svg-parser is a JavaScript library designed for converting SVG (Scalable Vector Graphics) document strings or fragments into a HAST (Hypertext Abstract Syntax Tree) compliant JavaScript object. This transformation provides a highly structured, JSON-friendly representation of the SVG, enabling programmatic manipulation, analysis, or further transformation within the unified syntax-tree ecosystem. The current stable version, 2.0.4, was last published in early 2020, indicating a maintenance-focused development cycle. It stands out by integrating directly with the HAST specification, making it a suitable choice for projects that already leverage unified or rehype for content processing, offering a consistent AST format across various document types like HTML and SVG. It boasts zero runtime dependencies.

total hits 10
actors 4 distinct systems
last hit 19d ago AhrefsBot
GPTBot
4
Script
1
ChatGPT-User
1

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇩🇪 Germany · 🇵🇱 Poland