{"id":32171540,"url":"https://github.com/ruudvh/avatador","last_synced_at":"2025-10-21T17:53:27.636Z","repository":{"id":58323186,"uuid":"529707935","full_name":"ruudvh/avatador","owner":"ruudvh","description":"Super simple avatar generator in Elixir.","archived":false,"fork":false,"pushed_at":"2022-08-31T18:53:39.000Z","size":38,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-16T19:22:22.806Z","etag":null,"topics":["avatar","avatar-generator","elixir","identicon","identicon-generator"],"latest_commit_sha":null,"homepage":"https://www.avatador.io","language":"Elixir","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/ruudvh.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":"2022-08-27T22:13:53.000Z","updated_at":"2022-10-13T03:07:01.000Z","dependencies_parsed_at":"2022-09-06T00:03:18.538Z","dependency_job_id":null,"html_url":"https://github.com/ruudvh/avatador","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ruudvh/avatador","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruudvh%2Favatador","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruudvh%2Favatador/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruudvh%2Favatador/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruudvh%2Favatador/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruudvh","download_url":"https://codeload.github.com/ruudvh/avatador/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruudvh%2Favatador/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280308476,"owners_count":26308492,"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-21T02:00:06.614Z","response_time":58,"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":["avatar","avatar-generator","elixir","identicon","identicon-generator"],"created_at":"2025-10-21T17:53:23.275Z","updated_at":"2025-10-21T17:53:27.629Z","avatar_url":"https://github.com/ruudvh.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Avatador](assets/logo.png) ![Avatador](logo.png)\n\n# Avatador\n[Docs](https://hexdocs.pm/avatador) | [Github](https://github.com/ruudvh/avatador)\n\nSuper simple avatar generator in Elixir.\n\n## Options\n- `:format` SVG or PNG. PNG is only supported with identicons.\n- `:background` The background color hex of the avatar, without the hash (#) e.g. `000000`.\n- `:color` The text color hex of the avatar, without the hash (#) e.g. `FFFFFF`.\n- `:name` The name/username/email of the entity you want the avatar's initials to represent.\n- `:is_rounded` True or false, should avater be rounded? If `true` and no `rounded` value it assumes the width/height (fully rounded).\n- `:rounded` The px value of rounding, leave blank or `0` for no rounding.\n- `:width` The height of the avatar in pixels. If not provided assumes width=height or default value.\n- `:height` The width of the avatar in pixels. If not provided assumes width=height or default value.\n- `:font_size` The font size in pixels.\n- `:font_family` The name of the font family.\n- `:caps` Capitalization of the initials. 1 for uppercase, 2 for lowercase, 3 for leaving as provided.\n- `:bold` True or false, should text be bold?\n\n## Defaults\n\n    %{\n      format: \"SVG\"\n      background: \"#000000\",\n      color: \"#FFFFFF\",\n      name: \"\",\n      is_rounded: false,\n      rounded: 0.0,\n      width: 500.0,\n      height: 500.0,\n      font_size: 250.0,\n      font_family: \"Montserrat\",\n      caps: 1,\n      bold: true,\n    }\n\n## Supports\n- Simple simple cache: `:name` is hashed so that the same `:name` will receive the same `:background` color.\n- Alpha colors: Supported color formats include #rgb, #rgba, #rrggbbaa, and #rrggbbaa.\n- Can create avatars and GitHub-like identicons.\n\n## Installation\nThe package can be installed by adding `avatador` to your list of dependencies in `mix.exs`.\nIf you want PNG support for the identicons, you will also need to add `:egd`.\n\n```elixir\ndef deps do\n  [\n    {:avatador, \"~\u003e 0.1.0\"},\n    {:egd, github: \"erlang/egd\", optional: true}, # Erlang Graphic Drawer, for PNG export of identicons\n  ]\nend\n```\n\n## Acknowledgements and Credits\n- The identicons code is based on [identicon](https://github.com/rbishop/identicon).\n- Color helper code is based on [color_utils](https://github.com/barakyo/color_utils).\n\n## Development\n- Questions, tips, code fixes, overhauls, and other contributions are very much welcome! Please submit an [issue](https://github.com/ruudvh/avatador/issues) or a [pull request](https://github.com/ruudvh/avatador/pulls).\n- Run tests with `mix test`\n- Create docs with `mix docs`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruudvh%2Favatador","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruudvh%2Favatador","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruudvh%2Favatador/lists"}