# yorickpeterse/oga

Oga is an XML/HTML parser written in Ruby.

Repository: https://github.com/yorickpeterse/oga
Canonical: https://ross.abutalabs.com/products/oga
Language: Ruby
License: MPL-2.0
License Family: copyleft
Topics: ruby, xml, html, parser, xml-parser, html-parser
Last push: 2026-06-10T12:35:06+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 86, release rhythm 8, longevity 100
- inputs: {"age_days": 4571, "days_push": 84, "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 1171, forks 44 (observed 2026-08-28T04:03:51.496144+00:00)

## What it is
Oga is an XML/HTML parser library for Ruby with a simple API for parsing, modifying, and querying documents via XPath. It requires no system libraries like libxml, using a small native extension for performance and supporting thread-safe parsing.

## Use cases
- parse xml documents in ruby
- parse html without libxml
- query documents with xpath
- scrape html pages in ruby
- stream-parse large xml files
- sax parsing of xml feeds

## When to choose
- you want a pure-Ruby-installable XML/HTML parser without native system dependencies
- you need thread-safe parsing in a multi-threaded app
- you want a lighter alternative to Nokogiri

## When to avoid
- you need maximum parsing performance or extensive Nokogiri feature parity
- you need actively developed software with frequent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, web-scraping
- domain: parsers, web-development, developer-tools
- platform: ruby, cross-platform
- tags: xml-parser, html-parser, xpath, sax, nokogiri-alternative

## Member repositories
- yorickpeterse/oga (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:51.496144+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:28:34.083096+00:00, confidence not recorded.
  - readme: https://github.com/yorickpeterse/oga (fetched 2026-08-28T04:03:51.496144+00:00, sha 1c0e98bf0c00)
- Data as of 2026-08-30T08:39:29.467469+00:00.
