Skip to content

An experimental Matrix client for playing with freestyle public threaded conversations

License

Notifications You must be signed in to change notification settings

2gatherproject/cerulean

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cerulean

Cerulean is a highly experimental Matrix client intended to demonstrate the viability of freestyle public threaded conversations a la Twitter.

As such, it is built as simply as possible, in order to demonstrate to someone unfamiliar with Matrix how the Client Server API can be used in this manner. It has no dependencies (other than create-react-app) and has no optimisations. It uses a naive View+Model architecture for legibility (although ideally it'd grow to be MVVM in future).

For more info, see https://matrix.org/blog/2020/12/18/introducing-cerulean

Design

The way Cerulean works is:

  • Messages are sent into 2 rooms: the 'user timeline' room and a 'thread' room.
    • For instance, my user timeline room would be #@matthew:matrix.org
    • A thread room is created for each unique post. Replies to the thread are sent into this room.
  • Messages are viewed in the context of a given 'thread' room.
  • User timelines are viewed in the context of a given 'user timeline' room.
  • Messages are threaded in 'thread' rooms using MSC2836.
  • Users should only /join other's timeline rooms to 'follow' them and get updates whenever they make a post/reply.
  • Users should only /join a thread room to reply to a post in that room, otherwise they should /peek to get a read-only view of the thread.
  • Users should start off as guests on their chosen homeserver, and then login if they want to post.

Cerulean uses the following experimental MSCs:

  • Threading from MSC2836
  • #@user:domain user profile/timeline rooms from MSC1769
  • peeking via /sync MSC2753 - optional
  • peeking over federation MSC2444 - optional

Features

  • User timelines
  • User timelines with replies
  • Individual messages with surrounding threaded conversation
  • Ability to expand out threads to explore further
  • Ability to display parent rather than child threads if the parent started on a different timeline
  • Live updates as messages arrive (i.e. a /sync loop)
  • HTML messages
  • Likes
  • RTs

Pending serverside work:

  • Search. We don't currently have a fast search across all public rooms, but it could of course be added.
  • Hashtags. These are effectively a subset of search.

This test jig could also be used for experimenting with other threaded conversation formats, e.g:

  • Mailing lists
  • Newsgroups
  • HN/Reddit style forums

To build

yarn install
yarn start

License

All files in this repository are licensed as follows:

Copyright 2020 The Matrix.org Foundation C.I.C.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

An experimental Matrix client for playing with freestyle public threaded conversations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.7%
  • CSS 10.0%
  • HTML 1.2%
  • Shell 0.1%