{"id":24302783,"url":"https://github.com/taigrr/colorhash","last_synced_at":"2026-05-28T01:31:38.355Z","repository":{"id":57707637,"uuid":"472611439","full_name":"taigrr/colorhash","owner":"taigrr","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-23T03:02:56.000Z","size":26,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-23T10:57:41.282Z","etag":null,"topics":["color","colors","go","golang","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taigrr.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"taigrr","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2022-03-22T04:15:32.000Z","updated_at":"2026-02-23T03:02:50.000Z","dependencies_parsed_at":"2024-06-21T09:27:25.768Z","dependency_job_id":null,"html_url":"https://github.com/taigrr/colorhash","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"e3c3a883549bf715c221410367ca3c6ab23dc566"},"previous_names":["taigrr/go-colorhash"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/taigrr/colorhash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fcolorhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fcolorhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fcolorhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fcolorhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taigrr","download_url":"https://codeload.github.com/taigrr/colorhash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fcolorhash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33590884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"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":["color","colors","go","golang","hacktoberfest"],"created_at":"2025-01-17T00:19:22.002Z","updated_at":"2026-05-28T01:31:38.350Z","avatar_url":"https://github.com/taigrr.png","language":"Go","funding_links":["https://github.com/sponsors/taigrr"],"categories":[],"sub_categories":[],"readme":"# colorhash\n\nMap arbitrary strings and byte streams to deterministic colors from a given palette.\n\n## Features\n\n- **Deterministic hashing** — same input always produces the same color\n- **FNV-64 based** — fast, well-distributed hash function\n- **OKLCH palette generation** — perceptually uniform color palettes\n- **ANSI terminal colors** — built-in escape code wrappers for terminal output\n- **True color support** — 24-bit RGB terminal color output\n\n## Install\n\n```bash\ngo get github.com/taigrr/colorhash\n```\n\n## Usage\n\n### Map a string to a color\n\n```go\nimport (\n    \"github.com/taigrr/colorhash\"\n    \"github.com/taigrr/simplecolorpalettes/flatui\"\n)\n\n// Pick a color from a palette based on a string\nc := colorhash.StringToColor(flatui.Palette, \"alice\")\n```\n\n### Generate an OKLCH palette\n\n```go\n// 8 evenly-spaced hues at lightness 0.7, chroma 0.15\npalette := colorhash.GenerateOKLCHPalette(8, 0.7, 0.15)\n```\n\n### Terminal color output\n\n```go\nfmt.Println(colorhash.Red(\"error\"))\nfmt.Println(colorhash.Green(\"success\"))\nfmt.Println(colorhash.Info(\"info message\"))\n```\n\n## License\n\n0BSD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaigrr%2Fcolorhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaigrr%2Fcolorhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaigrr%2Fcolorhash/lists"}