Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 3.16 KB

HEADER.md

File metadata and controls

55 lines (34 loc) · 3.16 KB

cuser logo

Chatting via Uncentralized Service with Endless Resources

Distributed messaging service 🌐, with no database, no config and using IPFS layer to distribute the storage all over the universe ♾️.

Status

testing release codecov patreon-donate github-sponsor paypal-sponsor

cuser logo

Motivation

Many times I've try to create a webpage where the users can publish their opinions, but it becomes a hard task when you have to prepare an entire ecosystem to store such data. If the information is public, why not distribute such content all over the internet?.

Here is where cuser comes out, taking the powerfull of IPFS, stores the comments using the DAG graph.

This allows create SPA's Single Page Aplications with capabilities of statefull websites, blogs, etc... and minimize the storing impact of your server.

  • Root CID represents the main article which is associated to a hash in IPFS, it can be created using the CID provider of IPFS if the article is not a IPFS distributed file.

Getting started

npm install -g cuser

Spam detection

IPFS manage the data in a fashion way, due the CID is generated using a checksum of the content data, so its really easy to track if the user is publishing the same content in many articles and restrict. A user can not publish repeated comments with the same content.

Restricted comments tree

A user can only replay the last comment, so a user can not replay on himself. This allows to make a conversation where the user only has the capability (if a mistake) to edit his last post until other user continues the conversation.

Removing / Editing comments

Even though IPFS is a permanet store due p2p distribution, if a user wants to remove a comment, can be done using hash tree which is manipulated at the server side allowing remove or replace a blocks.

Security

A user can only edits/remove his owns comments, this is a feature which the @cuser/server takes on. Checking the user token which is provided by the server itself adding this security layer for prevent users to change other users comments.

Diagram