# lochie/web-haptics

Haptic feedback for the mobile web

Repository: https://github.com/lochie/web-haptics
Canonical: https://ross.abutalabs.com/products/web-haptics
Homepage: https://haptics.lochie.me
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-03-09T14:48:41+00:00

## Health v2 (maintenance only)
Score: 47/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 71, release rhythm 35, longevity 13
- inputs: {"age_days": 189, "days_push": 177, "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 2754, forks 90 (observed 2026-08-28T04:07:18.119287+00:00)

## What it is
A TypeScript library providing haptic (vibration) feedback for the mobile web, with integrations for React, Vue, Svelte, and vanilla JS. It wraps the browser Vibration API behind a simple trigger API with named patterns like 'success'.

## Use cases
- add haptic feedback to mobile web buttons
- trigger vibration patterns on user interactions
- use haptics in React components
- use haptics in Vue or Svelte apps
- give tactile feedback for form success or errors on mobile web

## When to choose
- you're building a mobile web app and want vibration feedback
- you use React, Vue, or Svelte and want a ready-made hook/component
- you want a small MIT-licensed wrapper around the Vibration API

## When to avoid
- you need native app haptics (iOS/Android SDKs)
- your target browsers don't support the Vibration API (e.g., iOS Safari)
- you need desktop-only feedback

## Facets
- artifact type: library
- maturity: active
- function: ui-components, animation
- domain: web-development, frontend, mobile-development
- platform: cross-platform
- tags: haptics, vibration-api, react, vue, svelte, mobile-web, typescript, web-server, mobile

## Member repositories
- lochie/web-haptics (main) score 47

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:18.119287+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-30T08:18:53.196819+00:00, confidence not recorded.
  - readme: https://github.com/lochie/web-haptics (fetched 2026-08-28T04:07:18.119287+00:00, sha 072e3dbe1761)
  - homepage: https://haptics.lochie.me (fetched 2026-08-29T09:56:59.398190+00:00, sha 612661547ca6)
  - registry_npm: https://registry.npmjs.org/web-haptics (fetched 2026-08-29T09:56:59.407275+00:00, sha d373c3679276)
- Data as of 2026-08-30T08:39:29.467469+00:00.
