mirror of
https://github.com/cadmium-im/cadmium-docs-legacy.git
synced 2024-11-09 12:11:03 +00:00
4.8 KiB
4.8 KiB
Functional requirements
General
- Possibility of federation (via clearnet, yggdrasil, etc.) (pztrn)
- The ability to prohibit, prefer, require SSL for federation. (pztrn)
- For example, for yggdrasil, SSL is redundant, since there each node tries to connect to each node that it communicates with, and SSL creates an unnecessary load. (pztrn)
- The ability to prohibit, prefer, require SSL for federation. (pztrn)
- Ability to work in p2p mode via yggdrasil (?, undecided)
- Validation of the sender using cryptographic signatures and keys
- I suggest doing this optionally, as many users simply don’t need it (ChronosX88)
- I completely agree, and the first implementation should be done without all this. And this item is more suitable for item 4 of this list, it seems (pztrn)
- I suggest doing this optionally, as many users simply don’t need it (ChronosX88)
- E2EE (E2E Encryption)
- e2ee needs to be done "on plugins", especially if we will make gates to other networks. Matrix has OLM, the XMPP has OTR/OMEMO, and so on. A transparent work with all this things should be done for the user. (pztrn)
- However, it is necessary to choose some standard cryptographic protocol for specs. (ChronosX88)
- This will not work due to the presence of a diverse cryptographic shit zoo. Therefore, you will have to saw it "on plugins", since for the user it should be as transparent as possible. (pztrn)
- However, it is necessary to choose some standard cryptographic protocol for specs. (ChronosX88)
- e2ee needs to be made as customizable as possible so that it is possible to force/not force e2ee, as well as enable e2ee for individual rooms/chats. (pztrn)
- e2ee needs to be done "on plugins", especially if we will make gates to other networks. Matrix has OLM, the XMPP has OTR/OMEMO, and so on. A transparent work with all this things should be done for the user. (pztrn)
- Ability to serve more than one domain with one server instance
- Feature-agnostic protocol, that is, the ability to overwrite on top of this all the chat, and the forum, and the blog/microblog.
- Leave a layer of extensibility, as in XMPP (for developers, of course) (ChronosX88)
- Implement the CEP (Cadmium Enchancement Proposals) mechanism, which will be discussed, and after adoption, enter the main protocol, or go to CER (Cadmium Enchancements Repository).
- Ability to make transports (bridges, gates) to other IM networks.
- Here it would be cool to try to push XMPP as the first gate and try to reuse transports from there. (pztrn)
- In this case, we need to make the AppService API, as in the Matrix. (ChronosX88)
- Perhaps only with emphasis on our new protocol. And, again, it seems to me that for transports (or AppService) the use of the HTTP REST API is stupidly redundant, and here you can well use Websockets so as not to make your connection handlers (everything is ready and there), but to reuse the same gorilla (Golang library) and JSON-RPC on top. (pztrn)
- In this case, we need to make the AppService API, as in the Matrix. (ChronosX88)
- Here it would be cool to try to push XMPP as the first gate and try to reuse transports from there. (pztrn)
- Native clients under all major OS. We can use Go + Qt5, since we are making all free & open source.
- The question remains with the client for iOS, but if we make a suitable protocol that will work and will allow us to map the Telegram in the form of transport, I have a person who will make the client for iOS :) In general, given the having of a macOS, I can try to do it myself but "somehow later", because my target OS is Windows/Linux/macOS/Android (pztrn)
Chats
- 1-on-1 chats (with/without saving history)
- Multi-user (group) chats
- The ability to easily share files (something like to HTTP Upload XEP from XMPP)
- Forwards and replies to messages (as in Telegram)
- Stickers/GIF
- Message Reactions
- Ability to create a discussion from a message (threads) as in Slack/Mattermost/Rocket.chat.
- Ability to create buttons for messages (analog keyboard from Telegram)
- To do this as an extension, for me it is not quite a important thing. (ChronosX88)
- This will help to make the voting poll, for example. And greatly facilitate the transfer of Telegram friends playing games. (pztrn)
- To do this as an extension, for me it is not quite a important thing. (ChronosX88)
- Audio/Video communication at least 1-on-1 (WebRTC/TURN).
- Group A / V communication is desirable, but given the complexity of "cooking" I suggest at the very end of the priority list. (pztrn)
- I agree, then we can use Jitsi later. (ChronosX88)
- Group A / V communication is desirable, but given the complexity of "cooking" I suggest at the very end of the priority list. (pztrn)
- User channels (as in Telegram)
- I propose to implement this not as a "subsystem" of the chat, but as a separate entity with the ability to comment and everything you need, in the form of like dislike. In a Telegram, nevertheless, this "crutch" is more than a really suitable system. (pztrn)
- Seamless chat history system (as in Telegram). A simple yet powerful API is required.
Group chats
- Chat information
- Avatar
- Description
- Members
- Admin system
- Set avatar/group name/description
- Kick the user from members
- Ban the user for some time (or forever)
- Mute the user (restrict sending messages or media)
- Set group alias
- Set group invite link
- Manage the admins (flexible setting the permissions of admins (every aspect))
- View the recent actions of admins
- Pin the messages
- Ability to give name (as position, role) for every admin
- Ability to set group aliases on other servers