# collect-mutations **Repository Path**: mirrors_regular/collect-mutations ## Basic Information - **Project Name**: collect-mutations - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-09-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README collect-mutations --- A pull-stream sink for mutation streams coming from [ssb-review-level](https://www.npmjs.com/package/ssb-review-level) If you want to display a set of ssb messages and want them to update in realtime, this is your friend. ``` js const collectMutations = require('collect-mutations') const MutantArray = require('mutant/array') const mmap = require('mutant/map') const messages = MutantArray() pull( ssb.revisions.messagesByType('post'), collectMutations(messages, err => console.error(err)) ) document.body.appendChild( h('ul', mmap(messages, kv => h('li', kv.value.content.text))) ) ``` See Also: - [ssb-revisions](https://www.npmjs.com/package/ssb-revisions) - [mutant](https://www.npmjs.com/package/mutant) - [tre-watch-heads](https://www.npmjs.com/package/tre-watch-heads) License: ISC