e14n / webfinger

Webfinger client library for Node.js
Apache License 2.0
40 stars 10 forks source link

Webfinger's draft has stabilized #23

Open konklone opened 10 years ago

konklone commented 10 years ago

There's an RFC and everything!

http://www.rfc-editor.org/rfc/rfc7033.txt

I'd love to use this library for a Node-based Webfinger demo app I want to build, and I'm happy to help bring this up to spec (though I've never implemented it before).

konklone commented 10 years ago

As a point of reference - I just published sinatra-webfinger, for Sinatra apps.

It does a couple of things I think are okay, that make the syntax for configuring easier.

So this allows:

webfinger "eric@konklone.com" => {
  name: "Eric Mill",
  website: "https://konklone.com"
}

To become:

{
  "subject": "eric@konklone.com",
  "properties": {
    "http://schema.org/name": "Eric Mill"
  },
  "links": [
    {
      "rel": "http://webfinger.net/rel/profile-page",
      "href": "https://konklone.com"
    }
  ]
}