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 ♾️.
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.
npm install -g cuser
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.
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.
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.
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.
List of packages currently in existence for cuser
name | description | version | coverage | downloads |
---|---|---|---|---|
Cuser | ||||
@cuser/cli |
command line interface | |||
@cuser/core |
Core ipfs wrapper | |||
@cuser/publisher |
backend publisher logic | |||
@cuser/reader |
messages reader from the ipfs transport layer | |||
@cuser/auth |
auth core utility | |||
@cuser/store |
store tree changes managment | |||
@cuser/crypto |
cuser crypto utilities | |||
@cuser/validator |
json schema validator | |||
@cuser/utils |
common utils used by cuser | |||
@cuser/client |
client logic for reading and publishing message using restfull transport | |||
@cuser/server |
http server with express | |||
Clients | ||||
Types | ||||
@cuser/proto |
typing, schemas and services based in protocol buffers | |||
Middlewares | ||||
@cuser/express-middleware-auth |
||||
@cuser/express-middleware-rest |
||||
@cuser/express-middleware-graphql |
||||
Integrations | ||||
@cuser/react |
react ui components for visualize cuser |
Being a workspaced based mono repo project, yarn >=1.5.0
is needed to allow local development
yarn install
GITHUB_ACCESS_TOKEN=<access_token> npm run release {version_number}