https://github.com/capjamesg/avtr.dev
Retrieve an avatar for a URL.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.0%) to scientific vocabulary
Keywords
Repository
Retrieve an avatar for a URL.
Basic Info
- Host: GitHub
- Owner: capjamesg
- License: mit-0
- Language: Perl
- Default Branch: main
- Homepage: https://avtr.dev
- Size: 10.7 KB
Statistics
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 1
- Releases: 0
Topics
Metadata Files
README.md
avtr.dev
A service to retrieve avatars given a URL.
Usage
To retrieve an image for a given URL, send a GET request to the root of the service with the url query parameter set to the URL you want to retrieve an avatar for.
```bash GET /?url=https://jamesg.blog
Response
{ "avatar": "https://jamesg.blog/assets/coffeeshop.jpeg" } ```
Logic
avtr.dev uses the following logic to determine the avatar for a given URL:
- Checks for a h-card on the provided URL. If one is available, the avatar is set to the
photoproperty of the h-card. If aphotoproperty is not available, the avatar is set to thelogoproperty of the h-card if one is specified. - Checks for a
linktag with arelattribute of, in order:icon,shortcut icon,apple-touch-icon,apple-touch-icon-precomposed. If one is available, the avatar is set to thehrefattribute of thelinktag. - Checks for a Gravatar associated with the provided URL. If one is available, the avatar is set to the Gravatar URL.
- Checks for a GitHub account associated with the provided URL. If one is available, the avatar is set to the GitHub avatar URL.
- Returns
null.
License
This project is licensed under an MIT No Attribution license. See the LICENSE file for details.
Contributors
- capjamesg
Owner
- Name: James
- Login: capjamesg
- Kind: user
- Location: Scotland
- Company: @Roboflow
- Website: jamesg.blog
- Repositories: 320
- Profile: https://github.com/capjamesg
from words, wonder.
GitHub Events
Total
Last Year
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| capjamesg | j****g@j****g | 6 |
| Sven | s****l | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 1
- Total pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: 2 minutes
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- ghost (1)
Pull Request Authors
- sknebel (1)