qmetrics.net

interact.js

Browser library for drag, resize, and touch gestures

Frameworks & PlatformsDesktop/CLI app
interact.js screenshot

interact.js adds drag-and-drop, resizing, and multi-touch gestures with inertia and snapping for modern browsers. You control how elements move using pointer event data.

Overview

interact.js is a JavaScript library for drag-and-drop, resizing, and multi-touch interactions in web pages. It targets modern browsers and legacy Internet Explorer 9 and up, with TypeScript types shipped in the npm package.

Rather than moving DOM nodes itself, the library exposes pointer data through a flexible API so you choose how elements, canvases, or scrolling behave. Features include inertia, snap and restriction modifiers, simultaneous interactions, auto-scroll, and support for HTML and SVG targets.

It aims to stay standalone and configurable, avoid altering the DOM beyond optional cursor changes, and unify mouse and touch handling. Installation is via yarn or npm as interactjs.

Demos on the project site illustrate dragging, dropzones with overlap rules, grid snapping, resizable edges, rotation and pinch gestures on touchscreens, tap and hold events, and SVG-based examples.

Key features

  • Draggable and resizable targets
  • Dropzones with overlap thresholds
  • Inertia and snap modifiers
  • Multi-touch gesturable areas
  • Auto-scroll while dragging
  • HTML and SVG element support
  • Unified mouse and touch API
  • Optional cursor-only DOM changes

Use cases

  • Custom drag-and-drop UIs
  • Touch-friendly dashboards
  • Interactive canvas tools
  • Grid-aligned layout editors
  • Gesture controls on mobile web

Tags

Similar software

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

★ 311.7k⟳ 8 days agoMIT
Frameworks & PlatformsDesktop/CLI app

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

★ 253k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Flutter

Open-source UI framework for multi-platform apps from one codebase

Flutter is an SDK for building user experiences for mobile, web, and desktop from a single codebase. It uses the Dart language and compiles to native machine code or web targets.

★ 181.5k⟳ todayBSD-3-Clause
Open Source Alternative to:Ionic Enterprise

Bootstrap

Responsive HTML, CSS, and JavaScript front-end toolkit

Bootstrap supplies CSS, JavaScript, and Sass-based styles for building responsive, mobile-first sites. It ships prebuilt grid layouts, UI components, and optional JavaScript plugins.

★ 175.1k⟳ 2 days agoMIT

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT