# fex-team/ua-device

userAgent解析库

Repository: https://github.com/fex-team/ua-device
Canonical: https://ross.abutalabs.com/products/ua-device
Homepage: http://fex-team.github.io/ua-device/
Language: JavaScript
License: BSD-3-Clause
License Family: permissive
Last push: 2024-03-19T08:00:15+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3813, "days_push": 897, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1461, forks 167 (observed 2026-08-28T04:04:47.455669+00:00)

## What it is
ua-device is a JavaScript library by Baidu's FEX team that parses User-Agent strings to extract browser, engine, OS, and hardware device information. It specializes in accurately identifying Chinese mobile device manufacturers and models where generic UA parsers fail.

## Use cases
- parse user-agent strings to detect device manufacturer and model
- identify mobile device brands from UA in Chinese web traffic
- get browser, engine, and OS info from user agents
- aggregate device stats without splitting same phone across UA variants
- detect device type (mobile/pc) server-side in Node.js

## When to choose
- your traffic includes many Chinese Android devices with non-standard UAs
- you need device manufacturer/model recognition rates higher than generic UA parsers
- you want a lightweight Node.js/browser library for UA parsing

## When to avoid
- you need actively developed features or frequent updates
- your users are mostly outside China and standard parsers like ua-parser-js suffice
- you need TypeScript types or modern ESM support

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, nlp
- domain: web-development, developer-tools, analytics
- platform: browser
- tags: user-agent, ua-parser, device-detection, chinese-mobile-devices, nodejs, javascript

## Member repositories
- fex-team/ua-device (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:47.455669+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:35:20.132403+00:00, confidence not recorded.
  - readme: https://github.com/fex-team/ua-device (fetched 2026-08-28T04:04:47.455669+00:00, sha 995f5c4a4c87)
  - homepage: http://fex-team.github.io/ua-device/ (fetched 2026-08-29T11:44:15.089819+00:00, sha 6d7b7150eb83)
  - registry_npm: https://registry.npmjs.org/ua-device (fetched 2026-08-29T11:44:15.098887+00:00, sha 4c3f8a5ec4aa)
- Data as of 2026-08-30T08:39:29.467469+00:00.
