silverbucket / node-webfinger-service

a webfinger service implementation in node.js
7 stars 4 forks source link

Simplify syntax for configuring #1

Open konklone opened 11 years ago

konklone commented 11 years ago

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"
    }
  ]
}

Also, if you're confident your library is up to date with the newly published draft spec, submit a PR to add your library to the list on webfinger.net.