ssb-reduce-stream

1.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0
  • 0.0.0
    1

Package Sidebar

Install

npm i ssb-reduce-stream

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • mmckegg
  • christianbundy
  • dominictarr
  • marak
  • cel
  • ahdinosaur
  • staltz
  • mixmix
  • arj03
  • cryp7ix