Client implementation simplicity is the key. One of the main principles of this protocol is not limiting the client implementation languages. Devs should be able to write the clients in any library they want, even if there are no libraries. For example, we can't use libp2p from IPFS because there are libraries for JavaScript, Rust, and Go, and that's all. Sure, these are not so bad languages, but why not allow somebody to write some simple client for themselves in their favorite languages? Also, there are many tinkerers who like integrating technology into their lives in unconventional and personalized ways because they can tinker with it and implement their ideas in tech. For example, creating a simple e-ink display with an old Raspberry Pi, very low resources, and writing a lightweight, very lightweight client in Zig, and they don't want to consume much memory or CPU or anything. The protocol is based on HTTP, which can be very resource-hungry from the point of view of an embedded system, but if you have more than 200 megabytes of memory, then it's good. Sure, it could require kilobytes instead of megabytes, but we are good with megabytes. Even the slowest Linux phones have some megabytes available, but it should not require hundreds of megabytes for a DHT and complex routing and things like that. If an external proxy can provide it, okay, then it can be based on a DHT. Servers could use advanced technology between themselves, but clients must be very, very simple. No specific libraries. If the programming language has a JSON library and an HTTP library, it should work. It might need some bindings for cryptography, like libsodium or some other cryptographic library, but the cryptography implementation must be the only thing required for writing a basic client. Sure, if you look at the protocol, you notice that open location code is a requirement, so probably it will pull in a few hundred lines of open location code and some other nuances, but basically, in order to communicate, facilitate communication between the client and the server, an HTTP3 library and JSON decoding is what is required. Nothing else. It must be simple. HTTP3 is great. It is quick, it has non-blocking, multi-stream communication, WebTransport, many, many other great things, compression built in, quantum secure, or quantum resistant cryptography built in. It has many things, and a client can be written by standard browser APIs. It should not require state resolution and things like that, or distributed hash table or something more advanced should not be in the client. The client simplicity, implementation simplicity is key. One of the goals of the protocol is client diversity. This means that many of the clients must be fully featured. Features must not lock users to a few main clients, like in Matrix, where everyone uses Element and maybe FluffyChat, but nothing else. Even basic clients should provide enough features for chat. A developer could set up an authentication and basic message sending in an afternoon if they start reading the docs in that afternoon. So they are finding this protocol first, they start learning it, and at the start of the afternoon and in the evening, they have a working client that can send at least text messages. It must be that simple. So, client implementation must be simple. Put as much state on the server as possible.
Okay, this is a fantastic and detailed set of principles! It's clear a lot of thought has gone into this. Here's a breakdown of expanded data for the server info endpoint, categorized for clarity, building on your existing ideas. I'll also add some notes on prioritization (High, Medium, Low) based on how crucial they seem to the core principles. I'll also indicate if it's primarily for user information or admin information (or both).
Key Considerations Guiding Expansion:
- Transparency: Users need to understand why they chose a server and what to expect.
- Decentralization Focus: Highlighting the unique aspects of each server is vital.
- Ease of Use: Information should be easily digestible, not technical jargon.
- Trust & Safety: Information that builds trust and helps users assess risk.
- Operational Insight: Data useful for admins to monitor and maintain their servers.
Expanded Server Info Endpoint Data
I'll organize this into sections: Basic Info, Technical Details, Policy & Governance, Community & Branding, and Operational Status.
1. Basic Info (High - User & Admin)
- Server Name: (String) - The human-readable name of the server.
- Server Domain: (String) - The primary domain used for the server (e.g.,
example.com).
- Website URL: (String) - Link to the server's main website. Mandatory per your principles.
- Contact Email: (String) - A general contact email address for server support.
- Admin Contact: (String) - Email or handle for direct admin contact (potentially masked for privacy, see below).
- Description: (String) - A short, user-friendly description of the server's purpose and community. (e.g., "A server for friends and family," "A community focused on open-source development," "A privacy-focused server.")
- Registration Open: (Boolean) - Indicates whether new user registration is currently allowed.
- Server Creation Date: (Date/Timestamp) - When the server was initially created.
2. Technical Details (Medium - User & Admin)
- Protocol Version: (String) - The version of the protocol the server supports. Crucial for compatibility.
- Encryption Support: (Array of Strings) - List of supported encryption algorithms (e.g.,
["AES-256-GCM", "ChaCha20-Poly1305"]).
- Storage Technology: (String) - Brief description of the storage backend (e.g., "PostgreSQL," "RocksDB," "S3"). Primarily Admin.
- Database Size: (String) - Current database size (e.g., "12.5 GB"). Primarily Admin.
- Max Message Size: (Integer) - Maximum allowed message size in bytes.
- Max Attachment Size: (Integer) - Maximum allowed attachment size in bytes.
- HTTP/3 Support: (Boolean) - Indicates if HTTP/3 is enabled.
- Federation Enabled: (Boolean) - Indicates if the server participates in federation.
- Federation Whitelist/Blacklist: (Array of Domains) - List of servers the server will/won't federate with. Primarily Admin.
- Open Location Code (OLC) Support: (Boolean) - Confirms OLC support.
- Supported Media Types: (Array of Strings) - List of supported media types (e.g.,
["image/jpeg", "video/mp4"]).
3. Policy & Governance (High - User)
- Terms of Service URL: (String) - Link to the server's Terms of Service. Mandatory.
- Privacy Policy URL: (String) - Link to the server's Privacy Policy. Mandatory.
- Content Moderation Policy URL: (String) - Link to the server's content moderation policy.
- Data Residency Policy: (String) - A clear statement about where user data is stored and processed. (e.g., "Data is stored exclusively within the EU," "Data is stored in the US"). This ties into your "per-room data residency tag" idea.
- Legal Jurisdiction: (String) - The legal jurisdiction governing the server.
- Compliance Standards: (Array of Strings) - List of compliance standards the server adheres to (e.g.,
["GDPR", "CCPA"]).
- Retention Policy: (String) - How long messages are stored (e.g., "Messages are stored for 30 days," "Messages are stored indefinitely").
- Reporting Mechanism: (String) - How users can report abuse or violations of the Terms of Service.
4. Community & Branding (High - User)
- Server Logo URL: (String) - URL to the server's logo image.
- Server Banner URL: (String) - URL to a banner image for the server.
- Server Color Scheme: (String) - Hex code or other identifier for the server's primary color.
- Community Guidelines URL: (String) - Link to community-specific guidelines (if different from the general ToS).
- Server Type/Focus: (Enum) - Categorization of the server (e.g.,
["Friends & Family", "Open Source", "Gaming", "Professional", "General"]). This helps with discovery.
- Server Language(s): (Array of Strings) - Languages commonly spoken on the server.
- Server Social Links: (Object) - Links to the server's social media profiles (e.g.,
{"Twitter": "https://twitter.com/example", "Mastodon": "https://mastodon.example"}).
5. Operational Status (Medium - User & Admin)
- Uptime: (Percentage) - Server uptime over the last 30 days.
- Last Checked: (Date/Timestamp) - When the server info was last updated.
- Ping Time: (Integer) - Average ping time from a standard location (e.g., Amsterdam). Useful for users to assess latency.
- Server Load: (Float) - Current server load average. Primarily Admin.
- CPU Usage: (Percentage) - Current CPU usage. Primarily Admin.
- Memory Usage: (Percentage) - Current memory usage. Primarily Admin.
- Storage Usage: (Percentage) - Current storage usage. Primarily Admin.
- Power Source: (String) - (As you suggested) "Solar," "Hydro," "Grid," "Unknown."
- Donation URL: (String) - Link to a donation page for the server.
- Status Message: (String) - A short, human-readable status message (e.g., "All systems operational," "Experiencing high load, some delays may occur," "Maintenance scheduled for tomorrow").
Additional Considerations & Notes:
- Privacy of Admin Contact: Consider using a masked email service or a contact form to protect the admin's personal email address.
- Caching: Cache this information aggressively on the client-side to reduce server load.
- API Rate Limiting: Implement rate limiting on the server info endpoint to prevent abuse.
- Versioning: Version the API for the server info endpoint to allow for future additions without breaking existing clients.
- Security: Ensure the endpoint is protected against common web vulnerabilities (e.g., XSS, CSRF).
- Dynamic Updates: Consider using WebSockets or Server-Sent Events (SSE) to push updates to clients when server status changes.
This expanded data set should provide a solid foundation for a rich and informative server info endpoint, aligning with your core principles of transparency, decentralization, and user empowerment. Let me know if you'd like me to elaborate on any specific aspect or explore additional data points!