https://github.com/ssbc/ssb-suggest-lite
SSB secret-stack plugin for fetching profiles of authors that match a name
https://github.com/ssbc/ssb-suggest-lite
Last synced: 5 months ago
JSON representation
SSB secret-stack plugin for fetching profiles of authors that match a name
- Host: GitHub
- URL: https://github.com/ssbc/ssb-suggest-lite
- Owner: ssbc
- Created: 2021-03-15T14:40:50.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-10-16T08:17:47.000Z (over 3 years ago)
- Last Synced: 2025-11-27T10:46:05.388Z (7 months ago)
- Language: JavaScript
- Size: 47.9 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSES/CC0-1.0.txt
Awesome Lists containing this project
README
# 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](https://github.com/ssbc/ssb-suggest) built with ssb-db2. The differences with ssb-suggest are:
- Supports only `ssb-db2`
- Can only answer queries about peers you follow and `defaultIds` (does not load the cache with "recent authors" nor "recent abouts")
- Does not contain the field `following` in the results
## Install
```
npm install ssb-suggest-lite
```
## Usage
- Requires **Node.js 6.5** or higher
- Requires `secret-stack@^6.2.0`
- Requires `ssb-db2` and the `aboutSelf` plugin
- Requires `ssb-friends@>=4.4.4`
```diff
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