npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bytesquadlabs/proctorec-sdk

v1.0.4

Published

Universal frontend recorder SDK for combined screen and webcam recording.

Readme

proctorec-sdk

npm version license

A lightweight, zero-dependency frontend JavaScript SDK to record combined screen share and webcam streams on the client side. Ideal for online interviews, test-taking platforms, remote coding assessments, and browser-based remote proctoring applications.

Key Search Terms & Use Cases

This SDK provides client-side solutions for:

  • React screen recorder with webcam overlay
  • Browser-based screen and camera recorder
  • Client-side remote proctoring SDK
  • Simultaneous screen share and audio mixer
  • Local exam/test recording library
  • No-server video compositing library

Features

  • Circular/Rectangular Webcam Overlay: Renders the webcam feed on top of the screen share feed in real-time.
  • Dynamic Styling Options: Position the overlay in any corner, set shapes, sizes, and borders dynamically.
  • Real-Time Video Composition: Built with off-screen HTML Canvas drawing loops.
  • Dual-Audio Mixing: Mixes microphone audio and screen share system sounds together seamlessly.
  • Audio Level Analyser: Real-time microphone audio frequency metrics for visual indicator feedback.
  • IndexedDB Crash Recovery: Auto-saves video chunks sequentially. If the candidate closes the tab or the browser crashes, the video can be fully recovered and downloaded on reload.
  • Vanilla JS/TypeScript: Highly universal; can be integrated into any frontend framework (React, Vue, Svelte, Angular, Vanilla JS).

Installation

Add it to your dependencies from a local path or npm registry:

npm install proctorec-sdk

Basic Usage

import { AssessmentRecorder } from "proctorec-sdk";

const recorder = new AssessmentRecorder({
  cameraPosition: "bottom-right",
  cameraShape: "circle",
  watermarkText: "Universal Assessment Platform",
  onStop: (blob) => {
    const url = URL.createObjectURL(blob);
    const a = document.createElement("a");
    a.href = url;
    a.download = "candidate-recording.webm";
    a.click();
  },
  onTimerTick: (secondsElapsed) => {
    console.log(`Time elapsed: ${secondsElapsed}s`);
  },
  onAudioLevel: (averageLevel) => {
    updateAudioMeterUI(averageLevel);
  },
  onError: (error) => {
    console.error("Recording error:", error);
  }
});

await recorder.requestPermissions();
recorder.start();

recorder.updateOptions({
  cameraPosition: "top-left",
  cameraShape: "rectangle"
});

recorder.pause();
recorder.resume();
recorder.stop();

Session Crash Recovery

If the candidate's browser crashes, the SDK stores all recorded chunks inside the browser's IndexedDB. When the page reloads, you can check for recoverable sessions and download the partial recording:

import { AssessmentRecorder } from "proctorec-sdk";

const hasRecovery = await AssessmentRecorder.hasRecoverableSession();

if (hasRecovery) {
  const recoveredBlob = await AssessmentRecorder.recoverSession();
  
  if (recoveredBlob) {
    const url = URL.createObjectURL(recoveredBlob);
  }
  
  await AssessmentRecorder.clearRecoverableSession();
}

Options Configuration

| Parameter | Type | Default | Description | | :--- | :--- | :--- | :--- | | cameraPosition | 'bottom-right' \| 'bottom-left' \| 'top-right' \| 'top-left' | 'bottom-right' | Corner position of the webcam preview overlay. | | cameraShape | 'circle' \| 'rectangle' | 'circle' | Overlay bounding shape. | | cameraBorderColor | string | '#ffffff' | Color of the webcam overlay border. | | cameraBorderWidth | number | 4 | Width of the border in pixels (set 0 to disable). | | cameraSize | { width: number, height: number } | { width: 240, height: 180 } | Target size of the webcam overlay. | | watermarkText | string | undefined | Overlay text drawn onto the final video. | | watermarkPosition | 'top-left' \| 'top-right' \| 'bottom-left' \| 'bottom-right' | 'top-left' | Watermark position. | | watermarkColor | string | 'rgba(255, 255, 255, 0.4)' | Watermark text fill style. | | watermarkFontSize | number | 20 | Font size in pixels. | | videoQuality | 'low' \| 'medium' \| 'high' | 'medium' | Recording resolution & bitrate settings (low = 360p/800Kbps, medium = 720p/2.5Mbps, high = 1080p/6Mbps). |

Contributing & Pull Requests

We welcome community contributions! To suggest improvements or submit bug fixes:

  1. Fork the Repository: Create a personal copy of the project on GitHub.
  2. Clone Locally:
    git clone https://github.com/YOUR_USERNAME/proctorec-sdk.git
    cd proctorec-sdk
  3. Install Dependencies:
    npm install
  4. Create a Feature Branch:
    git checkout -b feature/your-feature-name
  5. Make Changes & Build: Edit files in the src/ directory and compile to verify types:
    npm run build
  6. Commit & Push: Commit your changes and push the branch to your fork.
  7. Open a Pull Request: Submit a Pull Request from your branch to the main repository. We will review it as soon as possible!