UAParser.js
The most comprehensive, compact, & up-to-date 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).
Version 2.0
Before upgrading from v0.7 / v1.0, please read CHANGELOG to
see what's new & breaking.
| Version 1.0 | Version 2.0 | ||||
|---|---|---|---|---|---|
| License | MIT | AGPLv3 | PRO Personal | PRO Business | PRO Enterprise |
| Browser detection | ⚠️ | ✅ | ✅ | ✅ | ✅ |
| CPU detection | ⚠️ | ✅ | ✅ | ✅ | ✅ |
| Device detection | ⚠️ | ✅ | ✅ | ✅ | ✅ |
| Engine detection | ⚠️ | ✅ | ✅ | ✅ | ✅ |
| OS detection | ⚠️ | ✅ | ✅ | ✅ | ✅ |
| Enhanced detection | ⛔️ | ✅ | ✅ | ✅ | ✅ |
| Client Hints support | ⛔️ | ✅ | ✅ | ✅ | ✅ |
| Extras (Apps, Bots, Libs, Emails, Media Players, etc) | ⛔️ | ✅ | ✅ | ✅ | ✅ |
| CommonJS support | ✅ | ✅ | ✅ | ✅ | ✅ |
| ES modules support | ⛔️ | ✅ | ✅ | ✅ | ✅ |
| npm module available | ✅ | ✅ | ✅ | ✅ | ✅ |
| TypeScript declarations available | ⚠️ | ✅ | ✅ | ✅ | ✅ |
| Allowed for commercial use | ✅ | ✅ | ⛔️ | ✅ | ✅ |
| Permissive license | ✅ | ⚠️ | ✅ | ✅ | ✅ |
| Unlimited use per 1 license | ✅ | ✅ | ✅ | ⚠️ | ✅ |
| 1-year support | ⛔️ | ⛔️ | ✅ | ✅ | ✅ |
| Lifetime updates | ✅ | ✅ | ✅ | ✅ | ✅ |
| Price | FREE | FREE | $12 | $25 | $500 |
| GET THE PACKAGE 📥 | |||||
Documentation
- v1.0: https://github.com/faisalman/ua-parser-js/tree/1.0.35#documentation
- v2.0: https://docs.uaparser.js.org/v2
Development
Contributors
Large or small, your contribution is valuable here. Please read CONTRIBUTING guide first for the instruction details.
Made with contributors-img.
Backers & Sponsors
License
AGPLv3 License
Copyright (c) 2012-2023 Faisal Salman <f@faisalman.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.
