joshwnj/react-visibility-sensor
Sensor component for React that notifies you when it goes in or out of the window viewport. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4376
- days_rel: n/a
- days_push: 861
- n_releases_24m: 0
Adoption not part of the score
2320 stars · 194 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A React component library that detects when its wrapped element enters or leaves the browser viewport and fires an onChange callback. It supports partial visibility, pixel offsets, and interval-based checks.
Use cases
- trigger animations when a component scrolls into view
- lazy-load images when they become visible
- track how long content is visible to users
- pause videos when scrolled out of the viewport
- fire analytics events on element visibility
- detect partial visibility of elements during scrolling
When to choose
- you need viewport visibility detection in a React app with fine-grained control over offsets and partial visibility
- you need to support older browsers or React versions where IntersectionObserver-based hooks are not viable
When to avoid
- you are using a modern stack where the native IntersectionObserver API or a hook like react-intersection-observer suffices
- your project is not React-based
- you need visibility detection outside the browser (e.g., server-side or native apps)
Facets
library · maturity maintenance
ui-components state-management frontend web-development browser react viewport-detection scroll-events lazy-loading visibility-sensor nodejs
2 sources
- readme: https://github.com/joshwnj/react-visibility-sensor · fetched 2026-08-28 · 110c387388ef
- registry_npm: https://registry.npmjs.org/react-visibility-sensor · fetched 2026-08-29 · bee76a7ad6bb
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| joshwnj/react-visibility-sensor | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="joshwnj/react-visibility-sensor")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem