{"id":13413175,"url":"https://github.com/aofei/cameron","last_synced_at":"2025-04-13T22:13:08.408Z","repository":{"id":52110345,"uuid":"132288330","full_name":"aofei/cameron","owner":"aofei","description":"An avatar generator for Go.","archived":false,"fork":false,"pushed_at":"2022-08-04T09:11:16.000Z","size":38,"stargazers_count":124,"open_issues_count":1,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-13T22:13:01.848Z","etag":null,"topics":["avatar","cameron","generator","go","identicon"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/aofei/cameron","language":"Go","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/aofei.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-05-05T22:13:11.000Z","updated_at":"2025-01-13T12:02:50.000Z","dependencies_parsed_at":"2022-09-17T04:31:41.268Z","dependency_job_id":null,"html_url":"https://github.com/aofei/cameron","commit_stats":null,"previous_names":["sheng/cameron"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aofei%2Fcameron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aofei%2Fcameron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aofei%2Fcameron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aofei%2Fcameron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aofei","download_url":"https://codeload.github.com/aofei/cameron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788915,"owners_count":21161728,"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":["avatar","cameron","generator","go","identicon"],"created_at":"2024-07-30T20:01:34.490Z","updated_at":"2025-04-13T22:13:08.372Z","avatar_url":"https://github.com/aofei.png","language":"Go","readme":"# Cameron\n\n[![GitHub Actions](https://github.com/aofei/cameron/workflows/Test/badge.svg)](https://github.com/aofei/cameron)\n[![codecov](https://codecov.io/gh/aofei/cameron/branch/master/graph/badge.svg)](https://codecov.io/gh/aofei/cameron)\n[![Go Report Card](https://goreportcard.com/badge/github.com/aofei/cameron)](https://goreportcard.com/report/github.com/aofei/cameron)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/aofei/cameron)](https://pkg.go.dev/github.com/aofei/cameron)\n\nAn avatar generator for Go.\n\nOh, by the way, the name of this project came from the\n[Avatar](https://en.wikipedia.org/wiki/Avatar_(2009_film))'s director\n[James Cameron](https://en.wikipedia.org/wiki/James_Cameron).\n\n## Features\n\n* [Identicon](https://en.wikipedia.org/wiki/Identicon)\n\n## Installation\n\nOpen your terminal and execute\n\n```bash\n$ go get github.com/aofei/cameron\n```\n\ndone.\n\n\u003e The only requirement is the [Go](https://go.dev), at least v1.13.\n\n## Quick Start\n\nCreate a file named `cameron.go`\n\n```go\npackage main\n\nimport (\n\t\"bytes\"\n\t\"image/png\"\n\t\"net/http\"\n\n\t\"github.com/aofei/cameron\"\n)\n\nfunc main() {\n\thttp.ListenAndServe(\"localhost:8080\", http.HandlerFunc(identicon))\n}\n\nfunc identicon(rw http.ResponseWriter, req *http.Request) {\n\tbuf := bytes.Buffer{}\n\tpng.Encode(\u0026buf, cameron.Identicon([]byte(req.RequestURI), 540, 60))\n\trw.Header().Set(\"Content-Type\", \"image/png\")\n\tbuf.WriteTo(rw)\n}\n```\n\nand run it\n\n```bash\n$ go run cameron.go\n```\n\nthen visit `http://localhost:8080` with different paths.\n\n## Community\n\nIf you want to discuss Cameron, or ask questions about it, simply post questions\nor ideas [here](https://github.com/aofei/cameron/issues).\n\n## Contributing\n\nIf you want to help build Cameron, simply follow\n[this](https://github.com/aofei/cameron/wiki/Contributing) to send pull requests\n[here](https://github.com/aofei/cameron/pulls).\n\n## TODOs\n\n* [ ] Add support for cartoon avatar\n* [ ] Add support for simulation avatar\n\n## License\n\nThis project is licensed under the MIT License.\n\nLicense can be found [here](LICENSE).\n","funding_links":[],"categories":["Images","Go","Images 图像处理","图片","Relational Databases","图像"],"sub_categories":["Advanced Console UIs","Search and Analytic Databases","SQL 查询语句构建库","检索及分析资料库","交流"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faofei%2Fcameron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faofei%2Fcameron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faofei%2Fcameron/lists"}