Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@oramacloud/client
Advanced tools
npm i @oramacloud/client
import { OramaClient } from "@oramacloud/client";
const client = new OramaClient({
endpoint: "<Your Orama Cloud Endpoint>",
api_key: "<Your Orama Cloud API Key>",
});
const results = await client.search({
term: "red leather shoes",
});
const results = await client.search({
term: "red leather shoes",
where: {
price: {
lte: 9.99,
},
gender: "unisex",
},
limit: 5,
offset: 1,
});
.identify()
method with the user's unique identifier..reset()
when users log out.Note: we suggest developers to always call .identify()
when users sign-up, log-in or when the user re-opens the application in a logged-in state.
Example or already logged in state:
import { OramaClient } from "@oramacloud/client";
const client = new OramaClient({
endpoint: "<Your Orama Cloud Endpoint>",
api_key: "<Your Orama Cloud API Key>",
});
client.identify("<Your unique User ID>");
client.search({
term: "red leather shoes",
});
Upon logging out:
client.reset();
.identify()
method with the user's unique identifier..reset()
when users log out.OramaClient will always generate a new userId upon initialization, so we suggest developers to call the .reset()
function even when users are not necessarily identified. This will ensure that the client is not associated with the previous user, thus preventing improper data association between sessions.
Aliases are employed to link multiple identifiers to a single user, enabling the tracking of anonymous users across different sessions. This is particularly beneficial for monitoring users who are not logged in or who access the platform from various devices.
import { OramaClient } from "@oramacloud/client";
const client = new OramaClient({
endpoint: "<Your Orama Cloud Endpoint>",
api_key: "<Your Orama Cloud API Key>",
});
// Sets the alias for the current user
client.alias("<Unique Alias ID>");
client.search({
term: "red leather shoes",
});
React, vue and secure proxy are now available as separate packages:
FAQs
Orama SDK client for Node.js, Deno, and Browsers
The npm package @oramacloud/client receives a total of 1,790 weekly downloads. As such, @oramacloud/client popularity was classified as popular.
We found that @oramacloud/client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.