Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
The Sajari Javascript SDK provides web integration for browsers.
Sajari Search is a hosted search and recommendation service supporting instant search, faceted search, recommendations and custom matching algorithms
This module is for querying the search service. If you want automated indexing, profiling and convenience functions for rendering HTML, please check out sajari-website instead.
sajari
is 11KB gzipped.
npm install sajari --save
A quick example showing how to run a search using the website
search pipeline.
import { Client, Tracking } from "sajari";
const client = new Client("<project>", "<collection>");
const tracking = new Tracking();
tracking.clickTokens("url");
client.searchPipeline(
"website",
{ q: "Foo Bar", resultsPerPage: "10" },
tracking,
(err, res) => {
console.log(err || res);
}
);
The Client
object handles the requesting and callbacks.
Documentation can be found at https://doc.esdoc.org/github.com/sajari/sajari-sdk-js/.
We use the MIT license
This library uses the Fetch API. Fetch is available on all evergreen browsers (Chrome, Firefox, Edge), see here for a more complete overview. We recommend using isomorphic-fetch to increase compatibility across other browsers and Node.js.
FAQs
JavaScript SDK for the Sajari search API
The npm package sajari receives a total of 221 weekly downloads. As such, sajari popularity was classified as not popular.
We found that sajari demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.