{"id":43525104,"url":"https://github.com/hesprs/pointeract","last_synced_at":"2026-02-03T15:00:46.962Z","repository":{"id":328901663,"uuid":"1116184859","full_name":"hesprs/pointeract","owner":"hesprs","description":"🖱️🤏 Library for multitouch and all other gestures.","archived":false,"fork":false,"pushed_at":"2026-01-30T17:47:09.000Z","size":1017,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-31T10:15:28.379Z","etag":null,"topics":["frontend","interaction","pointer-events","typescript"],"latest_commit_sha":null,"homepage":"https://pointeract.consensia.cc","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hesprs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-14T11:22:49.000Z","updated_at":"2026-01-30T17:49:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hesprs/pointeract","commit_stats":null,"previous_names":["hesprs/pointeract"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hesprs/pointeract","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hesprs%2Fpointeract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hesprs%2Fpointeract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hesprs%2Fpointeract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hesprs%2Fpointeract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hesprs","download_url":"https://codeload.github.com/hesprs/pointeract/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hesprs%2Fpointeract/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29047788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T14:55:20.264Z","status":"ssl_error","status_checked_at":"2026-02-03T14:55:19.725Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["frontend","interaction","pointer-events","typescript"],"created_at":"2026-02-03T15:00:20.389Z","updated_at":"2026-02-03T15:00:46.952Z","avatar_url":"https://github.com/hesprs.png","language":"TypeScript","readme":"\u003ch1 align=\"center\"\u003e\n  \u003ca href=\"https://pointeract.consensia.cc\"\u003e\n    \u003cimg src=\"./assets/logo-text.svg\" alt=\"Pointeract\" width=\"280px\"\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003e Modern, lightweight, robust and extensible user interaction resolver \u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/hesprs/pointeract/actions\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/hesprs/pointeract/ci-test.yml?style=flat\u0026logo=github\u0026logoColor=white\u0026label=CI\u0026labelColor=d4ab00\u0026color=333333\" alt=\"CI Status\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/github/hesprs/pointeract\"\u003e\n    \u003cimg src=\"https://img.shields.io/codecov/c/github/hesprs/pointeract/main?style=flat\u0026logo=codecov\u0026logoColor=white\u0026label=Test%20Coverage\u0026labelColor=ff0077\u0026color=333333\" alt=\"Test Coverage\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.codefactor.io/repository/github/hesprs/pointeract\"\u003e\n    \u003cimg src=\"https://img.shields.io/codefactor/grade/github/hesprs/pointeract?style=flat\u0026logo=codefactor\u0026logoColor=white\u0026label=Code%20Quality\u0026labelColor=17b37a\u0026color=333333\" alt=\"Code Quality\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pointeract.consensia.cc\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Documentation-Ready-333333?labelColor=5C73E7\u0026logo=vitepress\u0026logoColor=white\" alt=\"Documentation\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/pointeract\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/pointeract?logo=npm\u0026labelColor=red\u0026logoColor=white\u0026color=333333\" alt=\"npm package\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://snyk.io/test/npm/pointeract\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Snyk%20Security-Monitored-333333?logo=snyk\u0026style=flat\u0026labelColor=8A2BE2\u0026logoColor=white\" alt=\"library security\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://bundlephobia.com/package/pointeract\"\u003e\n    \u003cimg src=\"https://img.shields.io/bundlejs/size/pointeract?format=minzip\u0026style=flat\u0026logo=webpack\u0026logoColor=white\u0026label=Minzipped%20Size\u0026labelColor=orange\u0026color=333333\" alt=\"package size\" /\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Types-Strict-333333?logo=typescript\u0026labelColor=blue\u0026logoColor=white\" alt=\"Typescript\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/%F0%9F%96%90%EF%B8%8F%20Made%20by-Humans-333333?labelColor=25C260\" alt=\"Made by Humans\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://pointeract.consensia.cc/playground\"\u003e\n        \u003cstrong\u003eDemo\u003c/strong\u003e\n    \u003c/a\u003e • \n    \u003ca href=\"https://pointeract.consensia.cc\"\u003e\n        \u003cstrong\u003eDocumentation\u003c/strong\u003e\n    \u003c/a\u003e • \n    \u003ca href=\"https://www.npmjs.com/package/pointeract\"\u003e\n        \u003cstrong\u003enpm\u003c/strong\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n## What's Pointeract?\n\nPointeract is a tiny JavaScript/TypeScript utility library focusing on one thing - handling user interactions with DOM elements, e.g. multitouch and touchpad.\n\nWith the unique strength of versatile typings in TypeScript and its dynamic nature, Pointeract have achieved a highly _modular, extendable and efficient_ architecture. Its core bundle size is only **1KB** minified + gzipped, functionalities come from also byte-sized modules. It's fully **tree-shakable**, the fewer modules you use, the smaller your bundle is.\n\n## Advantages\n\n- **🐣 Tiny**: With base **1KB** minified and gzipped, **1-2KB** for normal usage.\n- **💪 Robust**: Excels at complex gestures where most interaction libraries fail, [Why?](https://pointeract.consensia.cc/development/testing#monkey-test)\n- **🧩 Extensible**: Extend Pointeract effortlessly via our module API.\n- **🔌 Flexible during Runtime**: Options are updated reactively. Stop/start any module during runtime.\n- **🛡️ Safe**: Not modifying the DOM (except the `PreventDefault` module). Meticulous clean up prevents memory leaks.\n\n## Get Started\n\nInstall Pointeract using your favorite package manager:\n\n```sh\n# npm\n$ npm add pointeract\n\n# pnpm\n$ pnpm add pointeract\n\n# yarn\n$ yarn add pointeract\n\n# bun\n$ bun add pointeract\n```\n\nOr include the following lines directly in your HTML file:\n\n```html\n\u003cscript type=\"module\"\u003e\n\timport { Pointeract } from 'https://unpkg.com/pointeract/dist/index.js';\n\u003c/script\u003e\n```\n\nThis link ships the latest ESM version by default, to access CJS version or earlier versions, try using a different URL like:\n\n```html\n\u003cscript src=\"https://unpkg.com/pointeract@1.0.1/dist/index.cjs\"\u003e\u003c/script\u003e\n```\n\nThe link above ships version 1.0.1 in CJS.\n\nThen simply grab the core class and a module:\n\n```TypeScript\nimport { Pointeract, Drag } from 'pointeract';\n\nnew Pointeract({ element: yourElement }, Drag)\n    .start()\n    .on('drag', e =\u003e console.log(e));\n```\n\nCongratulations! You can now press your mouse or finger to the element and move, the console will log events like a waterfall.\n\n**Read next**: dive into the usage of Pointeract in [Use Pointeract](https://pointeract.consensia.cc/basic/use-pointeract).\n\n## Currently Supported Features\n\n- **Click (Double Click, Triple Click, Quadruple Click, Any Click)**\n- **Drag**\n- **Pan and Zoom via Mouse Wheel (`ctrl`/`shift` key binding, touchpad support)**\n- **Pan and Zoom via Multitouch (Pan, Pinch)**\n- **One-line Prevent Default**\n- **Smooth Everything (drag / pan / zoom / any interaction involving numbers)**\n\nThose interactions are shipped via modules, which can be composed from a single drag-and-drop to a canvas app.\n\nMissing your desired interaction? [Write your own module](https://pointeract.consensia.cc/development/custom-modules)!\n\n## How Pointeract Stands Out?\n\nThere're already plenty of interaction libraries out there, most famous ones are `Interact.js` and `Hammer.js`, but Pointeract is different.\n\n| Criteria                                                                                 |                      Pointeract                       |     [Hammer.js](https://hammerjs.github.io)      |        [Interact.js](https://interactjs.io)         |\n| :--------------------------------------------------------------------------------------- | :---------------------------------------------------: | :----------------------------------------------: | :-------------------------------------------------: |\n| Written in TypeScript?                                                                   |                          ✅                           |                        ❌                        |                         ✅                          |\n| Tree-shakeable?                                                                          |   [✅](https://bundlephobia.com/package/pointeract)   | [❌](https://bundlephobia.com/package/hammerjs)  |  [❌](https://bundlephobia.com/package/interactjs)  |\n| Bundle Size (Minified + Gzipped)                                                         | 👑 [3KB](https://bundlephobia.com/package/pointeract) | [7KB](https://bundlephobia.com/package/hammerjs) | [28KB](https://bundlephobia.com/package/interactjs) |\n| Last Updated                                                                             |                👑 Actively Maintained                 |                       2015                       |                        2023                         |\n| Features                                                                                 |               Pointer and Wheel Related               |                 Pointer Related                  | 👑 Pointer and Wheel Related + Comprehensive Utils  |\n| Robust? (See [Testing](https://pointeract.consensia.cc/development/testing#monkey-test)) |                          ✅                           |                 ❌ Element Jerks                 |         ❌ Element Ignores the Second Touch         |\n| Extensible?                                                                              |                          ✅                           |                        ❌                        |                         ❌                          |\n\n## Get Involved\n\nThis project welcomes anyone that have ideas to improve it.\n\n- [Open a pull request](https://github.com/hesprs/pointeract/compare) for a new module, event standard, documentation update, and so on.\n- [Open an issue](https://github.com/hesprs/pointeract/issues/new) if you find a bug.\n- [Start a new thread in Discussions](https://github.com/hesprs/pointeract/discussions/new) if you have feature requests or questions, please avoid posting them in Issues.\n- [Report a vulnerability](https://github.com/hesprs/pointeract/security/advisories/new) if you find one, please do not disclose it publicly.\n\n## Copyright and License\n\nCopyright ©️ 2025-2026 Hesprs (Hēsperus) | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.html)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhesprs%2Fpointeract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhesprs%2Fpointeract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhesprs%2Fpointeract/lists"}