# hammerjs/hammer.js

A javascript library for multi-touch gestures :// You can touch this

Repository: https://github.com/hammerjs/hammer.js
Canonical: https://ross.abutalabs.com/products/hammerjs
Homepage: http://hammerjs.github.io
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-01-04T10:52:57+00:00

## Health v2 (maintenance only)
Score: 59/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 60, release rhythm 35, longevity 100
- inputs: {"age_days": 5297, "days_push": 241, "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 24343, forks 2558 (observed 2026-08-28T04:11:35.836319+00:00)

## What it is
Hammer.js is a small JavaScript library for detecting and handling multi-touch gestures like tap, swipe, pinch, and press in web applications. It ships with built-in recognizers and lets developers define custom gestures via a manager and recognizer API.

## Use cases
- add swipe navigation to a mobile web app
- detect pinch-to-zoom on an image gallery
- handle tap and double-tap events on touch devices
- implement press-and-hold interactions
- create custom multi-touch gestures like triple tap
- make a webapp feel native on tablets and phones

## When to choose
- you need touch gesture recognition in a browser-based app
- you want a tiny, dependency-free gesture library
- you need custom gesture recognizers beyond the built-ins

## When to avoid
- your app is desktop-only with mouse input
- you need full pointer event handling rather than gestures
- you're using a framework that already provides gesture abstractions

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, animation
- domain: web-development, frontend
- platform: browser
- tags: touch-gestures, mobile-web, gesture-recognition, dom-events, javascript

## Member repositories
- hammerjs/hammer.js (main) score 59

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:35.836319+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-29T16:56:15.441893+00:00, confidence not recorded.
  - readme: https://github.com/hammerjs/hammer.js (fetched 2026-08-28T04:11:35.836319+00:00, sha 77c91bee603f)
  - homepage: http://hammerjs.github.io (fetched 2026-08-29T07:53:54.364960+00:00, sha 0a7467d1d892)
- Data as of 2026-08-30T08:39:29.467469+00:00.
