Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

XPath

DOM 3 XPath implementation for querying XML/HTML in Node.js and browsers.

Scraping, browsers and parsingNPM

GitHubWebsite

1. License

License from npm.

github.com/goto100/xpath

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What XPath does

DOM 3 XPath implementation for querying XML/HTML in Node.js and browsers.

XPath popularity

47 / 100
Gid Score, #2317 overall
24.5M
downloads a week, npm
234
GitHub stars
2
agent projects use it
XPath: downloads per weeknpm, xpath 24,452,917
XPath: GitHub starsgoto100/xpath 234

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How XPath is used

  • XPath joined the catalog on its public numbers (24,452,917 downloads a week on npm and 234 GitHub stars), not on our project count: it is a dependency in 6 public GitHub projects of our scan, 2 of them set up for AI coding agents.
  • The most used alternative in our scan is Cheerio (76 projects).
  • Projects that use it most often also use LangChain.js (66.7%), Model Context Protocol SDK (JavaScript) (50.0%), adm-zip (50.0%).

Often used with

In 66.7% of its projects
In 50.0% of its projects
In 50.0% of its projects
In 50.0% of its projects
In 33.3% of its projects
In 33.3% of its projects
In 33.3% of its projects

More about XPath

More in Scraping, browsers and parsing

Alternatives

XPath This page

MITGid 4724.5M/wk

Cheerio

jQuery-like syntax for parsing and manipulating HTML/XML with server-side speed.

MITGid 7837.4M/wk

Compare XPath with another tool

Get started

Install it.

npm install xpath

No step-by-step start for XPath yet: we have not written its hand-checked card.