# pmndrs/detect-gpu

Classifies GPUs based on their 3D rendering benchmark score allowing the developer to provide sensible default settings for graphically intensive applications.

Repository: https://github.com/pmndrs/detect-gpu
Canonical: https://ross.abutalabs.com/products/detect-gpu
Language: TypeScript
License: MIT
License Family: permissive
Topics: gpu, detection, browser, webgl, webgl2, benchmarks, progressive-enhancement, adaptive, device, hardware, demo, threejs, babylonjs, pixijs
Last push: 2026-08-23T01:03:46+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 2962, "days_push": 11, "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 1210, forks 70 (observed 2026-08-28T04:04:00.095054+00:00)

## What it is
A TypeScript library that classifies a user's GPU into performance tiers (0-3) based on 3D rendering benchmark scores, using WebGL renderer info and framerate data. It lets developers of graphically intensive web applications pick sensible default quality settings per device.

## Use cases
- detect gpu tier in browser
- adjust 3d scene quality based on device gpu
- fallback for devices without webgl support
- progressive enhancement for webgl apps
- detect mobile gpu capabilities
- choose default resolution or effects based on hardware

## When to choose
- You're building a WebGL/Three.js/Babylon.js/Pixi.js app and want to scale graphics quality to the user's hardware
- You need a lightweight browser-side GPU capability check with benchmark-backed tiers
- You want a graceful non-WebGL fallback path

## When to avoid
- You need exact GPU model identification or detailed specs rather than a performance tier
- You're doing server-side or native (non-browser) GPU detection
- You need up-to-the-minute data for brand-new GPUs, since the benchmark source stopped updating in December 2025

## Facets
- artifact type: library
- maturity: active
- function: graphics, developer-tools
- domain: web-development, frontend, graphics
- platform: browser
- tags: gpu-detection, webgl, benchmarking, progressive-enhancement, threejs, adaptive-quality, hardware-detection, javascript, typescript, nodejs

## Member repositories
- pmndrs/detect-gpu (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:00.095054+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-30T06:18:32.429815+00:00, confidence not recorded.
  - readme: https://github.com/pmndrs/detect-gpu (fetched 2026-08-28T04:04:00.095054+00:00, sha 1b85aa87e0e1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
