timdown/rangy
A cross-browser JavaScript range and selection library. observed · 2026-08-28
Health v2 · maintenance only
51/100
- Activity 63
- 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: 4547
- days_rel: 669
- days_push: 224
- n_releases_24m: 1
Adoption not part of the score
2297 stars · 362 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Rangy is a cross-browser JavaScript library for working with DOM ranges and text selections. It normalizes browser inconsistencies and provides modules for saving/restoring selections, highlighting, and caret manipulation.
Use cases
- manipulate text selections in the browser consistently across browsers
- save and restore user text selections
- build text highlighting or annotation features
- get or set the caret position in contenteditable elements
- work with DOM ranges without writing browser-specific code
When to choose
- you need reliable cross-browser selection and range handling in a web app
- you're building rich text editors, highlighters, or annotation tools in vanilla JS
- you need to serialize and restore selections across page updates
When to avoid
- you're using a modern framework with built-in selection utilities and only target evergreen browsers
- you need server-side DOM manipulation (it's browser-focused)
- you want an actively developed project with ongoing feature work
Facets
library · maturity maintenance
ui-components developer-tools web-development frontend browser-extensions browser dom-range text-selection cross-browser caret javascript nodejs
2 sources
- readme: https://github.com/timdown/rangy · fetched 2026-08-28 · e2c04a1dfdf7
- registry_npm: https://registry.npmjs.org/rangy · fetched 2026-08-29 · 8d36480af42a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| timdown/rangy | main | 51 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem