{"id":19121568,"url":"https://github.com/tsparticles/webcomponents","last_synced_at":"2025-05-05T16:27:51.892Z","repository":{"id":103338060,"uuid":"564554565","full_name":"tsparticles/webcomponents","owner":"tsparticles","description":"Web Components tsParticles official component","archived":false,"fork":false,"pushed_at":"2025-04-28T07:58:29.000Z","size":230,"stargazers_count":7,"open_issues_count":11,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-28T08:42:42.544Z","etag":null,"topics":["hacktoberfest","javascript","tsparticles","typescript","webcomponents"],"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/tsparticles.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"matteobruni,tsparticles"}},"created_at":"2022-11-11T00:50:16.000Z","updated_at":"2024-12-18T01:04:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c3e4c39-f585-41e5-89af-dce3e5b21a49","html_url":"https://github.com/tsparticles/webcomponents","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/tsparticles%2Fwebcomponents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsparticles%2Fwebcomponents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsparticles%2Fwebcomponents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsparticles%2Fwebcomponents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsparticles","download_url":"https://codeload.github.com/tsparticles/webcomponents/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252533236,"owners_count":21763550,"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":["hacktoberfest","javascript","tsparticles","typescript","webcomponents"],"created_at":"2024-11-09T05:17:48.979Z","updated_at":"2025-05-05T16:27:51.871Z","avatar_url":"https://github.com/tsparticles.png","language":"TypeScript","funding_links":["https://github.com/sponsors/matteobruni,tsparticles","https://github.com/sponsors/matteobruni","https://www.buymeacoffee.com/matteobruni","https://img.buymeacoffee.com/button-api/?text=Buy"],"categories":[],"sub_categories":[],"readme":"[![banner](https://particles.js.org/images/banner3.png)](https://particles.js.org)\n\n# web-particles\n\n[![npm](https://img.shields.io/npm/v/web-particles)](https://www.npmjs.com/package/web-particles) [![npm](https://img.shields.io/npm/dm/web-particles)](https://www.npmjs.com/package/web-particles) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni) [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/web-particles)\n\nOfficial [tsParticles](https://github.com/matteobruni/tsparticles) Web Component\n\n[![Discord](https://particles.js.org/images/discord.png)](https://discord.gg/hACwv45Hme) [![Telegram](https://particles.js.org/images/telegram.png)](https://t.me/tsparticles)\n\n[![tsParticles Product Hunt](https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=186113\u0026theme=light)](https://www.producthunt.com/posts/tsparticles?utm_source=badge-featured\u0026utm_medium=badge\u0026utm_souce=badge-tsparticles\") \u003ca href=\"https://www.buymeacoffee.com/matteobruni\"\u003e\u003cimg src=\"https://img.buymeacoffee.com/button-api/?text=Buy me a beer\u0026emoji=🍺\u0026slug=matteobruni\u0026button_colour=5F7FFF\u0026font_colour=ffffff\u0026font_family=Arial\u0026outline_colour=000000\u0026coffee_colour=FFDD00\"\u003e\u003c/a\u003e\n\n## Installation\n\n```shell script\nyarn add web-particles\n```\n\n## Usage\n\n### Demo config\n\n```html\n\u003cweb-particles id=\"tsparticles\" url=\"http://foo.bar/particles.json\" /\u003e\n\n\u003cweb-particles\n    id=\"tsparticles\"\n    options=\"{\n            background: {\n                color: {\n                    value: '#0d47a1'\n                }\n            },\n            fpsLimit: 120,\n            interactivity: {\n                events: {\n                    onClick: {\n                        enable: true,\n                        mode: 'push'\n                    },\n                    onHover: {\n                        enable: true,\n                        mode: 'repulse'\n                    },\n                    resize: true\n                },\n                modes: {\n                    push: {\n                        quantity: 4\n                    },\n                    repulse: {\n                        distance: 200,\n                        duration: 0.4\n                    }\n                }\n            },\n            particles: {\n                color: {\n                    value: '#ffffff'\n                },\n                links: {\n                    color: '#ffffff',\n                    distance: 150,\n                    enable: true,\n                    opacity: 0.5,\n                    width: 1\n                },\n                collisions: {\n                    enable: true\n                },\n                move: {\n                    direction: 'none',\n                    enable: true,\n                    outMode: 'bounce',\n                    random: false,\n                    speed: 6,\n                    straight: false\n                },\n                number: {\n                    density: {\n                        enable: true,\n                        area: 800\n                    },\n                    value: 80\n                },\n                opacity: {\n                    value: 0.5\n                },\n                shape: {\n                    type: 'circle'\n                },\n                size: {\n                    value: { min: 1, max: 5 },\n                }\n            },\n            detectRetina: true\n        }\"\n/\u003e\n```\n\n## Demos\n\nThe demo website is [here](https://particles.js.org)\n\n\u003chttps://particles.js.org\u003e\n\nThere's also a CodePen collection actively maintained and updated [here](https://codepen.io/collection/DPOage)\n\n\u003chttps://codepen.io/collection/DPOage\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsparticles%2Fwebcomponents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsparticles%2Fwebcomponents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsparticles%2Fwebcomponents/lists"}