Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eyedea-sockets/annoy

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eyedea-sockets/annoy

Socket for Annoy (Approximate Nearest Neighbors Oh Yeah)

  • 0.0.6
  • canary
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Syncano Socket for Annoy (Approximate Nearest Neighbors Oh Yeah)

Syncano Socket CircleCI branch Codecov branch JavaScript Style Guide npm license

Main Socket features:

  • annoy/match — find nearest neighbours

Getting Started

Install package in your project:

cd my_project
npm install @syncano/cli --save-dev
npm install @eyedea-sockets/annoy --save
npx s deploy

Use it:

import Syncano from '@syncano/client'

const s = new Syncano(<instaneName>)

// Search for a user
const params = {
  model: 'profiles', // name of the data class
  query: ['react', 'js'],
  matchWith: [10,3]
}
const suggestions = await s.get('annoy/match', params)

// {
//   distances: [ 1, 5, 8.062257766723633, 9.219544410705566 ],
//   objects: [
//     { username: 'qk', react: 10, js: 2, css: 3 },
//     { username: 'gustavo', react: 5, js: 3, css: 7 },
//     { username: 'pedro', react: 2, js: 2, css: 4 },
//     { username: 'nik', react: 1, js: 1, css: 3 }
//   ]
// }

Keywords

FAQs

Package last updated on 30 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc