ua-parser-js Documentation

UAParser.js: The Essential Web Development Tool for User-Agent Detection. Detect Browsers, OS, Devices, Bots, Apps, AI Crawlers, and more.

RAW Doc

Docker & Self-Hosted Deployment Verified OCI

Deploy ua-parser-js on any server, homelab, or cloud container platform.

1-Click Terminal Command
bash (docker run)
docker run -d --name ua-parser-js --restart always faisalman/ua-parser-js:latest

Technical Documentation: faisalman/ua-parser-js

โ„น๏ธ Provenance: Multi-Tier Ingestion ยท CodeWiki Reference

Overview (`README.md`)

UAParser.js

Powerful User-Agent detection in a compact, ES5-friendly, dependency-free JavaScript library.

  • โœ… Comprehensive detection: Identify various kind of browsers, OS, devices, bots, apps, AI crawlers, and more
  • โœ… Battle-tested at scale: Backed by an actively maintained, extensive detection database, trusted by leading tech companies
  • โœ… Runs everywhere: Use seamlessly in browsers, Node.js, and modern JavaScript runtimes

Demo

Documentation

Before upgrading from v0.7 / v1.0, please read CHANGELOG to see what's new & breaking.

Package Options

Open-Source Editions PRO / Commercial Editions
License options MIT (v1.x) AGPL (v2.x) PRO Personal PRO Business PRO Enterprise
Browser Detection โš ๏ธ โœ… โœ… โœ… โœ…
CPU Detection โš ๏ธ โœ… โœ… โœ… โœ…
Device Detection โš ๏ธ โœ… โœ… โœ… โœ…
Rendering Engine Detection โš ๏ธ โœ… โœ… โœ… โœ…
OS detection โš ๏ธ โœ… โœ… โœ… โœ…
Enhanced+ Accuracy โŒ โœ… โœ… โœ… โœ…
Bot Detection โŒ โœ… โœ… โœ… โœ…
AI Detection โŒ โœ… โœ… โœ… โœ…
Extra Detections (Apps, Libs, Emails, Media Players, Crawlers, and more) โŒ โœ… โœ… โœ… โœ…
Client Hints Support โŒ โœ… โœ… โœ… โœ…
CommonJS Support โœ… โœ… โœ… โœ… โœ…
ESM Support โŒ โœ… โœ… โœ… โœ…
TypeScript Definitions โœ… โœ… โœ… โœ… โœ…
npm Module Available โœ… โœ… โœ… โœ… โœ…
Direct Downloads Available โœ… โœ… โœ… โœ… โœ…
Commercial Use Allowed โœ… โœ… โŒ โœ… โœ…
Permissive (non-Copyleft) License โœ… โŒ โœ… โœ… โœ…
No Open-Source Obligations โœ… โŒ โœ… โœ… โœ…
Unlimited End-Products โœ… โœ… โœ… โŒ โœ…
Unlimited Deployments โœ… โœ… โœ… โŒ โœ…
1-year Product Support โŒ โŒ โœ… โœ… โœ…
Lifetime Updates โœ… โœ… โœ… โœ… โœ…
Price FREE* (License) FREE* (License) $14 (License) $29 (License) $599 (License)
GET THE PRO PACKAGES ๐Ÿ“ฅ

NEW: Managed REST API

Skip the installation, use the User-Agent API in any application:

  • โœ… Works everywhere: Integrate with JavaScript, Python, PHP, Java, or any HTTP client
  • โœ… Production-ready: Powered by UAParser.js and continuously updated
  • โœ… Zero maintenance: We manage the packages, parser updates, device data, and infrastructure for you

Learn more and start building at uaparser.dev/#rest-api

Development

Contributors

This project wouldn't be possible without all the amazing people in the open-source community. Thanks to everyone who contributed, reported issues, and shared feedback.

Made with contributors-img.

Contributions are welcome! Please read the CONTRIBUTING GUIDE first for detailed contribution instructions.

Backers & Sponsors


Support the open-source editions of UAParser.js through one of the following options:

OpenCollective
GitHub Sponsors
PayPal
WeChat/Alipay


--- METRICS ---