Skip to content

dominictarr/ssb-reduce-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ssb-reduce-stream

reduce a reverse stream of ssb messages into a collection of threads and channels.

data structure

outputs a data structure that looks like this:

{
  roots: {
    <thread_root_id>: {
      key: <thread_root_id>,
      value: <thead_initial_msg>,
      replies: [...],
    }
  },
  channels: {
    <channel_name>: <thread_id>
  }
}

It's assumed that the input is streamed in reverse order, most recent first.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published