1.0.2 • Published 7 years ago

ssb-reduce-stream v1.0.2

Weekly downloads
8
License
MIT
Repository
github
Last release
7 years ago

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

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.0

7 years ago