Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@rumbl/laserbeak
Advanced tools
Laserbeak enables developers to run transformer models in the browser/Electron using WebGPU.
It is designed to efficiently manage models by caching them in IndexedDB and sharing weights between encoder-decoder models for optimal performance. To see what it can do, check out our example site.
Install Laserbeak using npm:
npm i laserbeak
Here's a simple example of how to load and run a model using Laserbeak:
import {
SessionManager,
AvailableModels,
InferenceSession,
} from "@rumbl/laserbeak";
//Create a SessionManager instance
let manager = new SessionManager();
//Load a model with a callback for when it's loaded
let modelSession = await manager.loadModel(AvailableModels.FLAN_T5_BASE, () =>
console.log("Loaded successfully!")
);
// Run the model with a prompt and handle the output
await session.run(prompt, (output: string) => {
// Process the model output
console.log(output);
});
Laserbeak is still a pre_pre_alpha project, here's our roadmap:
Stay tuned for exciting updates!
We welcome contributions to Laserbeak!
FAQs
ML on the GPU comes to the browser
We found that @rumbl/laserbeak 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.