# ssb-reduce-stream

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

Latest version **1.0.2** (published 2017-08-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install ssb-reduce-stream
pnpm add ssb-reduce-stream
yarn add ssb-reduce-stream
bun add ssb-reduce-stream
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-08-17 |
| First published | 2017-08-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | 'Dominic Tarr' |
| Maintainers | dominictarr |

## Links

- npm: https://www.npmjs.com/package/ssb-reduce-stream
- Repository: https://github.com/dominictarr/ssb-reduce-stream
- Issues: https://github.com/dominictarr/ssb-reduce-stream/issues
- npm.io page: https://npm.io/package/ssb-reduce-stream

## Recent versions

- 1.0.2 (latest) — 2017-08-17
- 1.0.1 — 2017-08-14
- 1.0.0 — 2017-08-13
- 0.0.0 — 2017-08-09

## README

# 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:

``` js
{
  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

---
_Source: https://npm.io/package/ssb-reduce-stream · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
