ssbc/ssb-backlinks

Name: ssb-backlinks

Owner: Secure Scuttlebutt Consortium

Description: scuttlebot plugin for indexing all link mentions of messages

Created: 2017-06-12 01:30:33.0

Updated: 2018-05-07 11:43:58.0

Pushed: 2018-05-02 20:37:00.0

Homepage: null

Size: 20

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

ssb-backlinks

scuttlebot plugin for indexing all link mentions of messages (including private for the current identity).

Walks all values of a message searching for ssb-ref recognized keys. Provides an ssb-query style interface.

Example usage
t pull = require('pull-stream')
tion createBacklinkStream (id) {
r filterQuery = {
$filter: {
  dest: id
}


turn sbot.backlinks.read({
query: [filterQuery],
index: 'DTA', // use asserted timestamps
live: true



t msgKey = '%+zYA9WF9cY+HqGLzqS1H7FdUdK45tUmTqiZ85p+RNOQ=.sha256'
relatedMessages = []

(
eateBacklinkStream(msgKey),
ll.filter(msg => !msg.sync),
// note the 'live' style streams emit { sync: true } when they're up to date!
ll.drain(msg => {
relatedMessages.push(msg)


Versions

Please note that 0.7.0 requires scuttlebot 11.3

License

MIT


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.