Skip to content
No description, website, or topics provided.
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A decentralized data exchange platform.

For the ideas behind the project, check the website:

API stability Build Status Standard



  1. clone repo and install dependencies
$ git clone
$ cd pttai-next
$ yarn
  1. Start services
# setup backend config
$ cp backend/env.example backend/.env
# setup frontend config
$ cp frontend/env.example frontend/.env

$ yarn hub
$ yarn gateway
$ yarn replicator
$ yarn frontend

Architecture is a network-agnostic, decentralized data exchange platform. Currently we implemented a slack-like chat room as a PoC. is based on a secure, realtime distributed file system. It utilize a merkle-tree-based file index to efficiently replicate only the data you need.


  • Node( A Node is a personal repository for your data.
  • Gateway: A server which hosts multiple nodes. Anyone can run their own gateway instance. Multiple users can share a single gateway to reduce management cost or for authentication.
  • Hub: A public server that acts as a "social hub". People discover each other through hubs. Users can freely switch to a new hub without losing their data whenever they want.

Direct messages are encrypted. However, the keys used to encrypt is stored on the gateway server. To make sure your message is safe, you need to run your own gateway.

We're actively working on the encryption of group messages.



The documentation is a work in progress. check backend/gateway.js for more detail.

POST /login

Login with an `id_token. doesn't require you to use a 3rd-party authentication. However, currently only Google oauth is implemented.

GET /me?token=

Get the current user's archive public key.

GET /topics

Get the list of topics of the current user have posted to.

POST /topics

Create a new topic

GET /topics/:id

Get all messages with a given topic.

POST /topics/:id

Post a new message to a given topic.

GET /topics/:id/curators

Get the list of curators the user trust of a given topic.

POST /topics/:id/curators

Add a new trusted user to the list of curators.

POST /topics/:id/moderation

Add a new personal moderation to the topic

POST /topics/:id?reactions

Add a new reaction to the topic.

GET /friends

Get the friend list

POST /friends

Add a new key to the friend list

POST /dm

Post a direct message to a friend as an encrypted gossip.

GET /profile

Get user's profile

POST /profile

Update user's profile


POST /join

Add a new key to the hub.


The MIT License

You can’t perform that action at this time.