# sindresorhus/screenfull

Simple wrapper for cross-browser usage of the JavaScript Fullscreen API

Repository: https://github.com/sindresorhus/screenfull
Canonical: https://ross.abutalabs.com/products/screenfull
Homepage: https://sindresorhus.com/screenfull
Language: HTML
License: MIT
License Family: permissive
Last push: 2022-07-08T13:02:03+00:00

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

## Adoption (not part of the score)
Stars 7140, forks 681 (observed 2026-08-28T04:09:56.169135+00:00)

## What it is
A tiny (0.7 kB gzipped) JavaScript library that wraps the browser Fullscreen API, normalizing vendor-prefixed implementation differences. It lets web developers request, exit, and toggle fullscreen mode for the page or any element with a simple, consistent API.

## Use cases
- make a webpage go fullscreen with a button click
- toggle fullscreen on an image or video element
- hide mobile navigation UI when entering fullscreen
- avoid writing cross-browser fullscreen vendor prefix code
- check whether fullscreen is supported before requesting it

## When to choose
- you need reliable cross-browser fullscreen behavior in a web app
- you want a tiny dependency-free-feeling ESM utility instead of hand-rolled vendor prefix handling
- you need to fullscreen arbitrary DOM elements, not just the page

## When to avoid
- you need to support iPhone Safari, which does not support the Fullscreen API
- you need new features beyond the current API, since the package is feature-complete
- you cannot use ESM and don't want to pin the older 5.2.0 version

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, developer-tools
- domain: web-development, frontend, browser-extensions
- platform: browser
- tags: fullscreen-api, cross-browser, esm, javascript, dom, nodejs

## Member repositories
- sindresorhus/screenfull (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:56.169135+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-29T17:40:02.134111+00:00, confidence not recorded.
  - readme: https://github.com/sindresorhus/screenfull (fetched 2026-08-28T04:09:56.169135+00:00, sha b046a1c3fb69)
  - homepage: https://sindresorhus.com/screenfull (fetched 2026-08-29T08:35:27.324373+00:00, sha cd9cf14d050e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
