10 Best JavaScript User Agent Parsing Libraries

List hand-picked by Openbase Experts
Learn More

upj

ua-parser-js

UAParser.js - Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data. Supports browser & node.js environment.

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
6.8K
Weekly Downloads
9.3M
Last Commit
3mos ago
User Rating
5.0/ 5
4
Top Feedback
2Great Documentation
2Easy to Use
rdd

react-device-detect

Detect device, and render view according to detected device type.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
1.9K
Weekly Downloads
534K
Last Commit
2mos ago
User Rating
5.0/ 5
7
Top Feedback
4Great Documentation
4Easy to Use
4Performant
isb

isbot

💻 JavaScript module that detects bots/crawlers/spiders via the user agent

Unlicense
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
441
Weekly Downloads
101K
Last Commit
3mos ago
User Rating
5.0/ 5
2
Top Feedback
1Great Documentation
1Easy to Use
1Performant
eu

express-useragent

NodeJS user-agent middleware

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
604
Weekly Downloads
182K
Last Commit
2yrs ago
User Rating
5.0/ 5
1
Top Feedback
up

ua-parser

A multi-language port of Browserscope's user agent parser.

Unknown
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
2K
Weekly Downloads
2.6K
Last Commit
5yrs ago
User Rating
5.0/ 5
1
Top Feedback
ddj

device-detector-js

A precise user agent parser and device detector written in TypeScript

LGPL-3.0
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
295
Weekly Downloads
59.9K
Last Commit
2mos ago
nu

next-useragent

next-useragent parses browser user-agent strings for next.js

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
286
Weekly Downloads
14.7K
Last Commit
8mos ago
uap

user-agent-parser

UAParser.js - Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data. Supports browser & node.js environment.

Unknown
TypeScript Icon
TypeScript Definitions: Not Found
TypeScript Icon
Deprecated
GitHub Stars
6.8K
Weekly Downloads
3.6K
Last Commit
3mos ago
use

useragent

Useragent parser for Node.js, ported from browserscope.org

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
865
Weekly Downloads
947K
Last Commit
3yrs ago
uua

@oieduardorabelo/use-user-agent

⚛️ React Hooks to detect browsers user-agent using ua-parser-js as main dependency.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
17
Weekly Downloads
3.1K
Last Commit
7d ago
ru

@quentin-sommer/react-useragent

Integrate user-agent detection in an idiomatic React way

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
163
Weekly Downloads
2K
Last Commit
6mos ago
ed

express-device

Device detection library for node.js based on the user-agent, built on top of express

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
308
Weekly Downloads
22.4K
Last Commit
6yrs ago
dev

device

Device type detection library based on the useragent string. Refactored from my express-device repo.

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
77
Weekly Downloads
22K
Last Commit
2yrs ago
nu

nuxt-ua

UserAgent detector using Platform.js for Nuxt.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
4
Weekly Downloads
170
Last Commit
2mos ago
vbd

vue-browser-detect-plugin

Simple browser detection plugin for Vue.

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
Weekly Downloads
4.9K
Last Commit

udger-nodejs

Node.js agent string parser based on Udger https://udger.com/products/local_parser

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
10
Weekly Downloads
38
Last Commit
3mos ago
up

uas-parser

A user agent string parser for Node.js. Uses data from user-agent-string.info.

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
22
Weekly Downloads
1.2K
Last Commit
4yrs ago
ru

react-ua

📱React User Agent Component, Hook, and HOC. SSR-ready, full UT, using new React Context and Hooks API

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
18
Weekly Downloads
83
Last Commit
2mos ago
uap

user-agent-parse

library for Node to parse user agents

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
15
Weekly Downloads
288
Last Commit
1yr ago
nup

ng-ua-parser

An Angular factory wrapper for ua-parser-js

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
1
Weekly Downloads
137
Last Commit
7yrs ago
bd

browser-detective

Universal browser detection via user agent parsing.

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
Weekly Downloads
134
Last Commit
eum

express-useragent-middleware

The porpouse of this library is to check the user agent on express or browser.

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
Weekly Downloads
90
Last Commit

amfe-env

Parsing User-Agent on a mobile device, could detecting what os/browser/app.

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
96
Weekly Downloads
87
Last Commit
6yrs ago
iub

is-ua-bot

🤖 tiny javascript module for checking user agents against a bot regex match (returns boolean)

ISC
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
4
Weekly Downloads
81
Last Commit
3yrs ago
vu

@jarvisniu/vue-ua

Vue plugin to detect web environment by user agent

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
1
Weekly Downloads
32
Last Commit
3yrs ago
nua

node-user-agents

Extended useragent parser for Node. Uses useragent package and extends its functionality

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
7
Weekly Downloads
19
Last Commit
3yrs ago
ndu

nuxt-detect-ua

Nuxt.js module for handling User-Agent.

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
0
Weekly Downloads
13
Last Commit
4yrs ago
up

useragent-parser

Node JS useragent parser

Unknown
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
2
Weekly Downloads
12
Last Commit
10yrs ago
sj

sua.js

Simple user agent parser library. - NodeJS/Browser supported

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
6
Weekly Downloads
11
Last Commit
4yrs ago
eum

express-ua-middleware

Express middleware to parse user-agent header

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
1
Weekly Downloads
8
Last Commit
3yrs ago
aup

angular-ua-parser

Lightweight Angular.js wrapper for User-Agent String Parser

Unknown
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
Weekly Downloads
6
Last Commit
bro

browserwall

A small, fast and rich-API browser/platform/engine detector for React.

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
4
Weekly Downloads
1
Last Commit
2yrs ago