
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@microblink/camera-manager
Advanced tools
Manages cameras and stream, provides both a headless component and a UI component
This package provides camera management for web applications. It handles camera selection, permissions, video stream management, and provides access to video frames for further processing. It is framework-agnostic and can be used with or without a UI.
@microblink/blinkid-ux-manager and @microblink/blinkid.Install from npm using your preferred package manager:
npm install @microblink/camera-manager
# or
yarn add @microblink/camera-manager
# or
pnpm add @microblink/camera-manager
import { CameraManager } from "@microblink/camera-manager";
const cameraManager = new CameraManager();
// Start the camera stream (auto-selects the best camera)
await cameraManager.startCameraStream();
// Optionally, attach the video to a DOM element
const video = document.getElementById("video");
cameraManager.initVideoElement(video);
// Capture frames for processing
const removeCallback = cameraManager.addFrameCaptureCallback((imageData) => {
// Process imageData (instance of ImageData)
});
// Stop the camera when done
cameraManager.stopStream();
See the camera-manager example for more usage details.
CameraManager classstartCameraStream(options?): Starts the camera stream. Options allow selecting a specific camera or facing mode.initVideoElement(videoElement): Attaches a video element for preview.addFrameCaptureCallback(callback): Registers a callback to receive frames as ImageData during capture. Returns a cleanup function.startFrameCapture(): Starts capturing frames for processing.stopFrameCapture(): Stops capturing frames but keeps the stream active.stopStream(): Stops the camera stream and video playback.setResolution(resolution): Sets the desired video resolution (e.g., "1080p").setFacingFilter(facingModes): Filters available cameras by facing mode ("front" or "back").getCameraDevices(): Returns available camera devices.selectCamera(camera): Selects a specific camera device.setCameraMirrorX(mirrorX): Mirrors the video horizontally if needed.reset(): Resets the camera manager and stops all streams.To use the built-in UI, use:
import { createCameraManagerUi } from "@microblink/camera-manager";
const cameraUi = await createCameraManagerUi(cameraManager, document.body);
// Optionally, add cleanup:
cameraUi.dismount();
You can customize UI strings either when creating the camera UI or at runtime:
const cameraUi = await createCameraManagerUi(
cameraManager,
undefined,
{
localizationStrings: {
selected_camera: "My Updated String",
},
},
);
At runtime:
cameraUi.updateLocalization({
select_camera: "My updated string",
});
You can import any of these files directly or use them as a starting point for your own localization.
FAQs
Manages cameras and stream, provides both a headless component and a UI component
The npm package @microblink/camera-manager receives a total of 659 weekly downloads. As such, @microblink/camera-manager popularity was classified as not popular.
We found that @microblink/camera-manager 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
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.