
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
magnet-algolia
Advanced tools
All Algolia api should refer algoliasearch
Basic
import magnet from 'magnet-core';
import Config from 'magnet-config';
import Logger from 'magnet-bunyan';
import Server from 'magnet-spdy';
import Session from 'magnet-session';
import Router from 'magnet-router';
import Algolia from 'magnet-algolia';
let app = await magnet([Config, Logger, Server, Session, Router, algolia]);
server/controllers/user.js
export default function user({ router, algolia }) {
router
.get('/users', async function (ctx) {
var index = algolia.initIndex('users');
index.search('Atlenta', function(err, results) {
if (err) {
throw err;
}
console.log('We got `' + results.nbHits + '` results');
console.log('Here is the first one: ', results.hits[0]);
// call client.destroy() this when you need to stop the node.js client
// it will release any keepalived connection
algolia.destroy();
});
ctx.body = [];
})
.post('/user', async function (ctx) {
ctx.body = ctx.request.body;
})
.put('/user/:userId', async function (ctx) {
ctx.body = ctx.params;
})
.get('/user/:userId', async function (ctx) {
ctx.body = ctx.query;
});
}
FAQs
Magnet adapter for algoliasearch
We found that magnet-algolia demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.