What is this?
Hammer.js is a JavaScript library that lets a web page recognize touch gestures, so you don't have to interpret raw touch events yourself.
Is this something I install on my phone, or add to a website?
It's a frontend JavaScript library: you include it in a web page, and it runs wherever that page runs — desktop browsers and touch devices like phones and tablets.
How do I add it to my project?
Install it with npm or yarn, or just include it from a CDN in your page.
Will it bloat my project with dependencies?
No — the package ships with zero runtime dependencies, so it won't drag anything extra into your bundle.
What if I need a gesture it doesn't know, like a tripletap?
That takes extra work: for a gesture like tripletap the README says you'll have to follow its steps to set up recognition yourself — it doesn't come for free.
Can I use it in commercial projects, and what does it cost?
It's MIT-licensed, so it's free to use, modify and ship — including commercially.
Is there a ready-made minified file I can serve in production?
Yes — the repo's build step produces hammer.min.js together with a source map, so you can serve the minified version directly.
What are similar projects?
dragula, Sortable, better-scroll, swiper, interact.js, velocity, masonry, typeahead.js