Connecting records, web pages and apps

As a straw man, here’s a rough draft of a proxy link style lexicon:

{
  "lexicon": 1,
  "id": "community.lexicon.link",
  "defs": {
    "main": {
      "type": "record",
      "description": "A proxy link to the parent's record elsewhere, eg on another network.",
      "key": "any",
      "record": {
        "type": "object",
        "required": ["href", "rel"],
        "properties": {
          "href": {
            "type": "string",
            "format": "uri",
            "description": "URI of the proxied object. The scheme is a protocol hint, eg https:, at:, did:, nostr:, farcaster:"
          },
          "rel": {
            "type": "string",
            "description": "Relationship to the proxied object: https://www.iana.org/assignments/link-relations",
            "knownValues": ["alternate", "canonical", "author"]
          },
          "mediaType": {
            "type": "string",
            "description": "MIME type of the proxied object."
          }
        }
      }
    }
  }
}

More on rel values: rel HTML attribute - HTML | MDN (more readable than the IANA registry :grin:)

1 Like