faisalman/ua-parser-js
UAParser.js - The Essential Web Development Tool for User-Agent Detection. Detect Browsers, OS, Devices, Bots, Apps, AI Crawlers, and more. Run in Browser (client-side) or Node.js (server-side). observed · 2026-08-28
Health v2 · maintenance only
90/100
- Activity 99
- Release rhythm 72
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 34.0
- age_days: 5328
- days_rel: 104
- days_push: 9
- n_releases_24m: 13
Adoption not part of the score
10181 stars · 1215 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
UAParser.js is a lightweight, dependency-free JavaScript library that parses User-Agent strings into structured data about browsers, OS, devices, CPUs, engines, bots, and AI crawlers. It runs isomorphically in browsers and Node.js and is actively maintained with an extensive detection database.
Use cases
- parse user-agent strings in javascript
- detect browser and os from user agent
- identify mobile devices from user agent
- detect bots and ai crawlers in web traffic
- get device type and vendor from client signals
- server-side user agent detection in node.js
- analytics on what browsers visitors use
When to choose
- you need fast, dependency-free user-agent parsing in browser or Node.js
- you want broad, actively maintained detection of browsers, devices, bots, and AI crawlers
- you need a tiny bundle (~12 kB) for client-side device detection
When to avoid
- your project is not AGPL-compatible and you need the full v2 detection features without a commercial license
- you need high-accuracy device detection from client hints alone rather than user-agent strings
- you want a hosted device-detection API with continuous cloud-updated signatures
Facets
library · maturity stable
parser analytics developer-tools web-development analytics developer-tools browser cross-platform user-agent-parser browser-detection device-detection bot-detection client-hints javascript nodejs
3 sources
- readme: https://github.com/faisalman/ua-parser-js · fetched 2026-08-28 · 32d4799efe82
- homepage: https://uaparser.dev/ · fetched 2026-08-29 · f45c8b4cf98d
- site_page: https://docs.uaparser.dev · fetched 2026-08-29 · 4b70885a4cec
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| faisalman/ua-parser-js | main | 90 |
For agents
markdown · JSON · MCP: product_card(name="faisalman/ua-parser-js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem