{"id":15646749,"url":"https://github.com/jonaskuske/miniswipe","last_synced_at":"2026-02-22T21:44:42.942Z","repository":{"id":47600062,"uuid":"123990013","full_name":"jonaskuske/miniswipe","owner":"jonaskuske","description":"👐🏻 A little library handling swipe gestures.","archived":false,"fork":false,"pushed_at":"2024-06-26T04:53:09.000Z","size":506,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T19:43:18.904Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://jonaskuske.github.io/miniswipe/demo","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonaskuske.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-05T23:00:43.000Z","updated_at":"2024-06-26T04:53:09.000Z","dependencies_parsed_at":"2024-04-05T23:21:52.406Z","dependency_job_id":"4b4f98a1-3b9e-4209-8704-8639e6f7c6a3","html_url":"https://github.com/jonaskuske/miniswipe","commit_stats":{"total_commits":59,"total_committers":2,"mean_commits":29.5,"dds":0.2542372881355932,"last_synced_commit":"211de075c6970cc803056301853ee68e20f033da"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jonaskuske/miniswipe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaskuske%2Fminiswipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaskuske%2Fminiswipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaskuske%2Fminiswipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaskuske%2Fminiswipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonaskuske","download_url":"https://codeload.github.com/jonaskuske/miniswipe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaskuske%2Fminiswipe/sbom","scorecard":{"id":530052,"data":{"date":"2025-08-11","repo":{"name":"github.com/jonaskuske/miniswipe","commit":"34a438042f8ae2f4cb2546ec1f2d0affb571ae69"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/1 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T05:28:38.145Z","repository_id":47600062,"created_at":"2025-08-20T05:28:38.146Z","updated_at":"2025-08-20T05:28:38.146Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281748716,"owners_count":26554822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-30T02:00:06.501Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-03T12:14:33.763Z","updated_at":"2025-10-30T05:07:31.599Z","avatar_url":"https://github.com/jonaskuske.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# miniswipe\n\nA tiny library designed to handle swipe gestures on touchscreens.\n\u003e Warning:\nIf you look for a polished, production-grade and feature-rich library for handling touch events, please continue your search.\nThis library is in an **early state**, built mostly for educational purposes and not tested thoroughly.\n\n## Installation\n### NPM\n````bash\n  npm install miniswipe --save\n````\n### Manual\n\u003e`Miniswipe` will be added to window as a global.\n````html\n\u003cscript type=\"text/javascript\" src=\"https://unpkg.com/miniswipe\"\u003e\u003c/script\u003e\n````\n## Usage\n### `Miniswipe`\n#### Create a new handler for touch events\n```javascript\nconst swipeHandler = new Miniswipe(document.body, { debug: false, allowClick: true })\n```\n##### Arguments:\n`{string | HTMLElement} The element on which the handler listens for touch gestures`  \n`{Object} Options`\n###### Options\n`{Options.allowClick} If true: miniswipe will handle not only touch events but mouse gestures as well`  \n`{Options.allowMouseLeave} If true: allow swipes to end with a mouseleave event rather than just mouseup`  \n`{Options.debug} If true: miniswipe will log every registered swipe and the subsequently executed functions`  \n  \n  \u0026nbsp;  \n    \n\u003e Note: All methods on the Miniswipe class are chainable (return `this`)\n\n### `left`,`right`,`up`,`down`\n#### Associate methods with swipe gestures\n\u003e Note: You can call these methods multiple times without issue, e.g. if you call `.left()` twice on the same swipe handler, both passed functions will be run when a leftwards swipe is detected.\n```javascript\n  swipeHandler\n    .left(() =\u003e console.log('User swiped left!'))\n    .right(() =\u003e console.log('User swiped right!'))\n    .up(() =\u003e console.log('User swiped up!'))\n    .down(() =\u003e console.log('User swiped down!'))\n```\nThe functions you pass to `left`, `right`, `up` or `down` have the swipe handler's target element bound as their `this` context (unless lexically scoped) and receive the event that completed the swipe ('touchmove', 'mouseup' or 'mouseleave' if `{ allowMouseLeave: true }` in options) as their first argument. Example:\n```javascript\n  swipeHandler.up(function(event) {\n    console.log(this === event.currentTarget) // \u003e true\n  })\n```\n  \u0026nbsp;  \n  \n  \u003e Note: Miniswipe will throw an error if you `start()` a handler that is already active and vice versa\n### `start`\n#### Start listening for touch events\n```javascript\n  swipeHandler.start()\n```\n### `stop`\n#### Stop listening for touch events\n```javascript\n  swipeHandler.stop()\n```\n### `active`\n#### Set to `true` or `false` depending on whether the handler is started or stopped\n```javascript\n  if (swipeHandler.active) swipeHandler.stop()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaskuske%2Fminiswipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonaskuske%2Fminiswipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaskuske%2Fminiswipe/lists"}