# any86/any-touch

:wave: Touch gesture library, 1kb~5kb, compatible with PC / mobile

Repository: https://github.com/any86/any-touch
Canonical: https://ross.abutalabs.com/products/any-touch
Homepage: https://any86.github.io/any-touch
Language: TypeScript
License: MIT
License Family: permissive
Topics: gesture, finger, touch, mouse, vue, drag, pinch, rotate, tap, swipe, pan, press, typescript, javascript, react, angular, vanilla
Last push: 2026-01-09T02:27:24+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 61, release rhythm 35, longevity 100
- inputs: {"age_days": 2926, "days_push": 237, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1245, forks 117 (observed 2026-08-28T04:04:06.970672+00:00)

## What it is
any-touch is a tiny (1kb~5kb) TypeScript gesture recognition library for detecting touch and mouse gestures like pan, pinch, rotate, tap, swipe, and press. It is framework-agnostic with no dependencies and works on PC, mobile, and WeChat mini-programs.

## Use cases
- add drag-and-drop gestures to a web element
- detect pinch and rotate for image zoom
- recognize tap, swipe, and press events on mobile web
- handle both mouse and touch input with one API
- use gestures in Vue, React, or Angular components
- add gesture support to a WeChat mini-program

## When to choose
- you need lightweight gesture recognition without pulling in a full UI framework
- you want unified touch and mouse gesture handling across devices
- bundle size matters and you can load only the recognizers you need

## When to avoid
- you need complex physics-based scrolling or momentum (use a dedicated scroll library)
- you only target modern browsers with native Pointer Events and simple needs

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, developer-tools
- domain: web-development, frontend, cross-platform
- platform: browser, cross-platform
- tags: gesture-recognition, touch-events, mouse-events, drag, pinch, swipe, vue, react, angular, wechat-miniprogram, typescript, tiny-library, web-server

## Member repositories
- any86/any-touch (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:06.970672+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-30T05:08:07.945091+00:00, confidence not recorded.
  - readme: https://github.com/any86/any-touch (fetched 2026-08-28T04:04:06.970672+00:00, sha 6cdc76d1d5dd)
  - homepage: https://any86.github.io/any-touch (fetched 2026-08-29T12:19:40.963671+00:00, sha ec235d25754e)
  - registry_npm: https://registry.npmjs.org/any-touch (fetched 2026-08-29T12:19:40.972816+00:00, sha af42c66c7444)
- Data as of 2026-08-30T08:39:29.467469+00:00.
