
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
semanticbridge
Advanced tools
A TypeScript/JavaScript SDK for interacting with the SemanticBridge API. This SDK makes it easy to call the `/api/v1/chat/completions` endpoint with type safety and a modern developer experience.
A TypeScript/JavaScript SDK for interacting with the SemanticBridge API. This SDK makes it easy to call the /api/v1/chat/completions endpoint with type safety and a modern developer experience.
npm install semanticbridge
import { SemanticBridge } from "semanticbridge";
// The base URL is hardcoded to http://localhost:3030/api
const bridge = new SemanticBridge({
apiKey: "sk-...",
});
const response = await bridge.ask({
query: "What are the latest trends in AI?",
models: ["gpt-4o-mini", "gemini-1.5-flash"],
});
console.log(response.best_response);
const response = await bridge.ask({
query: "Summarize this document.",
models: ["gpt-4o-mini", "gemini-1.5-flash"],
documents: [{ url: "https://example.com/file.pdf" }],
});
console.log(response.best_response);
for await (const token of bridge.askStream({
query: "Summarize this document.",
models: ["gpt-4o-mini", "gemini-1.5-flash"],
documents: [{ url: "https://example.com/file.pdf" }],
stream: true,
})) {
console.log("Token:", token.token);
}
You can add middleware to intercept or modify requests and responses:
bridge.use(async (req, next) => {
console.log("Request:", req);
const res = await next(req);
console.log("Response:", res);
return res;
});
http://localhost:3030/apiask(params) — Query the orchestrated LLM endpoint (with or without documents)askStream(params, onToken?) — Stream tokens in real time (callback or async iterator)use(middleware) — Add a middleware functionMIT
FAQs
A TypeScript/JavaScript SDK for interacting with the SemanticBridge API. This SDK makes it easy to call the `/api/v1/chat/completions` endpoint with type safety and a modern developer experience.
We found that semanticbridge demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Research
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.