Home

Awesome

<!-- SPDX-FileCopyrightText: 2021 Andre Staltz SPDX-License-Identifier: CC0-1.0 -->

ssb-suggest-lite

An SSB secret-stack plugin for fetching profiles of authors that match a name

This is a lighter and simpler variant of ssb-suggest built with ssb-db2. The differences with ssb-suggest are:

Install

npm install ssb-suggest-lite

Usage

 SecretStack({appKey: require('ssb-caps').shs})
   .use(require('ssb-master'))
+  .use(require('ssb-db2'))
+  .use(require('ssb-db2/about-self'))
+  .use(require('ssb-friends'))
   .use(require('ssb-conn'))
   .use(require('ssb-blobs'))
+  .use(require('ssb-suggest-lite'))
   .call(null, config)

API

ssb.suggest.profile works the same as with ssb-suggest, the only difference is that the results don't contain the field following nor the field matchedName.

License

LGPL-3.0