
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
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' });
// 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 30 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.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.