{"id":15284288,"url":"https://github.com/tsparticles/solid","last_synced_at":"2025-07-13T13:34:38.776Z","repository":{"id":73873982,"uuid":"564550708","full_name":"tsparticles/solid","owner":"tsparticles","description":"Solid.js tsParticles official component","archived":false,"fork":false,"pushed_at":"2025-04-01T06:54:16.000Z","size":876,"stargazers_count":16,"open_issues_count":14,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-01T07:38:06.553Z","etag":null,"topics":["hacktoberfest","javascript","solid","tsparticles","typescript"],"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":"CHANGELOG.md","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},"funding":{"github":"matteobruni,tsparticles"}},"created_at":"2022-11-11T00:34:32.000Z","updated_at":"2025-03-29T21:01:38.000Z","dependencies_parsed_at":"2024-03-12T13:03:00.181Z","dependency_job_id":"e89f9d4f-d42e-43ff-bf8c-444ec50343ab","html_url":"https://github.com/tsparticles/solid","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsparticles%2Fsolid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsparticles%2Fsolid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsparticles%2Fsolid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsparticles%2Fsolid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsparticles","download_url":"https://codeload.github.com/tsparticles/solid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248644180,"owners_count":21138564,"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","solid","tsparticles","typescript"],"created_at":"2024-09-30T14:52:53.941Z","updated_at":"2025-04-12T23:21:29.322Z","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":["📦 Components \u0026 Libraries"],"sub_categories":["UI Components"],"readme":"[![banner](https://particles.js.org/images/banner3.png)](https://particles.js.org)\n\n# @tsparticles/solid\n\n[![npm](https://img.shields.io/npm/v/@tsparticles/solid)](https://www.npmjs.com/package/@tsparticles/solid) [![npm](https://img.shields.io/npm/dm/@tsparticles/solid)](https://www.npmjs.com/package/@tsparticles/solid) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)\n\nOfficial [tsParticles](https://github.com/matteobruni/tsparticles) solid component\n\n[![Slack](https://particles.js.org/images/slack.png)](https://join.slack.com/t/tsparticles/shared_invite/enQtOTcxNTQxNjQ4NzkxLWE2MTZhZWExMWRmOWI5MTMxNjczOGE1Yjk0MjViYjdkYTUzODM3OTc5MGQ5MjFlODc4MzE0N2Q1OWQxZDc1YzI) [![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\nnpm install @tsparticles/solid\n```\n\nor\n\n```shell\nyarn add @tsparticles/solid\n```\n\n## How to use\n\n### Code\n\nExamples:\n\n_Remote url_\n\n```javascript\nimport Particles from \"@tsparticles/solid\";\n\nfunction App() {\n    const [ init, setInit ] = createSignal(false);\n\n    createEffect(() =\u003e {\n        if (init()) {\n            return;\n        }\n\n        initParticlesEngine(async (engine) =\u003e {\n            // this loads the tsparticles package bundle, it's the easiest method for getting everything ready\n            // starting from v2 you can add only the features you need reducing the bundle size\n            await loadFull(engine);\n        }).then(() =\u003e {\n            setInit(true);\n        })\n    });\n\n    return (\n        \u003cdiv class=\"App\"\u003e\n            {init() \u0026\u0026 \u003cParticles\n                id=\"tsparticles\"\n                init={particlesInit}\n                url=\"https://foo.bar/particles.json\"\n            /\u003e}\n        \u003c/div\u003e\n    );\n}\n```\n\n_Options object_\n\n```javascript\nimport Particles from \"@tsparticles/solid\";\n\nfunction App() {\n    const [ init, setInit ] = createSignal(false);\n\n    createEffect(() =\u003e {\n        if (init()) {\n            return;\n        }\n\n        initParticlesEngine(async (engine) =\u003e {\n            // this loads the tsparticles package bundle, it's the easiest method for getting everything ready\n            // starting from v2 you can add only the features you need reducing the bundle size\n            await loadFull(engine);\n        }).then(() =\u003e {\n            setInit(true);\n        })\n    });\n\n    return (\n        \u003cdiv class=\"App\"\u003e\n            {init() \u0026\u0026 \u003cParticles\n                id=\"tsparticles\"\n                init={particlesInit}\n                options={{\n                    background: {\n                        color: \"#000\",\n                    },\n                    fullScreen: {\n                        enable: true,\n                    },\n                }}\n            /\u003e}\n        \u003c/div\u003e\n    );\n}\n```\n\n### Props\n\n| Prop            | Type     | Definition                                                                                                                                  |\n|-----------------|----------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| id              | string   | The id of the element.                                                                                                                      |\n| width           | string   | The width of the canvas.                                                                                                                    |\n| height          | string   | The height of the canvas.                                                                                                                   |\n| options         | object   | The options of the particles instance.                                                                                                      |\n| url             | string   | The remote options url, called using an AJAX request                                                                                        |\n| style           | object   | The style of the canvas element.                                                                                                            |\n| className       | string   | The class name of the canvas wrapper.                                                                                                       |\n| canvasClassName | string   | the class name of the canvas.                                                                                                               |\n| container       | object   | The instance of the [particles container](https://particles.js.org/docs/modules/Core_Container.html)                                        |\n| particlesloaded | function | This function is called when particles are correctly loaded in canvas, the current container is the parameter and you can customize it here |\n\nFind your parameters configuration [here](https://particles.js.org).\n\n## Demos\n\nYou can see the official sample created using CodeSandbox [here](https://codesandbox.io/s/condescending-dan-7e0r9)\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%2Fsolid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsparticles%2Fsolid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsparticles%2Fsolid/lists"}