Simple browser implementation of the Gravatar API


Generate client-side gravatars. Testing page.

$ component install learnboost/gravatar-component

Most API calls take an option used to configure the url.

Options are the query string parameters described in the gravatar documentation

  • s - size
  • d - default image url or {404,mm,identicon,monsterid,wavatar,retro,blank}
  • r - one of {g,pg,r,x}
  • forcedefault - force default image

Return the gravatar image url for an email

Creates an avatar <img> element

Looks up a profile

Shortcut that calls .profile to get a username from an email.

  • Build example component doing make
  • Open test/index.html file