{"id":23109676,"url":"https://github.com/clydedz/robohash-avatars-npm","last_synced_at":"2025-08-16T18:32:28.672Z","repository":{"id":48013643,"uuid":"189185228","full_name":"ClydeDz/robohash-avatars-npm","owner":"ClydeDz","description":"Generate robot-based avatar images for any text.","archived":false,"fork":false,"pushed_at":"2022-12-30T17:44:20.000Z","size":228,"stargazers_count":11,"open_issues_count":6,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-06T13:49:48.880Z","etag":null,"topics":["avatar","avatar-generator","avatars","html","javascript","javascript-library","npm","npm-package","picture","profile-picture","robohash","robohash-avatar","typescript","user"],"latest_commit_sha":null,"homepage":"http://bit.ly/robohash-avatars","language":"JavaScript","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/ClydeDz.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":"2019-05-29T08:39:45.000Z","updated_at":"2024-08-15T10:55:33.000Z","dependencies_parsed_at":"2023-01-31T12:31:18.135Z","dependency_job_id":null,"html_url":"https://github.com/ClydeDz/robohash-avatars-npm","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClydeDz%2Frobohash-avatars-npm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClydeDz%2Frobohash-avatars-npm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClydeDz%2Frobohash-avatars-npm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClydeDz%2Frobohash-avatars-npm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ClydeDz","download_url":"https://codeload.github.com/ClydeDz/robohash-avatars-npm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230049382,"owners_count":18164880,"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","avatar-generator","avatars","html","javascript","javascript-library","npm","npm-package","picture","profile-picture","robohash","robohash-avatar","typescript","user"],"created_at":"2024-12-17T01:39:39.160Z","updated_at":"2024-12-17T01:39:40.322Z","avatar_url":"https://github.com/ClydeDz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Robohash Avatars\nGenerate robot-based avatar images based on any text.  \n    \n[![Build status](https://clydedsouza.visualstudio.com/RoboHash%20Avatars%20npm/_apis/build/status/RoboHash%20Avatars%20Master)](https://clydedsouza.visualstudio.com/RoboHash%20Avatars%20npm/_build/latest?definitionId=27) \n[![Azure DevOps tests (branch)](https://img.shields.io/azure-devops/tests/clydedsouza/RoboHash%20Avatars%20npm/27/master.svg)](https://clydedsouza.visualstudio.com/RoboHash%20Avatars%20npm/_build/latest?definitionId=27) \n[![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/clydedsouza/RoboHash%20Avatars%20npm/27.svg)](https://clydedsouza.visualstudio.com/RoboHash%20Avatars%20npm/_build/latest?definitionId=27) \n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ClydeDz_robohash-avatars-npm\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=ClydeDz_robohash-avatars-npm) \n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ClydeDz_robohash-avatars-npm\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=ClydeDz_robohash-avatars-npm) \n![MIT License](https://img.shields.io/static/v1.svg?label=📜%20License\u0026message=MIT\u0026color=informational) \n[![npm](https://img.shields.io/npm/v/robohash-avatars.svg?color=brightgreen\u0026logo=npm)](http://bit.ly/robohash-avatars)    \n\n## Usage  \nAfter installing, simply import Robohash Avatars in your file.\n\n```javascript\nconst robohashAvatars = require(\"robohash-avatars\");\n```\nConsume the `generateAvatar()` API to get an avatar URL that you can use directly as an image. Supply the settings object to this method to generate the avatar image URL accordingly. **Username is required**. For the remainder, you can supply them based on your requirement. All settings are pretty self-explanatory.\n\n```javascript\nvar avatarURL = robohashAvatars.generateAvatar({   \n            username: \"tonystark\", \n            background: robohashAvatars.BackgroundSets.RandomBackground1,\n            characters: robohashAvatars.CharacterSets.Kittens,\n            height: 400,\n            width: 400\n        }); \n```\n\n### Options \n`CharacterSets` supports `Robots`, `Monsters`, `DisembodiedHeads` and `Kittens`. `BackgroundSets` supports `RandomBackground1` and `RandomBackground2`\n\n## Examples \n\u003e Clicking on the images below opens the image in a browser window.  \n\n[![Sample image 1](https://robohash.org/RobohashAvatarNPM?bgset=bg1\u0026size=200x200)](https://robohash.org/RobohashAvatarNPM?bgset=bg1\u0026size=200x200) [![Sample image 2](https://robohash.org/tonystark?bgset=bg2\u0026set=set2\u0026size=200x200)](https://robohash.org/tonystark?bgset=bg2\u0026set=set2\u0026size=200x200) \n[![Sample image 3](https://robohash.org/peterparker?bgset=bg1\u0026set=set4\u0026size=200x200)](https://robohash.org/peterparker?bgset=bg1\u0026set=set4\u0026size=200x200) \n   \n## Release notes \nRelease notes can be found [here](https://github.com/ClydeDz/robohash-avatars-npm/releases).   \n   \n## Credits  \n[RoboHash.org](http://robohash.org) is developed by [Colin Davis](https://github.com/e1ven) / [RoboHash GitHub](https://github.com/e1ven/Robohash).   \nThis npm package is developed by [Clyde D'Souza](https://clydedsouza.net). \n   ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclydedz%2Frobohash-avatars-npm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclydedz%2Frobohash-avatars-npm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclydedz%2Frobohash-avatars-npm/lists"}