Giter Site home page Giter Site logo

ssb-suggest-lite-archived's Introduction

โš ๏ธ This repo was moved to https://github.com/ssbc/ssb-suggest-lite. This archival will remain in this GitHub org ssb-ngi-pointer to demonstrate the outcome of the work done by the SSB NGI Pointer team during 2020 and 2021. The SSB NGI Pointer team is no longer active because we completed our grant project.

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:

  • 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
 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

ssb-suggest-lite-archived's People

Contributors

staltz avatar

Watchers

Henry avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.