# arielsalminen/feature.js

Feature.js is a fast, simple and lightweight browser feature detection library in 1kb.

Repository: https://github.com/arielsalminen/feature.js
Canonical: https://ross.abutalabs.com/products/featurejs
Homepage: https://featurejs.com/
Language: HTML
License Family: other
Last push: 2023-03-03T00:54:50+00:00

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

## Adoption (not part of the score)
Stars 3145, forks 111 (observed 2026-08-28T04:07:45.974403+00:00)

## What it is
Feature.js is a fast, dependency-free 1kb browser feature detection library written in plain JavaScript. It lets developers test for capabilities like WebGL, canvas, SVG, and touch to build progressively enhanced web experiences.

## Use cases
- detect browser feature support in javascript
- check if webgl is supported in the user's browser
- add css classes for supported features like modernizr
- build progressively enhanced web experiences
- detect touch event support in the browser
- run all browser capability tests at once

## When to choose
- you need a tiny, dependency-free feature detection library
- you want a lightweight modernizr alternative
- you want tests to run lazily only when requested for performance

## When to avoid
- you need comprehensive, actively maintained feature detection with broad test coverage
- you rely on accurate touchscreen detection, which is inherently unreliable
- you need a library with an explicit license or active development

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, developer-tools
- domain: web-development, frontend, browser-extensions
- platform: browser
- tags: feature-detection, progressive-enhancement, modernizr-alternative, lightweight, browser-capabilities, javascript

## Member repositories
- arielsalminen/feature.js (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:45.974403+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:25:58.624753+00:00, confidence not recorded.
  - readme: https://github.com/arielsalminen/feature.js (fetched 2026-08-28T04:07:45.974403+00:00, sha 8e9b442ee577)
  - homepage: https://featurejs.com/ (fetched 2026-08-29T09:40:35.625998+00:00, sha eaa9c6659a20)
- Data as of 2026-08-30T08:39:29.467469+00:00.
