{"id":13554139,"url":"https://github.com/ahmadalfy/jquery-simple-flowchart","last_synced_at":"2026-04-02T02:08:40.598Z","repository":{"id":57361274,"uuid":"118669372","full_name":"ahmadalfy/jquery-simple-flowchart","owner":"ahmadalfy","description":"jQuery plugin for building interactive flowchart","archived":false,"fork":false,"pushed_at":"2018-01-28T22:24:15.000Z","size":73,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-04T02:10:12.581Z","etag":null,"topics":["flowchart","jquery-plugin"],"latest_commit_sha":null,"homepage":null,"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/ahmadalfy.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":"2018-01-23T21:03:34.000Z","updated_at":"2023-03-08T03:08:54.000Z","dependencies_parsed_at":"2022-09-26T16:40:50.848Z","dependency_job_id":null,"html_url":"https://github.com/ahmadalfy/jquery-simple-flowchart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ahmadalfy/jquery-simple-flowchart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadalfy%2Fjquery-simple-flowchart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadalfy%2Fjquery-simple-flowchart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadalfy%2Fjquery-simple-flowchart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadalfy%2Fjquery-simple-flowchart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmadalfy","download_url":"https://codeload.github.com/ahmadalfy/jquery-simple-flowchart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadalfy%2Fjquery-simple-flowchart/sbom","scorecard":{"id":171893,"data":{"date":"2025-08-11","repo":{"name":"github.com/ahmadalfy/jquery-simple-flowchart","commit":"b22c614d9c4e5cb61f13cbdf2d6d9428ffadd92f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"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":1,"reason":"Found 1/8 approved changesets -- score normalized to 1","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":"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":"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":"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":"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 14 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"}}]},"last_synced_at":"2025-08-16T16:45:48.832Z","repository_id":57361274,"created_at":"2025-08-16T16:45:48.832Z","updated_at":"2025-08-16T16:45:48.832Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"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":["flowchart","jquery-plugin"],"created_at":"2024-08-01T12:02:40.435Z","updated_at":"2026-04-02T02:08:40.556Z","avatar_url":"https://github.com/ahmadalfy.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","others"],"sub_categories":[],"readme":"# jQuery Simple Flowchart\n\nI created this plugin because I needed to add an interactive decision tree / flowchart and the existing solutions didn't suit my needs.\n\n## Features\n\n* Lightweight: around ~150 line of code\n* Use CSS for styling (following BEM)\n* Options for animation and automatic scrolling\n* Support different node types:\n  * Question with ability to add any number of answers\n  * Informative node with link\n  * Final link\n* Full control on the used classes\n* Ability to define custom class per node / answer\n\n## Usage\n\n### Package Managers\n\n```sh\n# NPM\nnpm install simpleflowchart.jquery\n\n# YARN\nyarn add simpleflowchart.jquery\n```\n\n### Using the files\n\nInclude the script after jQuery like the following\n\n```html\n\u003cscript src=\"path/to/jQuery.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"simpleflowchart.jquery.js\"\u003e\u003c/script\u003e\n```\n\nInclude the CSS file in your `\u003chead\u003e` (not required but can provide a good starting point for you to style from)\n\n```html\n\u003clink rel=\"stylesheet\" src=\"simpleflowchart.jquery.css\" /\u003e\n```\n\nAdd the element that will host the chart then initialize the plugin\n\n```html\n\u003cdiv class=\"chart\"\u003e\n  \u003c!-- It's a good practice to include an alternative version for the chart like an image or a link to a pdf file for users without JavaScript or in case the script failed to execute for any reason --\u003e\n\u003c/div\u003e\n\u003cscript\u003e\n  $('.chart').simpleflowchart(options);\n\u003c/script\u003e\n```\n\n## Options\n\nOption | Type | Default | Description\n------ | ---- | ------- | -----------\ndata | array | [] | The data used to construct the tree. See the section [`Data format`](#data-format) for more details.\nwrapperClass | string | `chart-wrapper` | The class used for the wrapper that contain the chart.\nstartClass | string | `node__start` | The class used for the starting node in the chart.\ninformativeClass | string | `node__informative` | The class used for the informative nodes in the chart.\nnodeClass | string | `node__question` | The class used for the regular nodes in the chart.\nfinishClass | string | `node__finish` | The class used for the final node in the chart.\nstartingPoint | integer | `1` | The id of the starting node in the chart.\nanimated | boolean | `true` | Option to animate adding / removing nodes from the chart.\neasingSpeed | integer | `300` | The speed by nodes are added / removed from the chart. This option works only if `easingSpeed` is set to `true`.\nscrollToNewNode | boolean | `true` | Option to automatically scroll to newly created nodes. This is useful when the chart grows it automatically scroll so that the user can see the new parts.\nscrollSpeed | integer | `800` | The speed by which the page scroll to the newly created nodes. This option works only if `scrollToNewNode` is set to `true`.\n\n## Data format\n\nData should be supplied to the plugin as an array of objects. Below are the list of properties that should be used:\n\nProperty | Type | Required | Description\n------ | ---- | ------- | -----------\n`id` | integer | yes | The identifier for each node. This property is used for linking between the different nodes in the chart.\n`text` | string | yes | The text that will be displayed for this node.\n`answers` | array | no | List of the answers that the user can click to navigate to the next node. Each answer is an object that can have three properties: `link`, `text`, `class`. Check [Answer format](#answer-format) for more details\n`start` | boolean | no | Set the node type to `start` and add the class defined by the option `startClass`.\n`finish` | boolean | no | Set the node type to `finish` and add the class defined by the option `finishClass`.\n`informative` | boolean | no | Set the node type to `informative`. This type of node doesn't have answers, it just display some text and it links to a different node using the property `link`. See the next property for details.\n`link` | string | yes when node type is set to `informative` | Should be the `id` of the node that the associated informative node link to.\n`class` | string | no | Optional class to be added to that node.\n\n### Answer format\n\nAnswers is an array of object. Below are the list of properties that should be used:\n\nProperty | Type | Required | Description\n------ | ---- | ------- | -----------\n`link` | integer | yes | Should be the `id` of the node the user should see when he click that answer.\n`text` | string | yes | The text that will be displayed for this node.\n`class` | string | no | Optional class to be added to that answer button.\n\n### Example\n\n```json\n  [\n    {\n      \"id\": 1,\n      \"text\": \"Are you willing to follow this chart till the end?\",\n      \"start\": true,\n      \"answers\": [\n        {\n          \"text\": \"Yes\",\n          \"link\": 2,\n          \"class\": \"decision-success\"\n        }, {\n          \"text\": \"No\",\n          \"link\": 3,\n          \"class\": \"decision-error\"\n        }\n      ]\n    }, {\n      \"id\": 2,\n      \"text\": \"Good, now check the next node.\",\n      \"informative\": true,\n      \"link\": 4\n    }, {\n      \"id\": 3,\n      \"text\": \"OK, have a nice day\",\n      \"finish\": true,\n    }, {\n      \"id\": 4,\n      \"text\": \"Now answer the following questions\",\n      \"answers\": [\n        ...\n      ]\n    }\n  ]\n```\n\n### Full Example\n![Full Example](flowChartExample.png \"Full Example\")\n\n*see index.html for full example code*\n\n\n## Events\n\nEvents are callbacks that execute in response to different actions like click a decision, before or after drawing a node ... etc. To be added in the upcoming versions\n\n## Methods\n\nMethods are called on the chart instances through the simpleflowchart method itself. To be added in the upcoming versions.\n\n## Dependencies\n\njQuery 2.0+, 3.0+\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmadalfy%2Fjquery-simple-flowchart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmadalfy%2Fjquery-simple-flowchart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmadalfy%2Fjquery-simple-flowchart/lists"}