https://github.com/capjamesg/avtr.dev

Retrieve an avatar for a URL.

https://github.com/capjamesg/avtr.dev

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

avatars perl
Last synced: 9 months ago · JSON representation

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
avatars perl
Created over 3 years ago · Last pushed over 3 years ago
Metadata Files
Readme License

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:

  1. Checks for a h-card on the provided URL. If one is available, the avatar is set to the photo property of the h-card. If a photo property is not available, the avatar is set to the logo property of the h-card if one is specified.
  2. Checks for a link tag with a rel attribute of, in order: icon, shortcut icon, apple-touch-icon, apple-touch-icon-precomposed. If one is available, the avatar is set to the href attribute of the link tag.
  3. Checks for a Gravatar associated with the provided URL. If one is available, the avatar is set to the Gravatar URL.
  4. Checks for a GitHub account associated with the provided URL. If one is available, the avatar is set to the GitHub avatar URL.
  5. 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

from words, wonder.

GitHub Events

Total
Last Year

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 7
  • Total Committers: 2
  • Avg Commits per committer: 3.5
  • Development Distribution Score (DDS): 0.143
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email 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)
Top Labels
Issue Labels
Pull Request Labels