MCPcopy Index your code
hub / github.com/faisalman/ua-parser-js

github.com/faisalman/ua-parser-js @2.0.10 sqlite

repository ↗ · DeepWiki ↗ · release 2.0.10 ↗
90 symbols 205 edges 37 files 0 documented · 0% 33 cross-repo links
README

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

Discord invite

UAParser.js

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).

Demo

  • Live demo: https://uaparser.dev

Documentation

  • version 1.x : https://docs.uaparser.dev/v1
  • version 2.x : https://docs.uaparser.dev

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

Package & Pricing

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 📥

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

Extension points exported contracts — how you extend this code

IData (Interface)
(no doc)
src/main/ua-parser.d.ts
IBrowser (Interface)
(no doc)
src/main/ua-parser.d.ts
ICPU (Interface)
(no doc)
src/main/ua-parser.d.ts
IDevice (Interface)
(no doc)
src/main/ua-parser.d.ts
IEngine (Interface)
(no doc)
src/main/ua-parser.d.ts

Core symbols most depended-on inside this repo

UAParser
called by 56
src/main/ua-parser.js
is
called by 49
src/main/ua-parser.d.ts
withClientHints
called by 29
src/main/ua-parser.d.ts
toString
called by 10
src/main/ua-parser.d.ts
withFeatureCheck
called by 8
src/main/ua-parser.d.ts
getOutlookEdition
called by 7
src/helpers/ua-parser-helpers.js
isString
called by 6
src/main/ua-parser.js
lowerize
called by 6
src/main/ua-parser.js

Shape

Function 69
Method 8
Interface 7
Class 6

Languages

TypeScript100%

Modules by API surface

src/main/ua-parser.mjs24 symbols
src/main/ua-parser.js24 symbols
src/main/ua-parser.d.ts13 symbols
src/bot-detection/bot-detection.mjs7 symbols
src/bot-detection/bot-detection.js7 symbols
test/unit/main.js2 symbols
src/device-detection/device-detection.mjs2 symbols
src/device-detection/device-detection.js2 symbols
src/browser-detection/browser-detection.mjs2 symbols
src/browser-detection/browser-detection.js2 symbols
src/helpers/ua-parser-helpers.mjs1 symbols
src/helpers/ua-parser-helpers.js1 symbols

Dependencies from manifests, versioned

@babel/parser7.15.8 · 1×
@babel/traverse7.23.2 · 1×
@jazzer.js/core4.0.0 · 1×
@playwright/test1.57.0 · 1×
detect-europe-js0.1.2 · 1×
eslint9.39.1 · 1×
is-standalone-pwa0.1.1 · 1×
jshint2.13.6 · 1×
lockfile-lint4.14.1 · 1×
mocha8.2.0 · 1×
nyc18.0.0 · 1×
requirejs2.3.2 · 1×

For agents

$ claude mcp add ua-parser-js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact