# NaturalIntelligence/fast-xml-parser

Validate XML, Parse XML and Build XML rapidly without C/C++ based libraries and no callback.

Repository: https://github.com/NaturalIntelligence/fast-xml-parser
Canonical: https://ross.abutalabs.com/products/fast-xml-parser
Homepage: https://naturalintelligence.github.io/fast-xml-parser/
Language: JavaScript
License: MIT
License Family: permissive
Topics: fast-xml-parser, xml2json, xml2js, fast, xml, parser, js, json, cli, command-line, validator, validate, js2xml, json2xml, rapid, locale, xml2nimn
Last push: 2026-08-19T12:37:06+00:00

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

## Adoption (not part of the score)
Stars 3135, forks 389 (observed 2026-08-28T04:07:45.675678+00:00)

## What it is
A pure JavaScript library for rapidly validating XML, parsing XML to JS objects, and building XML from JS objects, with no C/C++ dependencies or callbacks. It works in Node.js and browsers, handles large files, and also ships a CLI.

## Use cases
- convert xml to  in node
- parse xml feeds into javascript objects
- build xml from  data
- validate xml syntax without native dependencies
- parse large xml files in the browser
- convert xml to  from the command line

## When to choose
- you need fast XML parsing/conversion in pure JS with no native builds
- you target both Node.js and browser environments
- you need to handle large XML files (up to ~100MB) or entities, unpaired tags, and CDATA

## When to avoid
- you need schema (XSD) validation or business-rule validation - use a dedicated validator
- you need streaming SAX-style parsing with fine-grained event control
- you need full DOM or XPath support

## Facets
- artifact type: library
- maturity: stable
- function: parser, serialization, cli, developer-tools
- domain: parsers, web-development, developer-tools, files
- platform: browser, cross-platform, cli
- tags: xml, xml2, 2xml, xml-validator, pure-javascript, no-native-dependencies, nodejs

## Member repositories
- NaturalIntelligence/fast-xml-parser (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:45.675678+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-30T07:26:06.099266+00:00, confidence not recorded.
  - readme: https://github.com/NaturalIntelligence/fast-xml-parser (fetched 2026-08-28T04:07:45.675678+00:00, sha 8b06c9c3c36b)
  - homepage: https://naturalintelligence.github.io/fast-xml-parser/ (fetched 2026-08-29T09:41:08.600041+00:00, sha 7f7c4e675bf5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
