ServerInfo - specification for server metadata


To build apps like,,, and others, application builders need to somehow get information about servers.


Different platforms have had different ways to provide metadata about themselves.

  • Diaspora initially offered a HTTP response header indicating the version of the software
  • Diaspora and compatible platforms later implemented a statistics.json route which was a simple JSON document listing version and usage information
  • This evolved into NodeInfo which is currently used there and in compatible networks, and additionally on many ActivityPub platforms.
  • I forked NodeInfo into NodeInfo2 to provide a more flexible metainfo document.
  • Mastodon offers an API endpoint for both server information and user activity.
  • Matrix offers an API endpoint for version information of the server.



I’ve voiced criticism before my fork of NodeInfo regarding the problem of hardcoding Enum values for protocol and services into the specification. This means for example the current NodeInfo is incompatible with many platforms like Matrix and if a new version is implemented, every single platform needs to update their NodeInfo version, keeping backwards compatibility forever to the old ones. Additionally the specification requires using a .well-known path but still needing a separate lookup, due to the versioning scheme.

The lack of flexibility in NodeInfo means that some platforms “fill what they can” in the given keys and then fill “the real information” in the freeform metadata key.

My opinion is that the versioning is unnecessarily complex, making the lookups complex and changes to enum values is not possible without releasing a new backwards incompatible version.


NodeInfo2 did not go far enough in rethinking what platforms would need to export as information. The name and usage metrics is too tied into how NodeInfo is doing things.

Platform specific API endpoints

The Mastodon API endpoint is Mastodon specific but platforms which have also implemented the Mastodon API (to make use of Mastodon mobile clients) look like Mastodon servers to apps reading information about the servers.

The Matrix API endpoint has a server software name key, but lacks all other metadata and metrics about the server.


I would like to propose a new specification under Feneas or some other (neutral) organization namespace to collect the good parts of the previous metadata specs and learn from the bad parts, creating something that has support from a wide range of the federated web developers. This specification should be able to cover the common needs across the federated web, independent of protocols used, and also be flexible enough for platforms to offer more detailed information about server capabilities or platform specific information that might not interest other servers.

I have a personal strong interest in getting this done, if for nothing else then allowing to build a better view of the federated web, so am happy to collect discussion and sync comments to the specifcation, from here and other sites I will be spamming this call out to.

The current draft, which is a fork of NodeInfo2, can be found here:

Comments, discussion, proposals, etc welcome here, on the issue tracker and anywhere you can reach me :slight_smile: I will try to sync comments outside of here and the issue tracker to here. I’ll be contacting various developers in the federated web directly to try and get as much cross-platform support as possible for this specification.

A follow up post to this will explain a few of the reasons for the changes between ServerInfo and NodeInfo2/NodeInfo.


I’ve reviewed the above spec and example and it looks like a good start. I do have some questions though:

The areas that are the most free form are the protocol capabilities and the features. Everything else is relatively prescriptive. For the protocol I can see that it’s to avoid a lock in to a protocol description that works for microblogging but not soundsharing or messaging. Each protocol would then have a typical set for themselves and if you care about the protocol you’d have it. Is that the essence of it for protocols? On the features however that’s going to be totally free form which would at best leave that to be a KV lookup and nothing else since or is there an idea that there would be standard fields around that too?

On the metrics, would it be possible to have multiple timespans being reported for each metric? So for example you could pull daily, weekly, or monthly active user counts? Maybe I’m reading the metrics field wrong and it’s not a description of metrics you can query but instead the instantaneous metrics of the server. If it is the stats themselves it seems like we are mixing static server data (everywhere else) with dynamic server data (the stats)

With respect to the formation of the file it could be useful to have a standard library or place to create this which can help fill in the fields and avoid having an accidental typo in a protocol name or something like that or having people scrounging around for templates. That could probably handle the 80-90% case. We could also write a validator which can flag format errors (say mangled JSON or missing required fields) or warnings (say the protocol isn’t in a list of known protocols).

1 Like

Yes I think the protocol capabilities would probably be very specific to a single protocol. I think through implementation there would be consensus on how to utilize this. I added an example with defining an array of extensions for ActivityPub and for example for Matrix indicating whether the server supports presence which is a feature in the protocol but not all servers have it activated. I think there is a distinction between “protocol capabilities” and “server features” which should not be confused together. For example the XMPP chat in DIaspora is a feature of the Diaspora server implementation, not a capability of the protocol.

Might make sense to draft some example files per the common platforms to get a better understanding what the ServerInfo documents could look like.

Yes definitely that is the idea.

For example currently Diaspora exposes monthly, halfyear and yearly active user counts (looking back from the time the document is accessed), Mastodon weekly buckets with start timestamps and Matrix generates monthly active users via a scheduled process (but doesn’t expose it currently). I tried to think of a compromise with ServerInfo allowing to define custom buckets with a time period but provide some example values for the type of metrics and bucket sizes.

JSONSchema has excellent library support and already has validators, but building a hosted generator and validator hosted at Feneas for example would be pretty trivial :+1:

Syncing from outside, on a related note, Marius Orcsik posted about, his idea for an AS2 Service exposing some information about an ActivityPub server:

1 Like mentioned that he has submitted an MSC into Matrix spec for minimal uptime, user count and registrations status information. Another MSC for well-known exists also for admin contact information.

Both parts would be covered by ServerInfo, but ServerInfo isn’t direclty something that makes sense to reuse in Matrix spec directly. Maybe a good idea still to ensure that the provided information is at least compatible, should for example a Matrix server want to expose both Matrix API related information endpoints, but also a more generic wider federated world information endpoint (outside Matrix spec).

1 Like