stutrek/scrollmonitor
A simple and fast API to monitor elements as you scroll 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-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4985
- days_rel: n/a
- days_push: 1143
- n_releases_24m: 0
Adoption not part of the score
3273 stars · 235 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A lightweight, dependency-free JavaScript library that monitors DOM elements as the user scrolls, firing events when elements enter or exit the viewport. It uses cheap watcher objects and touches the DOM minimally on each scroll event for high performance.
Use cases
- trigger animations when elements scroll into view
- lazy-load images as they approach the viewport
- detect when an element leaves the viewport
- build sticky or fixed sidebar behavior on scroll
- monitor scrolling inside a container element instead of the body
- track element visibility and position relative to the viewport
When to choose
- you need fast, cheap scroll-based element visibility events without a framework
- you want a vanilla JS solution with no dependencies
- you need to watch elements inside custom scroll containers
When to avoid
- you use React and prefer hooks or components (use scrollmonitor-hooks or scrollmonitor-react instead)
- you need IntersectionObserver-based modern APIs and can rely on native browser support
- the project needs active feature development, as the library is in maintenance mode
Facets
library · maturity maintenance
ui-components animation developer-tools web-development frontend browser scroll-monitoring viewport dom watchers lazy-loading zero-dependencies javascript nodejs
2 sources
- readme: https://github.com/stutrek/scrollmonitor · fetched 2026-08-28 · 7633f6332229
- registry_npm: https://registry.npmjs.org/scrollmonitor · fetched 2026-08-29 · 4cada325bde1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| stutrek/scrollmonitor | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="stutrek/scrollmonitor")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem