# libxmljs/libxmljs

NodeJS bindings for libxml2 written in Typescript

Repository: https://github.com/libxmljs/libxmljs
Canonical: https://ross.abutalabs.com/products/libxmljs
Homepage: https://libxmljs.github.io/libxmljs/
Language: C++
License: MIT
License Family: permissive
Last push: 2026-01-12T01:41:03+00:00

## Health v2 (maintenance only)
Score: 70/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 61, release rhythm 65, longevity 100
- inputs: {"age_days": 6013, "days_push": 234, "days_rel": 234, "gap_med": 0.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1060, forks 262 (observed 2026-08-28T04:03:25.764552+00:00)

## What it is
libxmljs provides Node.js bindings to the libxml2 C library, written in TypeScript with native C++ code built via node-gyp. It enables parsing, querying (XPath), and manipulating XML documents with the performance and standards compliance of libxml2.

## Use cases
- parse xml documents in node.js
- query xml with xpath expressions
- validate xml against schemas
- read attributes and text from xml elements
- process large xml files fast in javascript
- convert xml strings into a traversable dom

## When to choose
- you need fast, standards-compliant XML parsing in Node.js
- you want XPath support backed by libxml2
- you need schema validation or mature XML features beyond what pure-JS parsers offer

## When to avoid
- you want a pure-JavaScript dependency with no native compilation
- you only need simple JSON-style XML parsing
- your platform cannot build native addons with node-gyp

## Facets
- artifact type: library
- maturity: active
- function: parser, serialization
- domain: parsers, developer-tools, web-development
- platform: cross-platform
- tags: xml, libxml2, xpath, native-bindings, typescript, nodejs

## Member repositories
- libxmljs/libxmljs (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:25.764552+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:56:57.814242+00:00, confidence not recorded.
  - readme: https://github.com/libxmljs/libxmljs (fetched 2026-08-28T04:03:25.764552+00:00, sha 44f703ff2fe1)
  - homepage: https://libxmljs.github.io/libxmljs/ (fetched 2026-08-29T12:58:45.127320+00:00, sha f0c7aaeddb52)
- Data as of 2026-08-30T08:39:29.467469+00:00.
