git ssb

2+

cel / scuttlebot.io



Tree: b943b01f452dcc8c932c81886d0346f7a38269e4

Files: b943b01f452dcc8c932c81886d0346f7a38269e4 / tmpl / apis / scuttlebot / friends.md

1849 bytesRaw

scuttlebot friends plugin

Query the follow and flag graphs.

all: async

Fetch the graph structure.

all [graph]
all(graph, cb)

hops: async

List the degrees-of-connection of all known feeds from the given feed.

hops [start] [graph] [--dunbar number] [--hops number]
hops(start, graph, { dunbar:, hops: }, cb)

createFriendStream: source

Live-stream the ids of feeds which meet the given hops query. If meta
option is set, then will return steam of {id, hops}

createFriendStream
  [--start feedid]
  [--graph follow|flag]
  [--dunbar number]
  [--hops number]
  [--meta]
createFriendStream({ 
  start:,
  graph:,
  dunbar:,
  hops:,
  meta:
}, cb)

get: sync

Get the edge between two different feeds.

get --source {feedid} --dest {feedid} [--graph follow|flag]
get({ source:, dest:, graph: }, cb)

Built with git-ssb-web