{"id":13823023,"url":"https://github.com/dabanlee/blurify","last_synced_at":"2025-05-16T17:33:00.524Z","repository":{"id":46988800,"uuid":"83559377","full_name":"dabanlee/blurify","owner":"dabanlee","description":"blurify.js is a tiny(~2kb) library to blurred pictures, support graceful downgrade from `css` mode to `canvas` mode.","archived":false,"fork":false,"pushed_at":"2022-07-20T01:49:17.000Z","size":319,"stargazers_count":691,"open_issues_count":3,"forks_count":35,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-04T13:17:33.221Z","etag":null,"topics":["blur","blurify","canvas","image"],"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/dabanlee.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}},"created_at":"2017-03-01T13:49:12.000Z","updated_at":"2025-04-08T22:13:24.000Z","dependencies_parsed_at":"2022-09-10T17:11:56.476Z","dependency_job_id":null,"html_url":"https://github.com/dabanlee/blurify","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/dabanlee%2Fblurify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabanlee%2Fblurify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabanlee%2Fblurify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabanlee%2Fblurify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dabanlee","download_url":"https://codeload.github.com/dabanlee/blurify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254576785,"owners_count":22094455,"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":["blur","blurify","canvas","image"],"created_at":"2024-08-04T08:02:30.527Z","updated_at":"2025-05-16T17:33:00.095Z","avatar_url":"https://github.com/dabanlee.png","language":"TypeScript","readme":"# blurify\n\n![npmsize](https://img.shields.io/bundlephobia/min/blurify)\n\nblurify.js is a tiny(~2kb) library to blur pictures, with graceful downgrade support from `css` mode to `canvas` mode.\n\n## Installation\n\n```sh\n$ npm i blurify\n```\n\n## DEMO\n\n[Demo](https://dabanlee.github.io/blurify/)\n\n## Usage\n\n### blurify(options)\n\nblurify the images with given `options`:\n\n- `images` { Element }, blurify target elements.\n- `blur` { Int }, extent of blur, defaulting to `6`.\n- `mode` { String }, mode of blurify.\n    - `css`: use `filter` property.(`default`)\n    - `canvas`: use `canvas` export base64.\n    - `auto`: use `css` mode firstly, otherwise switch to `canvas` mode by automatically.\n\n```js\nimport blurify from 'blurify';\n\nnew blurify({\n    images: document.querySelectorAll('.blurify'),\n    blur: 6,\n    mode: 'css',\n});\n\n// or in shorthand\n\nblurify(6, document.querySelectorAll('.blurify'));\n```\n\n### License\n\nLicensed under the [MIT License](https://github.com/dabanlee/blurify/blob/master/LICENSE)\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdabanlee%2Fblurify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdabanlee%2Fblurify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdabanlee%2Fblurify/lists"}