Ross ROSS = Recommend OSS · open-source software intelligence for agents

amorey/sentineljs

Detect new DOM nodes using CSS selectors (650 bytes) observed · 2026-08-28

github.com/amorey/sentineljs · JavaScript · MIT (permissive) 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: 3271
  • days_rel: n/a
  • days_push: 765
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1131 stars · 38 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

SentinelJS is a tiny (668 bytes) JavaScript library that detects new DOM nodes matching CSS selectors using dynamically-defined @keyframes animation rules and animationstart events. It lets you register watch functions that fire whenever matching elements are added to the DOM, useful for implementing custom elements and in-place DOM modifications.

Use cases

  • detect when a new DOM element matching a CSS selector is added
  • implement custom elements without a framework
  • watch for dynamically injected nodes in the DOM
  • replace MutationObserver with a faster selector-based watch
  • auto-initialize third-party widgets on newly inserted elements

When to choose

  • you need a tiny, dependency-free way to react to new DOM nodes by CSS selector
  • MutationObserver performance overhead is a concern for large documents
  • you want lightweight custom-element-like behavior in older browsers

When to avoid

  • you need to detect elements with display:none styling (SentinelJS cannot see them)
  • your CSS already uses animation-name on overlapping selectors, causing conflicts
  • you need to observe attribute changes or node removals, not just additions

Facets

library · maturity maintenance

ui-components middleware web-development frontend developer-tools browser dom-watching css-selectors custom-elements animationstart micro-library mutation-observer-alternative javascript

1 source

Member repositories

RepositoryRoleHealth v2
amorey/sentineljsmain23

For agents

markdown · JSON · MCP: product_card(name="amorey/sentineljs")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem