{"id":27876579,"url":"https://github.com/holgerhuo/mravatar","last_synced_at":"2025-05-05T02:50:04.983Z","repository":{"id":196621874,"uuid":"439584794","full_name":"HolgerHuo/Mravatar","owner":"HolgerHuo","description":"Mastodonwide Recognized Avatars","archived":false,"fork":false,"pushed_at":"2025-04-29T06:26:00.000Z","size":32,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T06:26:30.752Z","etag":null,"topics":["api","avatar","flask","gravatar","mastodon","uswgi"],"latest_commit_sha":null,"homepage":"https://mravatar.dragoncloud.win/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HolgerHuo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-12-18T10:18:54.000Z","updated_at":"2025-04-29T06:26:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"df80c4b4-f23d-48f2-aedd-d0c8e55fa315","html_url":"https://github.com/HolgerHuo/Mravatar","commit_stats":null,"previous_names":["holgerhuo/mravatar"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HolgerHuo%2FMravatar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HolgerHuo%2FMravatar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HolgerHuo%2FMravatar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HolgerHuo%2FMravatar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HolgerHuo","download_url":"https://codeload.github.com/HolgerHuo/Mravatar/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252429956,"owners_count":21746571,"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":["api","avatar","flask","gravatar","mastodon","uswgi"],"created_at":"2025-05-05T02:50:03.011Z","updated_at":"2025-05-05T02:50:04.962Z","avatar_url":"https://github.com/HolgerHuo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mravatar - Mastodonwide Recognized Avatars\n\n![GitHub last commit](https://img.shields.io/github/last-commit/holgerhuo/mravatar)![GitHub release (latest by date)](https://img.shields.io/github/v/release/holgerhuo/mravatar)![GitHub](https://img.shields.io/github/license/holgerhuo/mravatar)![GitHub all releases](https://img.shields.io/github/downloads/holgerhuo/mravatar/total)![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/holgerhuo/mravatar)\n\nA Mastodonwide Recognized Avatar API\n\nThis API provides you with avatar link or proxied avatar file through fediverse account name (@username@localpart).\n\n## API Usages\n\n### /avatar/\\\u003cusername\\\u003e (GET)\n\n```\nhttps://mravatar.dragoncloud.win/avatar/@holgerhuo@dragon-fly.club\nhttps://mravatar.dragoncloud.win/avatar/holgerhuo@dragon-fly.club\n```\n\n`GET` request [https://mravatar.dragoncloud.win/avatar/@holgerhuo@dragon-fly.club](https://mravatar.dragoncloud.win/avatar/@holgerhuo@dragon-fly.club) or [https://mravatar.dragoncloud.win/avatar/holgerhuo@dragon-fly.club](https://mravatar.dragoncloud.win/avatar/holgerhuo@dragon-fly.club)\n\n#### Query Strings\n\n- `proxied`\n    - `true`\n        Enable proxying from Mravatar\n    - `false` (default)\n        Retrieve `302` redirect \n- `no-cache`\n    - `true`\n        Force request latest avartar\n    - `false`\n        Use Mravatar cache (if exists). Cache is refreshed every 3h.\n- `default`\n    - `\u003curl-encoded-img-url\u003e`\n        Set fallback image url.\n        (Defaults to https://cdn.jsdelivr.net/gh/mastodon/mastodon@latest/public/avatars/original/missing.png)\n\nExample: `https://mravatar.dragoncloud.win/avatar/holgerhuo@dragon-fly.club?no-cache=true\u0026proxied=true\u0026default=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2F4%2F48%2FMastodon_Logotype_%2528Simple%2529.svg`\n\n## Deployment \n\n### Dependencies\n\nMake sure you have `python3`, `pip3`, `python3-devel` and `virtualenv` installed.\n\n### Procedures\n\nCreate a new user. Clone this repo. Setup virtualenv. Copy dist files. Start your server. Enjoy!\n\n```bash\npip3 install virtualenv\nuseradd mravatar\nsudo su - mravatar\ngit clone https://github.com/HolgerHuo/mravatar.git mravatar\ncd mravatar\nvirtualenv mravatar\nsource mravatar/bin/activate\npip3 install -r requirement.txt\nexit\ncp /home/mravatar/mravatar/dist/mravatar.service /etc/systemd/system/mravatar.service\ncp /home/mravatar/mravatar/dist/mravatar.conf /etc/nginx/conf.d/mravatar.conf\nsystemctl enable --now mravatar\nsystemctl reload nginx\n```\n\n## License\n\nGNU Affero General Public License v3.0\n\n©️ Holger Huo, Mastodon\n\n[@holgerhuo@dragon-fly.club](https://mast.dragon-fly.club/@holgerhuo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholgerhuo%2Fmravatar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholgerhuo%2Fmravatar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholgerhuo%2Fmravatar/lists"}