{"id":21063583,"url":"https://github.com/mathew-kurian/bayesianchangepointjs","last_synced_at":"2025-09-09T19:30:16.335Z","repository":{"id":42901859,"uuid":"252075706","full_name":"mathew-kurian/BayesianChangePointJS","owner":"mathew-kurian","description":"📈Pure JavaScript/TypeScript Bayesian changepoint detection for Browsers \u0026 NodeJS ","archived":false,"fork":false,"pushed_at":"2022-12-30T20:00:08.000Z","size":100,"stargazers_count":6,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-19T15:40:08.933Z","etag":null,"topics":["alerts","analysis","bayesian","browser","changepoint","commonjs","detection","javascript","nodejs","typescript"],"latest_commit_sha":null,"homepage":"https://arxiv.org/pdf/0710.3742.pdf","language":"TypeScript","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/mathew-kurian.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}},"created_at":"2020-04-01T04:55:10.000Z","updated_at":"2024-12-08T04:30:16.000Z","dependencies_parsed_at":"2023-01-31T15:15:46.119Z","dependency_job_id":null,"html_url":"https://github.com/mathew-kurian/BayesianChangePointJS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mathew-kurian/BayesianChangePointJS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathew-kurian%2FBayesianChangePointJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathew-kurian%2FBayesianChangePointJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathew-kurian%2FBayesianChangePointJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathew-kurian%2FBayesianChangePointJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathew-kurian","download_url":"https://codeload.github.com/mathew-kurian/BayesianChangePointJS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathew-kurian%2FBayesianChangePointJS/sbom","scorecard":{"id":624233,"data":{"date":"2025-08-11","repo":{"name":"github.com/mathew-kurian/BayesianChangePointJS","commit":"5659f305998c5a9e87fe70c996c0d6b629e33e08"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/7 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":"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":"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":"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":"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":"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":"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":"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 2 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":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"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-21T05:58:35.792Z","repository_id":42901859,"created_at":"2025-08-21T05:58:35.792Z","updated_at":"2025-08-21T05:58:35.792Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274348952,"owners_count":25268974,"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-09-09T02:00:10.223Z","response_time":80,"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":["alerts","analysis","bayesian","browser","changepoint","commonjs","detection","javascript","nodejs","typescript"],"created_at":"2024-11-19T17:46:10.663Z","updated_at":"2025-09-09T19:30:16.278Z","avatar_url":"https://github.com/mathew-kurian.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Bayesian Online ChangePoint JS Detection\n\n[![Edit BayesianChangePointJS](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/hopeful-hawking-vpftt?fontsize=14\u0026hidenavigation=1\u0026theme=dark)\n\nPure JavaScript/TypeScript implementation of [Bayesian Online Changepoint](https://arxiv.org/pdf/0710.3742.pdf) detection which runs for Browsers \u0026 NodeJS.\n\n## Example\n\n```typescript\nimport assert from \"assert\";\nimport BayesianChangePoint, { BreakPoint } from \"bayesian-changepoint\";\n\nconst breakpointVerifier = (\n  next: BreakPoint\u003cnumber\u003e,\n  prev: BreakPoint\u003cnumber\u003e\n): boolean =\u003e {\n  if (Math.abs(next.data - prev.data) \u003e= 5) {\n    return true;\n  }\n\n  return false;\n};\n\nconst values = (breakPoints: BreakPoint\u003cnumber\u003e[]): number[] =\u003e {\n  return breakPoints.map(breakPoint =\u003e breakPoint.data);\n};\n\nconst indicies = (breakPoints: BreakPoint\u003cnumber\u003e[]): number[] =\u003e {\n  return breakPoints.map(breakPoint =\u003e breakPoint.index);\n};\n\nconst detection = new BayesianChangePoint\u003cnumber\u003e({\n  breakpointVerifier\n});\n\ndetection.exec([10, 10, 10, 10, 5000, 5000, 5000, 5000, 30, 30, 30, 30, 30]);\n\nassert.deepEqual(values(detection.breakPoints()), [5000, 30]);\nassert.deepEqual(indicies(detection.breakPoints()), [4, 8]);\n```\n\n## Installation\n\n```bash\nnpm install\nnpm test\n```\n\n## Credits\n\nBased off of [Bayesian Online Changepoint](https://arxiv.org/pdf/0710.3742.pdf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathew-kurian%2Fbayesianchangepointjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathew-kurian%2Fbayesianchangepointjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathew-kurian%2Fbayesianchangepointjs/lists"}