
interact.js
JavaScript library for drag and drop, resizing and multi-touch gestures, with inertia and snapping, for modern browsers.
interact.js adds drag and drop, resizing and multi-touch gestures to elements on a web page, with inertia and snapping for the movement. The homepage says the library does not move anything itself: it provides the pointer event data, and the page decides what feedback users get, whether that is dragging elements, drawing on a canvas or scrolling the page. It works with HTML and SVG, and one API covers touch and mouse events.
Worth knowing
The project’s Pro page lists further features and describes interact.js Pro as still under development.
Identity
- Status
- Active
- Maintainer
- Taye Adeyemi4
- Maintained by
- Individual4
- First release
- 20138
Rendering and deploy
- Install with
- npm install interactjs (pre-bundled package), npm install of @interactjs/ scoped packages, one per feature, script tag from the jsDelivr or unpkg CDN, ES module imports from cdn.interactjs.io, yarn add interactjs in a Rails app6
Releases
Adoption
Sources
- 2026-11-16: links
interactjs.io/ - 2026-11-16: links, GitHub stars
api.github.com/repos/taye/interact.js - 2026-11-16: links, Categories
interactjs.io/docs/ - 2026-11-16: Maintainer, Maintained by
github.com/taye/interact.js/blob/main/LICENSE - 2026-11-16: Written in, License, License model
github.com/taye/interact.js/blob/main/README.md - 2026-11-16: Install with
interactjs.io/docs/installation/ - 2026-11-16: Current major version, Last release
registry.npmjs.org/interactjs - 2026-11-16: First release
api.github.com/repos/taye/interact.js/commits/b19a3130e3c0726cf5bf8dcaf87c2dc064369105 - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/interactjs - 2026-11-16: Contributors
api.github.com/repos/taye/interact.js/contributors?per_page=1 - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/interactjs