# cezheng/Fuzi

A fast & lightweight XML & HTML parser in Swift with XPath & CSS support

Repository: https://github.com/cezheng/Fuzi
Canonical: https://ross.abutalabs.com/products/fuzi
Language: Swift
License: MIT
License Family: permissive
Topics: xml, xml-parsing, xml-parser, xpath, html, html-parsing, html-parser, css, ios, swift, parser, parsing
Last push: 2024-07-12T23:44:01+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4005, "days_push": 782, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1105, forks 166 (observed 2026-08-28T04:03:36.446321+00:00)

## What it is
Fuzi is a fast, lightweight Swift library for parsing XML and HTML documents, built on libxml2 as a Swift port of Ono. It provides a modern Swift API with support for XPath and CSS selector queries, namespace handling, and automatic date/number conversion.

## Use cases
- parse xml documents in swift
- scrape html pages with css selectors
- query xml with xpath expressions
- extract attributes and elements from html in an ios app
- parse rss or atom feeds in swift
- traverse xml node trees with a clean api

## When to choose
- you need a fast native Swift XML/HTML parser on Apple platforms
- you want XPath or CSS query support in Swift
- you prefer a modern Swift API over Objective-C Ono

## When to avoid
- you need parsing outside Apple platforms or non-Swift projects
- you need streaming parsing of very large documents
- you need a parser with active heavy development

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, web-scraping
- domain: parsers, web-development, developer-tools
- platform: cross-platform
- tags: xml-parser, html-parser, xpath, css-selectors, libxml2, swift, ios, macos

## Member repositories
- cezheng/Fuzi (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:36.446321+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:44:21.390667+00:00, confidence not recorded.
  - readme: https://github.com/cezheng/Fuzi (fetched 2026-08-28T04:03:36.446321+00:00, sha 1a7a91da5e36)
- Data as of 2026-08-30T08:39:29.467469+00:00.
