# taye/interact.js

JavaScript drag and drop, resizing and multi-touch gestures with inertia and snapping for modern browsers (and also IE9+)

Repository: https://github.com/taye/interact.js
Canonical: https://ross.abutalabs.com/products/interactjs
Homepage: http://interactjs.io/
Language: TypeScript
License: MIT
License Family: permissive
Topics: drag-and-drop, inertia, snap, vanilla, javascript, multi-touch, drop, typescript, modern-browsers, javascript-drag, mobile, touch
Last push: 2026-08-01T04:04:57+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 35, longevity 100
- inputs: {"age_days": 5064, "days_push": 32, "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 12925, forks 804 (observed 2026-08-28T04:11:00.160108+00:00)

## What it is
interact.js is a standalone JavaScript library for drag and drop, resizing, and multi-touch gestures with inertia and snapping, supporting HTML and SVG elements across modern browsers and IE9+. It provides a unified pointer-event API without moving DOM elements itself, leaving visual feedback entirely to the developer.

## Use cases
- add drag and drop to web app elements
- implement resizable panels in the browser
- handle multi-touch pinch and gesture interactions
- build draggable canvas drawing tools
- snap dragged elements to a grid
- unify touch and mouse event handling
- make SVG elements draggable

## When to choose
- you need fine-grained control over drag feedback rather than out-of-the-box movement
- you need multi-touch and simultaneous interactions in vanilla JS
- you must support older browsers like IE9+
- you want a framework-agnostic, standalone library with TypeScript types

## When to avoid
- you want built-in visual feedback, list reordering, or React/Vue components out of the box
- you need a full-featured UI framework rather than a focused interaction library
- your project already uses a framework with its own drag-and-drop ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, animation
- domain: frontend, web-development
- platform: browser, cross-platform
- tags: drag-and-drop, multi-touch, gestures, snapping, inertia, svg, typescript, vanilla-javascript

## Member repositories
- taye/interact.js (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:00.160108+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-29T17:13:40.717514+00:00, confidence not recorded.
  - readme: https://github.com/taye/interact.js (fetched 2026-08-28T04:11:00.160108+00:00, sha eeffe247f747)
  - homepage: http://interactjs.io/ (fetched 2026-08-29T08:09:55.445620+00:00, sha 95f71247281f)
  - site_page: https://interactjs.io/docs (fetched 2026-08-29T08:09:55.452373+00:00, sha 0c669779ac5e)
  - site_page: https://interactjs.io/docs/api/classes/core_Interactable.Interactable.html (fetched 2026-08-29T08:09:55.454583+00:00, sha 886b719041f5)
  - registry_npm: https://registry.npmjs.org/interact.js (fetched 2026-08-29T08:09:55.456984+00:00, sha 3c2d6ff88ebb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
