Open konklone opened 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.
links
, anything else can be made properties
.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"
}
]
}
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).