{"id":13802779,"url":"https://github.com/ameyms/diffract","last_synced_at":"2026-01-20T05:03:01.832Z","repository":{"id":26828947,"uuid":"30288177","full_name":"ameyms/diffract","owner":"ameyms","description":"A set of d3 based visualization components built for React","archived":false,"fork":false,"pushed_at":"2016-05-09T17:36:48.000Z","size":2565,"stargazers_count":86,"open_issues_count":4,"forks_count":10,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-10-08T11:50:55.212Z","etag":null,"topics":["chart","d3","donut","graph","javascript","react","reactjs","visual-components","visualization"],"latest_commit_sha":null,"homepage":"http://diffract.js.org/","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/ameyms.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}},"created_at":"2015-02-04T08:06:27.000Z","updated_at":"2025-03-25T12:10:06.000Z","dependencies_parsed_at":"2022-09-03T19:11:33.042Z","dependency_job_id":null,"html_url":"https://github.com/ameyms/diffract","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/ameyms/diffract","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ameyms%2Fdiffract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ameyms%2Fdiffract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ameyms%2Fdiffract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ameyms%2Fdiffract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ameyms","download_url":"https://codeload.github.com/ameyms/diffract/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ameyms%2Fdiffract/sbom","scorecard":{"id":189211,"data":{"date":"2025-08-11","repo":{"name":"github.com/ameyms/diffract","commit":"6b9805819abb7818f9dcb9c69446ec9c2e36e09c"},"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":"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":"Code-Review","score":0,"reason":"Found 1/26 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":"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":"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":"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":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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.3.2 not signed: https://api.github.com/repos/ameyms/diffract/releases/3186921","Warn: release artifact v0.3.1 not signed: https://api.github.com/repos/ameyms/diffract/releases/2975552","Warn: release artifact v0.3.0 not signed: https://api.github.com/repos/ameyms/diffract/releases/2865514","Warn: release artifact v0.2.1 not signed: https://api.github.com/repos/ameyms/diffract/releases/2780851","Warn: release artifact v0.2.0 not signed: https://api.github.com/repos/ameyms/diffract/releases/2780826","Warn: release artifact v0.3.2 does not have provenance: https://api.github.com/repos/ameyms/diffract/releases/3186921","Warn: release artifact v0.3.1 does not have provenance: https://api.github.com/repos/ameyms/diffract/releases/2975552","Warn: release artifact v0.3.0 does not have provenance: https://api.github.com/repos/ameyms/diffract/releases/2865514","Warn: release artifact v0.2.1 does not have provenance: https://api.github.com/repos/ameyms/diffract/releases/2780851","Warn: release artifact v0.2.0 does not have provenance: https://api.github.com/repos/ameyms/diffract/releases/2780826"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 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-16T20:19:00.365Z","repository_id":26828947,"created_at":"2025-08-16T20:19:00.365Z","updated_at":"2025-08-16T20:19:00.365Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28596087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: 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":["chart","d3","donut","graph","javascript","react","reactjs","visual-components","visualization"],"created_at":"2024-08-04T00:01:56.042Z","updated_at":"2026-01-20T05:03:01.811Z","avatar_url":"https://github.com/ameyms.png","language":"JavaScript","readme":"# diffract\n[![npm version](https://badge.fury.io/js/diffract.svg)](http://badge.fury.io/js/diffract)\n[![devDependency Status](https://david-dm.org/ameyms/diffract/dev-status.svg)](https://david-dm.org/ameyms/diffract#info=devDependencies)\n[![peerDependency Status](https://david-dm.org/ameyms/diffract/peer-status.svg)](https://david-dm.org/ameyms/diffract#info=peerDependencies)\n\nA set of d3 based visualization components with **cool animations** built for React\n\nInstallation\n---\nDiffract is available via npm and can be used along with [browserify](http://browserify.org/)\n\n```shell\nnpm install diffract\n\n```\n\n## Usage\n\nAfter installing diffract via NPM, you may use the components in your code as follows:\n\n```js\n/** DeathStar.jsx */\n\nimport React from 'react';\nimport {Chart, DataSeries, Pie} from 'diffract';\n\n// ...And use it in your code\nclass DeathStar extends Component {\n\n  render: function() {\n    return (\n        \u003cChart width={width} height={height}\u003e\n            \u003cDataSeries data={this.state.values}\u003e\n                \u003cPie innerRadius={75} outerRadius={110}\n                    style={(d, i) =\u003e ({fill: this.getColors(i)})}\u003e\n                    \u003ctext className=\"donut-title\" textAnchor=\"middle\"\n                        x={0} y={0} fontSize={18}\u003e\n                        {'Hello'}\n                    \u003c/text\u003e\n                    \u003ctext className=\"donut-subtitle\" textAnchor=\"middle\"\n                        x={0} y={18} fontSize={10}\u003e\n                        {'diffract'}\n                    \u003c/text\u003e\n                \u003c/Pie\u003e\n            \u003c/DataSeries\u003e\n        \u003c/Chart\u003e\n    );\n  }\n\n}\n\n```\n\n## More Examples\nSee [examples](https://github.com/ameyms/diffract/blob/master/example/demo.jsx) for more\nexamples including Donuts, BarChart, stacked bar chart, grouped bar chart etc.\n## Demo\n### Donut\n![Donut](https://raw.github.com/ameyms/diffract/master/etc/donut.gif)\n\n### Bar Graph\n![Bar Graph](https://raw.github.com/ameyms/diffract/master/etc/bar_graph_1.gif)\n\n\n\n\n----\n\n\n  License: MIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fameyms%2Fdiffract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fameyms%2Fdiffract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fameyms%2Fdiffract/lists"}