# tid-kijyun/Kanna

Kanna(鉋) is an XML/HTML parser for Swift.

Repository: https://github.com/tid-kijyun/Kanna
Canonical: https://ross.abutalabs.com/products/kanna
Language: Swift
License: MIT
License Family: permissive
Topics: swift, html-parser, xml-parser
Last push: 2026-02-25T12:00:01+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 69, release rhythm 60, longevity 100
- inputs: {"age_days": 4462, "days_push": 189, "days_rel": 189, "gap_med": 54, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2486, forks 222 (observed 2026-08-28T04:06:55.590147+00:00)

## What it is
Kanna is a Swift XML/HTML parser library inspired by Ruby's Nokogiri, built on libxml2. It supports XPath 1.0 and CSS3 selector queries across Apple platforms and Linux.

## Use cases
- parse html in swift
- extract data from xml documents in ios app
- scrape web pages with xpath in swift
- query html with css selectors on linux
- parse xml feeds in a macos app

## When to choose
- you need XPath or CSS selector querying in Swift
- you want a Nokogiri-like API for HTML/XML parsing
- you need cross-platform Swift support including Linux

## When to avoid
- you need a validating XML schema processor
- you are not using Swift
- you need streaming parsing of very large documents

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

## Member repositories
- tid-kijyun/Kanna (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:55.590147+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-30T02:28:03.072313+00:00, confidence not recorded.
  - readme: https://github.com/tid-kijyun/Kanna (fetched 2026-08-28T04:06:55.590147+00:00, sha e680b8ce5c2a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
