{"id":25863020,"url":"https://github.com/eastsun5566/let-it-go","last_synced_at":"2025-06-17T06:38:15.471Z","repository":{"id":40298227,"uuid":"230883381","full_name":"EastSun5566/let-it-go","owner":"EastSun5566","description":"❄️ Let your website snow instantly","archived":false,"fork":false,"pushed_at":"2025-02-07T08:20:45.000Z","size":1350,"stargazers_count":13,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-25T12:51:41.122Z","etag":null,"topics":["canvas","library","no-dependencies","snow","snowflake","typescript"],"latest_commit_sha":null,"homepage":"https://eastsun5566.github.io/let-it-go/","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/EastSun5566.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-12-30T09:03:34.000Z","updated_at":"2025-02-07T08:20:42.000Z","dependencies_parsed_at":"2023-01-31T09:15:40.753Z","dependency_job_id":"c2710495-4fdd-4bc8-8e47-53156ea05375","html_url":"https://github.com/EastSun5566/let-it-go","commit_stats":{"total_commits":139,"total_committers":2,"mean_commits":69.5,"dds":0.1294964028776978,"last_synced_commit":"5e1d696e82ac20ec76bf4bcf34fea8c331c45032"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EastSun5566%2Flet-it-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EastSun5566%2Flet-it-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EastSun5566%2Flet-it-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EastSun5566%2Flet-it-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EastSun5566","download_url":"https://codeload.github.com/EastSun5566/let-it-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241439738,"owners_count":19963100,"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":["canvas","library","no-dependencies","snow","snowflake","typescript"],"created_at":"2025-03-01T23:58:08.771Z","updated_at":"2025-06-17T06:38:15.460Z","avatar_url":"https://github.com/EastSun5566.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/eastsun5566"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./logo.svg\" width=\"180\" alt=\"let-it-go logo\"\u003e\n\n# ❄️ Let It Go\n\n[![NPM Version](https://img.shields.io/npm/v/let-it-go.svg?style=for-the-badge)](https://www.npmjs.com/package/let-it-go)\n[![NPM Downloads](https://img.shields.io/npm/dt/let-it-go.svg?style=for-the-badge)](https://www.npmjs.com/package/let-it-go)\n[![JSR Version](https://img.shields.io/jsr/v/%40eastsun5566/let-it-go?style=for-the-badge)](https://jsr.io/@eastsun5566/let-it-go)\n[![License](https://img.shields.io/github/license/EastSun5566/let-it-go.svg?style=for-the-badge)](https://github.com/EastSun5566/let-it-go/blob/main/LICENSE)\n\n[\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-blue.png\" alt=\"Buy Me A Coffee\" height=\"40\"\u003e](https://www.buymeacoffee.com/eastsun5566)\n\n\u003e Let your website snow instantly, zero dependencies, small \u0026 fast\n\n🔗 \u003chttps://eastsun5566.github.io/let-it-go/\u003e\n\n## ✨ Installation\n\n```sh\nnpm i let-it-go\n```\n\n## 🚀 Usage\n\n### Basic\n\n```js\nimport { LetItGo } from \"let-it-go\";\n\n// just snow!\nconst snow = new LetItGo();\n```\n\n### Advance\n\n#### Options\n\n```js\n// create snow with some options\nconst snow = new LetItGo({\n  // root container, defaults to `document.body`\n  root: document.getElementById(\"root\"),\n  // number of snowflake, defaults to `window.innerWidth`\n  number: 1000,\n  // velocity x range of snowflake, defaults to `[-3, 3]`\n  velocityXRange: [-3, 3],\n  // velocity y range of snowflake, defaults to `[1, 5]`\n  velocityYRange: [1, 5],\n  // radius range of snowflake, defaults to `[0.5, 1]`\n  radiusRange: [0.5, 1],\n  // color of snowflake color, defaults to `#ffffff`\n  color: \"#ffffff\",\n  // opacity range of snowflake, defaults to `[0.8, 1]`\n  alphaRange: [0.8, 1],\n  // background color of `canvas` element, defaults to `transparent`\n  backgroundColor: \"transparent\",\n  // style prop of `canvas` element, defaults to `{ zIndex: -1, pointerEvents: 'none' }`\n  style: { zIndex: -999, pointerEvents: \"none\" },\n});\n\n// you can use static prop `DEFAULT_OPTIONS` to get all the default options\nconst allTheDefaultOptions = LetItGo.DEFAULT_OPTIONS;\n```\n\n#### Dynamic get/set instance options\n\n```js\n/** the number of snowflake */\nconst snowflakeNumber = snow.number;\n\n// you can directly update instance prop and it will reflect those change limitedly\nsnow.number = 5566;\nsnow.color: \"#333333\"\nsnow.velocityXRange = [-10, 50]; // must be tuple `[number, number]`\n```\n\n#### Some other methods\n\n```js\n// just stop animation\nsnow.letItStop();\n\n// and snow again!\nsnow.letItGoAgain();\n\n// stop animation \u0026 remove mounted `canvas` element\nsnow.clear();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feastsun5566%2Flet-it-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feastsun5566%2Flet-it-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feastsun5566%2Flet-it-go/lists"}