
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
detection-lib
Advanced tools
> A modular JavaScript detection library for face, QR, and future detection types with a clean, unified API.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
A modular JavaScript detection library for face, QR, and future detection types with a clean, unified API.
detect(input)
method.createDetector({ type })
to initialize the correct implementation.<video>
, <canvas>
, and <img>
HTML elements.This library currently runs in the browser using ES modules.
npm install detection-lib
import { createDetector } from 'detection-lib';
// Create a face detector
const detector = await createDetector({ type: 'face' });
//initalize it
await detector.initialize();
// Detect faces in a video element
const result = await detector.detect(videoElement);
if (result.type === 'face' && result.boxes) {
result.boxes.forEach(box => {
// Draw box on canvas, etc.
console.log(box);
});
}
All detectors implement:
async detect(input: HTMLVideoElement | HTMLImageElement | HTMLCanvasElement): Promise<DetectionResult>
To add a new detector:
1. Create a new file in src/detectors/ (e.g., myDetector.js).
2. Implement a class with a detect() method.
3. Register it in the factory in src/DetectorFactory.js.
FAQs
> A modular JavaScript detection library for face, QR, and future detection types with a clean, unified API.
The npm package detection-lib receives a total of 11 weekly downloads. As such, detection-lib popularity was classified as not popular.
We found that detection-lib 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
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.