richtr/NoSleep.js
Prevent display sleep and enable wake lock in any Android or iOS web browser. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4152
- days_rel: n/a
- days_push: 764
- n_releases_24m: 0
Adoption not part of the score
2376 stars · 368 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
NoSleep.js is a small JavaScript library that prevents the display from sleeping and enables wake lock in Android and iOS web browsers. It wraps the Wake Lock API with fallbacks so web apps can keep the screen on during playback or other long-running interactions.
Use cases
- keep the screen on while a web app plays video or audio
- prevent display sleep during a mobile web game
- hold wake lock while showing a recipe or workout in the browser
- stop the screen dimming during a long-running web-based presentation
- enable wake lock after a user tap in a mobile web app
When to choose
- you need to keep a mobile browser screen awake on Android or iOS
- you want a tiny dependency with a simple enable/disable API
- you need fallback behavior for browsers without the native Wake Lock API
When to avoid
- you are building a native mobile app rather than a web app
- you only target desktop browsers where screen sleep is managed differently
- you need a maintained solution with active development and frequent releases
Facets
library · maturity maintenance
sdk developer-tools web-development mobile-development cross-platform browser wake-lock screen-sleep-prevention mobile-web javascript-library android ios javascript
2 sources
- readme: https://github.com/richtr/NoSleep.js · fetched 2026-08-28 · a8e67ad4e862
- registry_npm: https://registry.npmjs.org/nosleep.js · fetched 2026-08-29 · 8e6e4a95f40a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| richtr/NoSleep.js | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="richtr/NoSleep.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem