{"id":23908938,"url":"https://github.com/damienroche/vue-blurhash","last_synced_at":"2025-07-17T00:06:01.032Z","repository":{"id":38242870,"uuid":"259906773","full_name":"damienroche/vue-blurhash","owner":"damienroche","description":"🌁 VueJS components using the blurhash algorithm (representation of a placeholder for an image)","archived":false,"fork":false,"pushed_at":"2022-12-12T15:21:10.000Z","size":1776,"stargazers_count":51,"open_issues_count":10,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T04:47:50.979Z","etag":null,"topics":["blurhash","placeholder-image","vuejs"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/damienroche.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-29T11:28:54.000Z","updated_at":"2025-01-11T09:32:34.000Z","dependencies_parsed_at":"2023-01-27T21:15:34.540Z","dependency_job_id":null,"html_url":"https://github.com/damienroche/vue-blurhash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/damienroche/vue-blurhash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienroche%2Fvue-blurhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienroche%2Fvue-blurhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienroche%2Fvue-blurhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienroche%2Fvue-blurhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damienroche","download_url":"https://codeload.github.com/damienroche/vue-blurhash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienroche%2Fvue-blurhash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265517677,"owners_count":23780840,"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":["blurhash","placeholder-image","vuejs"],"created_at":"2025-01-05T05:14:39.476Z","updated_at":"2025-07-17T00:06:01.010Z","avatar_url":"https://github.com/damienroche.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-blurhash\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./vue-blurhash.jpg\" alt=\"Blurhash vuejs plugin\"\u003e\n\u003c/p\u003e\n\n\u003e VueJS components using the [blurhash algorithm](https://blurha.sh)\n\n## Installation\n\nYou need [Vue.js](https://vuejs.org/) **version 2.0+**\n\n### Install via npm\n\n```bash\nnpm install vue-blurhash\nyarn add vue-blurhash\n```\n\n### Import and use\n\n```javascript\nimport Vue from 'vue'\nimport VueBlurHash from 'vue-blurhash'\n\n// Import css if you want to use image fade transition\nimport 'vue-blurhash/dist/vue-blurhash.css'\n\n...\n\nVue.use(VueBlurHash)\n```\n\n```vue\n\u003ctemplate\u003e\n  \u003cblur-hash-image\n    width=\"400\"\n    height=\"300\"\n    hash=\"LdHfL}oJR$WBKnfi%3ofT0kCM{ay\"\n    src=\"https://images.unsplash.com/photo-1545910684-8e7c081be9b0?ixlib=rb-1.2.1\u0026ixid=eyJhcHBfaWQiOjEyMDd9\u0026auto=format\u0026fit=crop\u0026w=1867\u0026q=80\"\n    alt=\"green lawn grass during daytime\"\n  /\u003e\n\u003c/template\u003e\n```\n\n## Props\n\n| Name                 | Type             | Default | Description                                          |\n| -------------------- | ---------------- | ------- | ---------------------------------------------------- |\n| `height`             | [Number, String] | 128     | Height of image                                      |\n| `width`              | [Number, String] | 128     | Width of image                                       |\n| `punch`              | [Number, String] | 1       | This value adjusts the contrast on the decoded image |\n| `src`                | String           | null    | Image source url                                     |\n| `srcset`             | String           | null    | Image sourceset attribute                            |\n| `transitionDuration` | Number           | 500     | Fade animation - Transition time (in ms)             |\n\n## Use Canvas only\n\nMaybe you want to only draw the placeholder from the hash and implementing your own image displaying logic.\nYou can do this from this way\n\n```javascript\nimport { BlurHashCanvas } from \"vue-blurhash\";\n```\n\n```vue\n\u003ctemplate\u003e\n  \u003cblur-hash-canvas\n    :hash=\"hash\"\n    :width=\"width\"\n    :height=\"height\"\n    :punch=\"punch\"\n  /\u003e\n\u003c/template\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamienroche%2Fvue-blurhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamienroche%2Fvue-blurhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamienroche%2Fvue-blurhash/lists"}