
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
ua-parser-js
Advanced tools
Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent & Client Hints data. Supports browser & node.js environment
The most comprehensive, compact, and up-to-date JavaScript library to detect user's browser, OS, CPU, and device type/model. Also detect bots, apps, and more. Runs seamlessly in the browser (client-side) or Node.js (server-side).
version 1.x : https://github.com/faisalman/ua-parser-js/tree/1.0.x#documentationversion 2.x : https://docs.uaparser.devBefore upgrading from v0.7 / v1.0, please read CHANGELOG to
see what's new & breaking.
| 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 📥 |
Please read CONTRIBUTING guide first for the instruction details.
Made with contributors-img.
Support the open-source editions of UAParser.js through one of the following options:
The 'device' package is another npm package that allows you to parse user agent strings to determine device type (phone, tablet, desktop, etc.). It is simpler than ua-parser-js and does not provide detailed information about browser, engine, or OS.
The 'platform' package is used for parsing and interpreting user agent strings. It provides information about the operating system, browser, and device in a structured format. It is similar to ua-parser-js but has a different API and may offer different levels of detail in the results.
Bowser is a browser detection library that is similar to ua-parser-js. It focuses on identifying browser type, version, and engine. It also provides methods to check if the browser matches certain criteria, which can be useful for feature detection and browser-specific adjustments.
FAQs
Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent & Client Hints data. Supports browser & node.js environment
The npm package ua-parser-js receives a total of 7,171,524 weekly downloads. As such, ua-parser-js popularity was classified as popular.
We found that ua-parser-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.