W3C home > Mailing lists > Public > public-fedsocweb@w3.org > November 2012

avatar.js

From: Nick Jennings <nick@silverbucket.net>
Date: Wed, 21 Nov 2012 11:25:33 +0100
Message-ID: <CAJL4WtakDrG5MTJ+tgX3o8eRg1y-BipU_6L8wQ2RCRt_6hU3Qg@mail.gmail.com>
To: public-fedsocweb@w3.org, webfinger@googlegroups.com
Hello All,

 This is my first time posting to both the fedsocweb and webfinger lists.
My name is Nick Jennings and I'm a long-time open-source hacker, though
until recently I haven't been very active in the problem domain of the open
social web. Michiel de Jong and I have been working on a simple avatar.js
library which takes an email address, and uses WebFinger to query the host
portion and return the avatar URL, if found.

 It currently uses the /.well-known/host-meta.json endpoint as it's
starting default, then falls back to host-meta (if not found). Likewise
with HTTPS falling back to HTTP. I see there is a WebFinger draft 3 in
progress which will change the endpoint to /.well-known/webfinger, so I'll
update that as the default soon, with a fallback to host-meta*. Of course,
the server will need to support CORS since this is a pure JavaScript
browser client library, so it doesn't work with gmail.com email addresses.

A demo can be found here:
http://silverbucket.github.com/avatar.js/

and the repository:
http://github.com/silverbucket/avatar.js


Feedback welcome!
-Nick
Received on Wednesday, 21 November 2012 13:12:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 21 November 2012 13:12:36 GMT