# simonwep/viselect

✨ Viselect - A high performance and lightweight library to add a visual way of selecting elements, just like on your Desktop. Zero dependencies, super small. Support for major frameworks!

Repository: https://github.com/simonwep/viselect
Canonical: https://ross.abutalabs.com/products/viselect
Homepage: https://simonwep.github.io/viselect
Language: TypeScript
License: MIT
License Family: permissive
Topics: selection, selections, select, ui, javascript-library, dom-selection, ux-experience, ux-design, js-library, viselect, preact, react, vue
Last push: 2026-08-25T17:00:32+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 40, longevity 100
- inputs: {"age_days": 3056, "days_push": 8, "days_rel": 594, "gap_med": 8, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2948, forks 161 (observed 2026-08-28T04:07:31.853402+00:00)

## What it is
Viselect is a lightweight (~4kb), zero-dependency JavaScript library for adding desktop-style visual selection (drag/rubber-band selection) of DOM elements to web apps. It ships framework bindings for React, Vue, and Preact and supports touch and scrolling.

## Use cases
- add drag-to-select multiple elements in a web app
- implement rubber band selection like a desktop file manager
- select multiple items in a grid with mouse or touch
- add visual selection to a file or asset manager UI
- framework-agnostic DOM selection library for React or Vue

## When to choose
- you need performant multi-element selection over many DOM nodes
- bundle size matters and you want zero dependencies
- you need touch/mobile and scroll-aware selection
- you use React, Vue, or Preact and want ready-made bindings

## When to avoid
- you only need simple single-element click selection
- you need selection of non-DOM content like canvas or text ranges
- your framework has no supported binding and you can't write a custom integration

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, frontend-framework
- domain: frontend, web-development, web-design
- platform: browser
- tags: dom-selection, drag-select, rubber-band-selection, zero-dependencies, react, vue, preact, touch-support, javascript, nodejs

## Member repositories
- simonwep/viselect (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:31.853402+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:32:45.345968+00:00, confidence not recorded.
  - readme: https://github.com/simonwep/viselect (fetched 2026-08-28T04:07:31.853402+00:00, sha 3e9cf56e1918)
  - homepage: https://simonwep.github.io/viselect (fetched 2026-08-29T09:48:18.600296+00:00, sha 9971fa322c2b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
