Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include the latest Nodeinfo data in /.well-known/nodeinfo? #97

Open
annando opened this issue Jun 20, 2024 · 0 comments
Open

Include the latest Nodeinfo data in /.well-known/nodeinfo? #97

annando opened this issue Jun 20, 2024 · 0 comments

Comments

@annando
Copy link

annando commented Jun 20, 2024

Additionally to providing the links to the specific nodeinfo versions, the endpoint /.well-known/nodeinfo could also include the highest supported nodeinfo data. For example:

 {
    "links": [
        {
            "rel": "http://nodeinfo.diaspora.software/ns/schema/2.0",
            "href": "https://example.org/nodeinfo/2.0"
        },
        {
            "rel": "http://nodeinfo.diaspora.software/ns/schema/2.1",
            "href": "https://example.org/nodeinfo/2.1"
        },
        {
            "rel": "http://nodeinfo.diaspora.software/ns/schema/2.2",
            "href": "https://example.org/nodeinfo/2.2"
        }
    ],
  "version": "2.2",
  "instance": {
    "name": "FI𝑓F fediverse",
    "description": "Welcome to the FI𝑓F fediverse server"
  },
  "software": {
    "name": "diaspora",
    "version": "0.5.0",
    "repository": "https://github.com/diaspora/diaspora",
    "homepage": "https://diasporafoundation.org/"
  },
  "protocols": ["diaspora"],
  "services": {
    "inbound": ["gnusocial"],
    "outbound": ["facebook", "twitter"]
  },
  "openRegistrations": true,
  "usage": {
    "users": {
      "total": 123,
      "activeHalfyear": 42,
      "activeMonth": 23,
      "activeWeek": 22
    },
    "localPosts": 500,
    "localComments": 1000
  },
  "metadata": {
    "chat_enabled": true
  }
}

This would reduce the numbers of needed requests and would be backwards compatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant