alexgibson/shake.js
A custom 'shake' event plugin for mobile web browsers using device accelerometer. observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases archived no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5761
- days_rel: n/a
- days_push: 2877
- n_releases_24m: 0
Adoption not part of the score
1507 stars · 275 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small JavaScript plugin that adds a custom 'shake' event to mobile web browsers using the device accelerometer via the devicemotion API. It lets web apps trigger actions (like shake-to-undo) when the user physically shakes their phone or tablet.
Use cases
- detect shake gesture in mobile web app
- implement shake to undo on iphone/ipad web app
- trigger action when user shakes phone in browser
- listen to device accelerometer shake events in javascript
- add shake event listener to mobile website
When to choose
- you need shake gesture detection in a mobile web browser without native code
- you want a tiny dependency-free library using the W3C devicemotion API
- you need broad legacy mobile browser support including older iOS and Android
When to avoid
- your app runs only on desktop browsers without devicemotion support
- you need native app shake detection rather than web
- you need a maintained solution - the project has not been updated since 2018 and modern mobile browsers restrict devicemotion to HTTPS with user permission
Facets
plugin · maturity maintenance
plugin-system middleware web-development mobile-development frontend browser shake-gesture devicemotion accelerometer mobile-web event-plugin mobile javascript ios android
3 sources
- readme: https://github.com/alexgibson/shake.js · fetched 2026-08-28 · ccf064c246f3
- homepage: https://alexgibson.github.io/shake.js/ · fetched 2026-08-29 · 532063dfd73b
- registry_npm: https://registry.npmjs.org/shake.js · fetched 2026-08-29 · 65af7c5e05bf
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| alexgibson/shake.js | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="alexgibson/shake.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem