{"id":31846910,"url":"https://github.com/vasturiano/d3-force-pod","last_synced_at":"2025-10-26T07:07:37.151Z","repository":{"id":24894811,"uuid":"102702050","full_name":"vasturiano/d3-force-pod","owner":"vasturiano","description":"Component to automatically draw nodes/links in a D3 force simulation according to a set of forces","archived":false,"fork":false,"pushed_at":"2025-03-21T03:31:33.000Z","size":353,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-15T09:27:15.273Z","etag":null,"topics":["d3-force-simulation","d3js","force"],"latest_commit_sha":null,"homepage":"https://vasturiano.github.io/d3-force-pod/example/column/","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/vasturiano.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-07T06:49:55.000Z","updated_at":"2025-03-25T04:48:55.000Z","dependencies_parsed_at":"2024-12-13T21:36:03.257Z","dependency_job_id":null,"html_url":"https://github.com/vasturiano/d3-force-pod","commit_stats":{"total_commits":75,"total_committers":2,"mean_commits":37.5,"dds":"0.026666666666666616","last_synced_commit":"b3f636ee79db762558136518dab8053519049de4"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/vasturiano/d3-force-pod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasturiano%2Fd3-force-pod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasturiano%2Fd3-force-pod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasturiano%2Fd3-force-pod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasturiano%2Fd3-force-pod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vasturiano","download_url":"https://codeload.github.com/vasturiano/d3-force-pod/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasturiano%2Fd3-force-pod/sbom","scorecard":{"id":916815,"data":{"date":"2025-08-11","repo":{"name":"github.com/vasturiano/d3-force-pod","commit":"30cde25765e6c95eb598e70fe4db3771fd5f5b99"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw"],"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-24T21:19:58.293Z","repository_id":24894811,"created_at":"2025-08-24T21:19:58.294Z","updated_at":"2025-08-24T21:19:58.294Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010957,"owners_count":26084837,"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-10-12T02:00:06.719Z","response_time":53,"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":["d3-force-simulation","d3js","force"],"created_at":"2025-10-12T09:17:41.708Z","updated_at":"2025-10-12T09:17:44.358Z","avatar_url":"https://github.com/vasturiano.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"d3-force-pod\n==============\n\n[![NPM package][npm-img]][npm-url]\n[![Build Size][build-size-img]][build-size-url]\n[![NPM Downloads][npm-downloads-img]][npm-downloads-url]\n\nComponent that runs a D3 force simulation and automatically draws circles/lines to an SVG canvas according to a configurable set of nodes, links and forces.\n\nNodes are prevented from escaping by hard-limiting the coordinates to the boundaries of the canvas.\n\n## Quick start\n\n```js\nimport d3ForcePod from 'd3-force-pod';\n```\nor using a *script* tag\n```html\n\u003cscript src=\"//cdn.jsdelivr.net/npm/d3-force-pod\"\u003e\u003c/script\u003e\n```\nthen\n```js\nnew d3ForcePod(\u003cmyDOMElement\u003e)\n  .genNodes()\n  .addForce(d3.forceManyBody());\n```\n\n## API reference\n\n| Method | Description | Default |\n| ------------------ | -------------------------------------------------------------------------------------------------------------------------- | ------------- |\n| \u003cb\u003ewidth\u003c/b\u003e([\u003ci\u003enumber\u003c/i\u003e]) | Getter/setter for the canvas width. | window.innerWidth |\n| \u003cb\u003eheight\u003c/b\u003e([\u003ci\u003enumber\u003c/i\u003e]) | Getter/setter for the canvas height. | window.innerHeight |\n| \u003cb\u003enodes\u003c/b\u003e([\u003ci\u003earray\u003c/i\u003e]) | Getter/setter for the list of nodes. Each node should be an object with the following optional properties: `{ x, y, vx, vy, r }`. | [] |\n| \u003cb\u003elinks\u003c/b\u003e([\u003ci\u003earray\u003c/i\u003e]) | Getter/setter for the list of lines to draw between node pairs. Each link should follow the syntax: `{source: \u003cnode index or node obj\u003e, target: \u003cnode index or node obj\u003e}`. | [] |\n| \u003cb\u003egenNodes\u003c/b\u003e([\u003ci\u003eobject\u003c/i\u003e]) | Convenience method for randomly generating nodes. See below for input options and defaults. ||\n| \u003cb\u003eaddForce\u003c/b\u003e(\u003ci\u003efn\u003c/i\u003e) | Method to register a D3 force in the system. ||\n| \u003cb\u003esimulation\u003c/b\u003e() | Getter for the underlying simulation object. Can be used as an escape hatch to modify simulation parameters such as alphaDecay. | d3.forceSimulation().alphaDecay(0).velocityDecay(0) |\n| \u003cb\u003enodeColor\u003c/b\u003e([\u003ci\u003estring\u003c/i\u003e or \u003ci\u003efn\u003c/i\u003e]) | Getter/setter for the color accessor of the node circles | #900C3F |\n| \u003cb\u003elinkColor\u003c/b\u003e([\u003ci\u003estring\u003c/i\u003e or \u003ci\u003efn\u003c/i\u003e]) | Getter/setter for the color accessor of the link lines | #00008B |\n\n#### genNodes(\u003ci\u003eoptions\u003c/i\u003e) defaults:\n\n```js\n{\n    density: 0.00025,             // nodes/px\n    xRange: [0, width],           // px\n    yRange: [0, height],          // px\n    radiusRange: [1, 18],         // px\n    velocityRange: [0, 4],        // px/tick\n    velocityAngleRange: [0, 360]  // 0=right, 90=down\n}\n```\n\n\n[npm-img]: https://img.shields.io/npm/v/d3-force-pod\n[npm-url]: https://npmjs.org/package/d3-force-pod\n[build-size-img]: https://img.shields.io/bundlephobia/minzip/d3-force-pod\n[build-size-url]: https://bundlephobia.com/result?p=d3-force-pod\n[npm-downloads-img]: https://img.shields.io/npm/dt/d3-force-pod\n[npm-downloads-url]: https://www.npmtrends.com/d3-force-pod\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasturiano%2Fd3-force-pod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvasturiano%2Fd3-force-pod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasturiano%2Fd3-force-pod/lists"}