# stuyam/pressure

:point_down::boom:  JavaScript library for handling Force Touch, 3D Touch, and Pointer Pressure.

Repository: https://github.com/stuyam/pressure
Canonical: https://ross.abutalabs.com/products/pressure
Homepage: https://pressurejs.com
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, polyfill, force-touch, 3d-touch, pointer-events
Last push: 2022-12-06T23:57:34+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3967, "days_push": 1366, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2942, forks 99 (observed 2026-08-28T04:07:31.085588+00:00)

## What it is
Pressure.js is a lightweight JavaScript library that unifies Force Touch, 3D Touch, and Pointer Pressure handling on the web behind a single simple API. It includes a time-based polyfill for unsupported devices and supports multitouch across iPhones, MacBooks, trackpads, and pointer-event devices.

## Use cases
- handle 3D touch press events on iPhone web apps
- detect force touch pressure in the browser
- add pressure-sensitive interactions to web elements
- polyfill force press for devices without pressure support
- handle multitouch pressure on multiple elements simultaneously
- implement quick-look style deep press actions like Instagram
- support Wacom tablet and Surface pen pressure in web apps

## When to choose
- you need a unified API for Force Touch, 3D Touch, and pointer pressure across devices
- you want a tiny (~2.5kB) dependency with a polyfill fallback for unsupported hardware
- you need multitouch pressure handling on different elements at once

## When to avoid
- your project only targets modern browsers where native Pointer Events pressure suffices
- you need actively developed support for new devices (last release 2022)
- you are not building browser-based touch/pointer interactions

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, middleware
- domain: web-development, frontend
- platform: browser, cross-platform
- tags: force-touch, 3d-touch, pointer-events, pressure-sensing, polyfill, touch-input

## Member repositories
- stuyam/pressure (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:31.085588+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:56.270024+00:00, confidence not recorded.
  - readme: https://github.com/stuyam/pressure (fetched 2026-08-28T04:07:31.085588+00:00, sha 344f7e49f130)
  - homepage: https://pressurejs.com (fetched 2026-08-29T09:48:28.388491+00:00, sha 7910405de22b)
  - site_page: https://pressurejs.com/documentation.html (fetched 2026-08-29T09:48:28.399472+00:00, sha 0a28ba55dc8c)
  - registry_npm: https://registry.npmjs.org/pressure (fetched 2026-08-29T09:48:28.401214+00:00, sha d97f4fd9ab1b)
  - site_page: https://pressurejs.com/index.html (fetched 2026-08-29T09:48:28.397525+00:00, sha 7910405de22b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
