{"id":13447471,"url":"https://github.com/ifrost/moses","last_synced_at":"2026-01-31T14:11:36.859Z","repository":{"id":142161657,"uuid":"51648889","full_name":"ifrost/moses","owner":"ifrost","description":"JavaScript mouse/touch gesture recognition library","archived":false,"fork":false,"pushed_at":"2024-07-26T09:09:16.000Z","size":101,"stargazers_count":15,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-20T23:04:11.715Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://ifrost.github.io/moses/html/demo/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ifrost.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-02-13T14:21:06.000Z","updated_at":"2024-07-09T11:57:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed69f2a0-c5e8-409c-b9b0-2cc4e152fdf9","html_url":"https://github.com/ifrost/moses","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/ifrost/moses","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifrost%2Fmoses","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifrost%2Fmoses/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifrost%2Fmoses/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifrost%2Fmoses/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ifrost","download_url":"https://codeload.github.com/ifrost/moses/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifrost%2Fmoses/sbom","scorecard":{"id":482198,"data":{"date":"2025-08-11","repo":{"name":"github.com/ifrost/moses","commit":"68909c230dc421526c66f9fe8b700c11e3928de2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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"}}]},"last_synced_at":"2025-08-19T16:54:54.448Z","repository_id":142161657,"created_at":"2025-08-19T16:54:54.448Z","updated_at":"2025-08-19T16:54:54.448Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28944825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T13:02:32.153Z","status":"ssl_error","status_checked_at":"2026-01-31T13:00:07.528Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-07-31T05:01:18.730Z","updated_at":"2026-01-31T14:11:36.844Z","avatar_url":"https://github.com/ifrost.png","language":"JavaScript","readme":"# Moses\n\nJavaScript library for mouse/touch gesture recognition. \n\nIt's a JS version of https://github.com/ifrost/moses-flash.\n\n# Demo\n\nhttp://ifrost.github.io/moses/html/demo/\n\n# How it works?\n\nA `Sampler` is responsible for capturing user events and dispatching sampling events with a list of sampled points.\n\nA `Recogniser` listens to sampling events. When a gesture is sampled recogniser processes the data. It checks all registered `Patterns` and runs the pattern's `Algorithm` passing sampled data. Each `Pattern` contains data that is used by algorithm to compare with the sampled points. `Algorithm` returns a `Match` object with 0-1 value showing how well recognition of the pattern went.\n\nSamplers (`js/sampler`):\n*`DistanceSampler` based on the distance between points\n*`TimeSampler` based on time delay\n\nRecognisers (`js/reconigser`): \n* `DefaultRecogniser`\n\nAlgorithms (`js/algorithm`):\n* `DefaultMosesAlgorithm` based on simplified directions (similar to http://www.bytearray.org/?p=91)\n* `ShiftedPointsMosesAlgorithm` variaton of `DefaultMosesAlgorithm` that shifts the points before recognition so closed patterns can be recognises from any starting point\n* `ReversedMosesAlgorithm` variation of `DefaultMosesAlgorithm` that additionally compares the pattern with data points in reversed order\n* `PolygonalLineAlgorithm` recognising polygonal lines\n* `StraightLineAlgorithm` recognising if the gesture was a simple, straight line\n* `PatternCollectionAlgorithm` algorithm used by `PatternCollection`\n\nSome predefined patterns are available: `moses.model.MosesPatterns.create()`.\n\n# Example\n\n``` javascript\n// create collection of predefined patterns\nvar mosesPatterns = moses.model.MosesPatterns.create();\n \n// choose patterns from the collection\nvar patterns = [mosesPatterns.V, mosesPatterns.CIRCLE, mosesPatterns.DASH, mosesPatterns.SQUARE, mosesPatterns.SEVEN, mosesPatterns.Z];\n \n// create a sampler\nvar div = document.getElementById(\"sampler\");\nvar sampler = moses.sampler.DistanceSampler.create(div, 5);\n\n// create a recogniser\nvar recogniser = moses.recogniser.DefaultRecogniser.create();\n\n// register selecte patterns\npatterns.forEach(function(pattern) {\n   recogniser.register(pattern);\n});\n\n// display the result\nrecogniser.on('recognised', function(data) {\n   var text;\n   console.log('Best match:', data.bestMatch);\n   if (data.bestMatch.recognised) {\n       text = 'Recognised: ' + data.bestMatch.pattern.name + ' (' + Math.floor(data.bestMatch.value * 100) + '%)';\n       console.log(text);\n   }\n   else {\n       text = 'Not recognised. Was it ' + data.bestMatch.pattern.name + '? (' + Math.floor(data.bestMatch.value * 100) + '%)';\n       console.log(text);\n   }\n});\n\n// assign sampler to the recogniser\nrecogniser.sampler = sampler;\n\n// activate the sampler\nsampler.activate();\n\n```\n\n\n","funding_links":[],"categories":["JavaScript","Unsorted"],"sub_categories":["Other API"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifrost%2Fmoses","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fifrost%2Fmoses","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifrost%2Fmoses/lists"}