{"id":19343787,"url":"https://github.com/tsv2013/algorithm","last_synced_at":"2026-05-17T03:02:58.217Z","repository":{"id":31880474,"uuid":"35448925","full_name":"tsv2013/algorithm","owner":"tsv2013","description":"Algorithm block diagram visualization and editing widget (jQuery+KnockoutJS)","archived":false,"fork":false,"pushed_at":"2018-11-23T12:59:07.000Z","size":275,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-06T09:41:25.946Z","etag":null,"topics":["algorithm","algorithm-block-diagram","algorithm-visualization-widget","block-diagram","javascript","knockoutjs","visualization"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/tsv2013.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-11T20:41:29.000Z","updated_at":"2018-11-23T12:59:08.000Z","dependencies_parsed_at":"2022-08-30T20:01:00.775Z","dependency_job_id":null,"html_url":"https://github.com/tsv2013/algorithm","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/tsv2013/algorithm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsv2013%2Falgorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsv2013%2Falgorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsv2013%2Falgorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsv2013%2Falgorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsv2013","download_url":"https://codeload.github.com/tsv2013/algorithm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsv2013%2Falgorithm/sbom","scorecard":{"id":901245,"data":{"date":"2025-08-11","repo":{"name":"github.com/tsv2013/algorithm","commit":"cfd1b0bcaac0e5e21ea9c319ab35b922c1912cf2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"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":"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":"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":"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":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"}}]},"last_synced_at":"2025-08-24T15:39:32.989Z","repository_id":31880474,"created_at":"2025-08-24T15:39:32.989Z","updated_at":"2025-08-24T15:39:32.989Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33126085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"online","status_checked_at":"2026-05-17T02:00:05.366Z","response_time":107,"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":["algorithm","algorithm-block-diagram","algorithm-visualization-widget","block-diagram","javascript","knockoutjs","visualization"],"created_at":"2024-11-10T03:39:23.630Z","updated_at":"2026-05-17T03:02:58.176Z","avatar_url":"https://github.com/tsv2013.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tsvw-algorithm #\n\n[![Build Status](https://travis-ci.org/tsv2013/algorithm.svg)](https://travis-ci.org/tsv2013/algorithm) [![Coverage Status](https://coveralls.io/repos/tsv2013/algorithm/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/tsv2013/algorithm?branch=master) [![GitHub version](https://badge.fury.io/gh/tsv2013%2Falgorithm.svg)](http://badge.fury.io/gh/tsv2013%2Falgorithm) [![Bower version](https://badge.fury.io/bo/tsv-widget-algorithm.svg)](http://badge.fury.io/bo/tsv-widget-algorithm) [![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)\n\n## Algorithm block diagram visualization and editing widget (jQuery+KnockoutJS) ##\n## Live demo at: http://tsv2013.github.io/algorithm/ ##\n\n[![NPM](https://nodei.co/npm/tsvw-algorithm.png)](https://npmjs.org/package/tsvw-algorithm)\n\n\n##How to visualize algorithm block diagram\n\n1. **Add the following markup to your page:**\n\t```\n    \u003cdiv data-bind=\"algorithm: { value: algorithm }\"\u003e\u003c/div\u003e\n\t```\n\n2. **Define algorithm via JSON, for instance:**\n\t```\n    var model = {\n        algorithm: {\n            items: [\n                { id: 9, text: \"finish\" },\n                { id: 6, text: \"is condition true?\" },\n                { id: 3, text: \"block is in progress\", state: \"inprogress\" },\n                { id: 7, text: \"this block has a number\", num: 1 },\n                { id: 2, text: \"this is a simple block with a very very content string\" },\n                { id: 1, text: \"start\", comment: \"This is the start block.\" },\n                { id: 4, text: \"this block is completed\", state: \"completed\" },\n                { id: 5, text: \"an intermediate block\" },\n                { id: 8, text: \"pre-end simple block\" },\n            ],\n            transitions: [\n                { iid: 1, exit1: 2, exit2: null },\n                { iid: 2, exit1: 3, exit2: null },\n                { iid: 2, exit1: 5, exit2: null },\n                { iid: 3, exit1: 4, exit2: null },\n                { iid: 4, exit1: 6, exit2: null },\n                { iid: 5, exit1: 6, exit2: null },\n                { iid: 6, exit1: 7, exit2: 8 },\n                { iid: 7, exit1: 9, exit2: null },\n                { iid: 8, exit1: 9, exit2: null },\n            ]\n        }\n    };\n\t```\n\n3. **Bind model via KnockoutJS:**\n\t```\n    ko.applyBindings(model);\n\t```\n\n\n##How to modify algorithm block diagram\n\nWhile hovering mouse over algorithm blocks you will see control points to add blocks above and below, delete block and drag to link this block with other one.\n\n\n##Building tsvw-algorithm from sources\n\n 1. **Clone the repo from GitHub**  \n\t```\n\tgit clone https://github.com/tsv2013/algorithm.git\n\tcd algorithm\n\t```\n\n 2. **Acquire build dependencies.** Make sure you have [Node.js](http://nodejs.org/) installed on your workstation. This is only needed to _build_ algorithm from sources.  \n\t```\n\tnpm install -g karma-cli\n\tnpm install\n\t```\n\n 3. **Build the library**\n\t```\n\tnpm run build\n\t```\n\tAfter that you should have the library at 'dist' directory.\n\n 4. **Run unit tests**\n\t```\n\tkarma start\n\t```\n\tThis command will run unit tests usign [Karma](https://karma-runner.github.io/0.13/index.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsv2013%2Falgorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsv2013%2Falgorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsv2013%2Falgorithm/lists"}