{"id":14373957,"url":"https://github.com/vanniktech/blurhash","last_synced_at":"2025-10-05T07:50:17.138Z","repository":{"id":61736322,"uuid":"534587638","full_name":"vanniktech/blurhash","owner":"vanniktech","description":"BlurHash support for iOS, Android and JVM via Kotlin Multiplatform","archived":false,"fork":false,"pushed_at":"2025-09-20T02:58:51.000Z","size":3247,"stargazers_count":86,"open_issues_count":5,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-20T04:25:11.639Z","etag":null,"topics":["android","backend","ios","jvm","kotlin","kotlin-multiplatform"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/vanniktech.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["vanniktech"]}},"created_at":"2022-09-09T09:55:02.000Z","updated_at":"2025-09-20T02:58:53.000Z","dependencies_parsed_at":"2023-09-29T20:40:01.221Z","dependency_job_id":"2f858f71-e9ca-4bef-8a36-24f48aa42824","html_url":"https://github.com/vanniktech/blurhash","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/vanniktech/blurhash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanniktech%2Fblurhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanniktech%2Fblurhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanniktech%2Fblurhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanniktech%2Fblurhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanniktech","download_url":"https://codeload.github.com/vanniktech/blurhash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanniktech%2Fblurhash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278425498,"owners_count":25984686,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","backend","ios","jvm","kotlin","kotlin-multiplatform"],"created_at":"2024-08-28T02:01:14.965Z","updated_at":"2025-10-05T07:50:17.111Z","avatar_url":"https://github.com/vanniktech.png","language":"Kotlin","funding_links":["https://github.com/sponsors/vanniktech"],"categories":["Multiplatform"],"sub_categories":["Android samples"],"readme":"blurhash\n========\n\nA Kotlin Multiplatform library to use [blurhash](https://blurha.sh/) in your Android App, iOS / Mac App \u0026 JVM Backend.\n\n| `Android`                             | `iOS`                         | `JVM`                         |\n|:--------------------------------------|:------------------------------|:------------------------------|\n| ![Sample Android](sample-android.png) | ![Sample iOS](sample-ios.png) | ![Sample JVM](sample-jvm.png) |\n\n# Why?\n\nIf you've tried using [blurhash](https://blurha.sh/), you qickly stumple upon the [main repository](https://github.com/woltapp/blurhash). They provide sources for [Swift](https://github.com/woltapp/blurhash/tree/master/Swift), [Typescript](https://github.com/woltapp/blurhash/tree/master/TypeScript), [Python](https://github.com/woltapp/blurhash-python), [Kotlin](https://github.com/woltapp/blurhash/tree/master/Kotlin) and [C](https://github.com/woltapp/blurhash/tree/master/C). However:\n\n- Implementations produce [different hashes for the same picture](https://github.com/woltapp/blurhash/issues/196)\n- There are no artifacts to consume i.e. no Cocoa Pod or Maven dependency\n- Not all implementations provide both encoding and decoding support\n- Missing sample apps with consistent images and blur hashes\n\nThe goal of this library is to solve all of the above mentioned problems, provide a common API and good samples for each platform.\n\n# Usage\n\nFrom Kotlin Multiplatform:\n\n```groovy\nkotlin {\n  sourceSets {\n    val commonMain by getting {\n      dependencies {\n        implementation(\"com.vanniktech:blurhash:0.4.0-SNAPSHOT\")\n      }\n    }\n  }\n}\n```\n\nFrom Android / JVM Multiplatform:\n\n```groovy\ndependencies {\n  implementation(\"com.vanniktech:blurhash:0.4.0-SNAPSHOT\")\n}\n```\n\nFrom iOS:\n\n```ruby\npod 'BlurHash', :git =\u003e 'https://github.com/vanniktech/blurhash', :tag =\u003e \"0.4.0-SNAPSHOT\"\n```\n\n# API\n\nUse `com.vanniktech.blurhash.BlurHash` directly in your platform specific code to `encode` as well as `decode`:\n\n- [sample-android](./sample-android/src/main/kotlin/com/vanniktech/blurhash/sample/android/BlurHashMainActivity.kt): Works with `Bitmap`\n- [sample-ios](./sample-ios/ios/App.swift): Works with `UIImage` (Use `import blurhash` \u0026 `BlurHash.shared`)\n- [sample-jvm](sample-jvm/src/main/java/com/vanniktech/blurhash/sample/jvm/BlurHashJvm.kt): Works with `BufferedImage`\n\n# Thanks\n\nWithout them this would not exist!\n\n- [woltapp](https://github.com/woltapp) for creating [blurbash](https://github.com/woltapp/blurhash)\n- [Hendrik Schnepel](https://github.com/hsch) for the [encoding implementation](https://github.com/hsch/blurhash-java)\n\n# License\n\nCopyright (C) 2022 - Niklas Baudy\n\nLicensed under the MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanniktech%2Fblurhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanniktech%2Fblurhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanniktech%2Fblurhash/lists"}