user-agent-parser

Lightweight JavaScript-based user-agent string parser


Keywords
user-agent, parser, browser, engine, os, device, analytics, bot-detection, browser-detection, client-hints, device-detection, mobile-detection, user-agent-parser
Licenses
GPL-2.0/MIT
Install
npm install user-agent-parser@0.6.0

Documentation

https://uaparser.dev https://uaparser.dev https://uaparser.dev https://uaparser.dev

UAParser.js

The most comprehensive, compact, & up-to-date isomorphic JavaScript library to detect user's Browser, Engine, OS, CPU, and Device type/model. Runs either in browser (client-side) or node.js (server-side).

Demo

Documentation

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

License Options

Open-Source Editions PRO / Commercial Editions
License options MIT (v0.7~v1.0) AGPL (>=v2.0) PRO Personal PRO Business PRO Enterprise
Browser detection ⚠️ βœ… βœ… βœ… βœ…
CPU detection ⚠️ βœ… βœ… βœ… βœ…
Device detection ⚠️ βœ… βœ… βœ… βœ…
Engine detection ⚠️ βœ… βœ… βœ… βœ…
OS detection ⚠️ βœ… βœ… βœ… βœ…
Bot detection ❌ βœ… βœ… βœ… βœ…
AI Bot detection ❌ βœ… βœ… βœ… βœ…
Extras (Apps, Libs, Emails, Media Players, etc) detection ❌ βœ… βœ… βœ… βœ…
Enhanced detection result ❌ βœ… βœ… βœ… βœ…
Client Hints support ❌ βœ… βœ… βœ… βœ…
CommonJS support βœ… βœ… βœ… βœ… βœ…
ES modules support ❌ βœ… βœ… βœ… βœ…
npm module βœ… βœ… βœ… βœ… βœ…
TypeScript declarations ⚠️ βœ… βœ… βœ… βœ…
Allows commercial use βœ… βœ… ❌ βœ… βœ…
Permissive (non-copyleft) license βœ… ❌ βœ… βœ… βœ…
Unlimited use per 1 license βœ… βœ… βœ… ❌ βœ…
1-year product support ❌ ❌ βœ… βœ… βœ…
Lifetime updates βœ… βœ… βœ… βœ… βœ…
Price FREE (License) FREE (License) $14 (License) $29 (License) $599 (License)

Development

Contributors

Please read CONTRIBUTING guide first for the instruction details.

Made with contributors-img.

Backers & Sponsors

Support the open-source editions of UAParser.js on OpenCollective or GitHub Sponsors.