@nimibyte/intersection-hook - Section-aware navigation primitives for React interfaces where active-state must remain predictable.
Avoids repeated scrollspy implementations across product surfaces.
In-page navigation often drifts between pages when section registration and active-state rules are not centralized.
Trade-offs: It favors a narrow API and native browser behavior over highly configurable abstractions.
Intentionally not solving: Route-level navigation state, non-React integrations, or virtualized list visibility semantics.
IntersectionProvider(config?)useIntersection()register({ id, label })activeSectionsectionsscrollTo(id)This reflects Nimibyte's engineering posture: narrow public APIs, explicit trade-offs, and predictable runtime behavior. We optimize for maintainable systems rather than clever abstractions.