{"id":26467434,"url":"https://github.com/tombarr/react-metaballs","last_synced_at":"2025-07-16T11:08:17.315Z","repository":{"id":57334517,"uuid":"142947569","full_name":"Tombarr/react-metaballs","owner":"Tombarr","description":"Data-driven React component rendering and animating metaballs as scalable SVG elements","archived":false,"fork":false,"pushed_at":"2019-11-25T18:28:23.000Z","size":2648,"stargazers_count":22,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T13:09:48.263Z","etag":null,"topics":["d3","d3js","javascript","react","reactjs","svg"],"latest_commit_sha":null,"homepage":"https://tombarr.github.io/react-metaballs/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tombarr.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":"2018-07-31T01:43:44.000Z","updated_at":"2025-02-20T18:37:51.000Z","dependencies_parsed_at":"2022-09-05T08:01:51.923Z","dependency_job_id":null,"html_url":"https://github.com/Tombarr/react-metaballs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tombarr%2Freact-metaballs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tombarr%2Freact-metaballs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tombarr%2Freact-metaballs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tombarr%2Freact-metaballs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tombarr","download_url":"https://codeload.github.com/Tombarr/react-metaballs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244447956,"owners_count":20454420,"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","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","d3js","javascript","react","reactjs","svg"],"created_at":"2025-03-19T14:41:08.228Z","updated_at":"2025-03-19T14:41:09.302Z","avatar_url":"https://github.com/Tombarr.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Metaballs\n\nData-driven React component rendering SVG metaballs, animated using d3.  \n\n[![NPM](https://img.shields.io/npm/v/react-metaballs.svg)](https://www.npmjs.com/package/react-metaballs) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Example\n\nSee a [demo here](https://tombarr.github.io/react-metaballs/index.html)\n\n![metaball anim](./metaball_animation.gif)\n\n## Install\n\n```bash\nnpm install --save react-metaballs\n```\n\n## Usage\n\n```jsx\nimport React, { Component } from 'react'\n\nimport ReactMetaballs from 'react-metaballs'\n\nconst circles = [\n  {\n    cx: 200,\n    cy: 100,\n    r: 64\n  },\n  {\n    cx: 300,\n    cy: 300,\n    r: 96\n  },\n  {\n    cx: 250,\n    cy: 475,\n    r: 56\n  },\n  {\n    cx: 350,\n    cy: 675,\n    r: 128\n  },\n  {\n    cx: 600,\n    cy: 800,\n    r: 76\n  }\n]\n\nclass Example extends Component {\n  render () {\n    return (\n      \u003cMetaballs\n        ref={this.metaballs}\n        easement={d3.easeBackOut}\n        circles={circles} /\u003e\n    )\n  }\n}\n```\n\n## Compatibility\n\nTested on modern browsers and IE 11.\n\n![metaball IE](./metaball_ie.gif)\n\n## Performance\n\nBasic testing shows the SVG path animation is able to comfortably perform at or above 60fps.\n\n![metaball performance](./performance_screenshot.png)\n\n## License\n\nMIT © [Tombarr](https://github.com/Tombarr)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftombarr%2Freact-metaballs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftombarr%2Freact-metaballs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftombarr%2Freact-metaballs/lists"}