# bestiejs/platform.js

A platform detection library.

Repository: https://github.com/bestiejs/platform.js
Canonical: https://ross.abutalabs.com/products/platformjs
Homepage: https://mths.be/platform
Language: JavaScript
License: MIT
License Family: permissive
Topics: platform, detection, user-agent
Archived: true
Last push: 2023-09-29T05:09:38+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5579, "days_push": 1069, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3243, forks 405 (observed 2026-08-28T04:07:50.579736+00:00)

## What it is
Platform.js is a JavaScript library that detects the browser, engine, OS, and device from the user agent, working across browsers and Node.js. It can also parse arbitrary UA strings, though it is intended for informational purposes rather than replacing feature detection.

## Use cases
- detect browser name and version in javascript
- parse user agent strings
- identify operating system and device from ua
- show browser info on a support page
- get os and layout engine in node.js

## When to choose
- you need lightweight browser/OS detection from a user agent string
- you must support legacy environments like old Node or PhantomJS
- you want a simple informational platform description string

## When to avoid
- you need actively maintained detection for the latest browsers
- you want feature detection instead of user-agent sniffing
- the repo is archived and read-only since April 2024

## Facets
- artifact type: library
- maturity: abandoned
- function: parser, developer-tools
- domain: web-development, developer-tools
- platform: browser, cross-platform
- tags: user-agent-parsing, platform-detection, browser-detection, os-detection, ua-sniffing, browsers, nodejs, javascript

## Member repositories
- bestiejs/platform.js (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:50.579736+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-30T07:24:29.889758+00:00, confidence not recorded.
  - readme: https://github.com/bestiejs/platform.js (fetched 2026-08-28T04:07:50.579736+00:00, sha cf4a0d972fd9)
  - homepage: https://mths.be/platform (fetched 2026-08-29T09:37:25.969086+00:00, sha 21384b70e52d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
