</>PackageGraphPackageGraph

ua-parser-js

npmv2.0.10TypeScript

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

Adopt with care

ua-parser-js is usable, with caveats. AGPL-3.0-or-later is a strong copyleft license — it can impose obligations on your own code.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 112 days ago. 20 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Pulls in 3 transitive packages, about 1.3 MB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • DLicense: grade D, Poor — a real concern.

    AGPL-3.0-or-later is a strong copyleft license — it can impose obligations on your own code.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding ua-parser-js to a project.

3
Direct dependencies

Runtime packages this one declares itself.

3
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

1.3 MB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

Every license you inherit by installing ua-parser-js, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node *
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

ua-parser-js vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
ua-parser-jsthis page01AGPL-3.0-or-later3 months ago
ua-is-frozen01MIT1 day ago
bowser01MIT1 day ago
isarray174.9M3MIT1 day ago
open130.4M4MIT1 day ago
axios106.5M4MIT1 day ago

Dependencies

Declared by ua-parser-js v2.0.10. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (13)

@babel/parser 7.15.8@babel/traverse 7.23.2@jazzer.js/core ^4.0.0@playwright/test ^1.57.0eslint ^9.39.1jshint ~2.13.6lockfile-lint ^4.14.1mocha ~8.2.0nyc ^18.0.0requirejs 2.3.2safe-regex ^2.1.1tsd ^0.29.0uglify-js ~3.19.3

Used by

Popular packages that depend on ua-parser-js.

Relationship graph

Dependencies (left) and dependents (right) of ua-parser-js.

Frequently installed together

Release history

14 releases in the last two years, typically about 31 days apart.

Recent versions of ua-parser-js
VersionPublishedSizeLicense
2.0.10latest3 months ago1.3 MBAGPL-3.0-or-later
2.0.97 months ago1.2 MBAGPL-3.0-or-later
2.0.87 months ago468 KBAGPL-3.0-or-later
2.0.79 months ago1.2 MBAGPL-3.0-or-later
2.0.611 months ago1.2 MBAGPL-3.0-or-later
2.0.51 year ago1.2 MBAGPL-3.0-or-later
1.0.411 year ago122 KBMIT
0.7.411 year ago122 KBMIT
2.0.41 year ago1.2 MBAGPL-3.0-or-later
2.0.31 year ago1.2 MBAGPL-3.0-or-later
2.0.21 year ago1.1 MBAGPL-3.0-or-later
2.0.11 year ago1.1 MBAGPL-3.0-or-later
1.0.401 year ago116 KBMIT
0.7.401 year ago116 KBMIT
2.0.01 year ago1.1 MBAGPL-3.0-or-later

Overview

ua-parser-js is an npm package that detect Browser, Engine, OS, CPU, and Device type/model from User-Agent & Client Hints data. Supports browser & node.js environment. It has 1 known dependents in the graph. The latest version is 2.0.10, released under the AGPL-3.0-or-later license.

Who should use it

Teams working in the npm ecosystem who need detect Browser, Engine, OS, CPU, and Device type/model from User-Agent & Client Hints data. Supports browser & node.js environment and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (AGPL-3.0-or-later).

Cons

  • Large dependency tree (16 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use ua-parser-js?

ua-parser-js is usable, with caveats. AGPL-3.0-or-later is a strong copyleft license — it can impose obligations on your own code.

How do I install ua-parser-js?

Run `npm install ua-parser-js` to add ua-parser-js to your npm project.

How many dependencies does ua-parser-js have?

ua-parser-js declares 16 direct dependencies and pulls in 3 packages in total once its runtime tree is resolved totalling about 1.3 MB on disk.

What license is ua-parser-js released under?

ua-parser-js is distributed under the AGPL-3.0-or-later license.

How popular is ua-parser-js?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on ua-parser-js.

Is ua-parser-js still maintained?

The most recent release of ua-parser-js (v2.0.10) was published 3 months ago.

Does ua-parser-js run install scripts?

No. ua-parser-js does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.