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

@hiresphere-acesphere/proctoring-core

v2.2.0

Published

![Version](https://img.shields.io/npm/v/@hiresphere-acesphere/proctoring-core) ![License](https://img.shields.io/npm/l/@hiresphere-acesphere/proctoring-core)

Readme

@hiresphere-acesphere/proctoring-core

Version License

A high-performance, intelligent AI proctoring library powered by MediaPipe. Version 2.0.0 introduces a robust event-driven architecture that classifies raw signals into high-level anomalies with automatic visual proof.

🚀 Installation

npm install @hiresphere-acesphere/proctoring-core

📦 TypeScript Support

The package includes built-in TypeScript definitions. You'll get full intellisense for ProctoringSDK, AnomalyEvent, and all configuration options out of the box.

🛠 Quick Start (v2.0.0+)

The SDK now evaluates raw landmarks internally and emits clean anomaly events. Each event includes a snapshot (base64 JPEG) of the exact frame that triggered the violation.

import { ProctoringSDK } from '@hiresphere-acesphere/proctoring-core';

// 1. Initialize with thresholds
const sdk = new ProctoringSDK({
  apiKey: 'your-api-key',
  thresholds: {
    faceAbsentFrames: 3,    // Wait 3 frames before firing FACE_ABSENT
    phoneDetectedFrames: 2, // Wait 2 frames for cell phone
    cooldownMs: 5000        // Prevent same-event spam for 5 seconds
  }
});

await sdk.init();

// 2. Start monitoring
const video = document.querySelector('video');
sdk.start(video);

// 3. Listen for High-Level Anomalies (New in v2.0.0)
sdk.on('anomaly', (event) => {
  console.log(`🚨 ${event.type} Detected!`);
  console.log(`Severity: ${event.severity}`);
  console.log(`Proof Snapshot: ${event.snapshot}`); // Base64 JPEG Data URL
});

// 4. Raw Pulse (Optional, for debugging)
sdk.on('pulse', (data) => {
    // Contains raw MediaPipe coordinates and blendshapes
});

// 5. Cleanup
// sdk.destroy();

🧠 Supported Anomalies

The SDK provides built-in detection for 9 major violation types:

| Event | Logic | Severity | |---|---|---| | FACE_ABSENT | No face detected in frame | 🔴 Critical | | MULTIPLE_FACES | More than 1 face detected | 🔴 Critical | | PHONE_DETECTED | Cell phone visible in environment | 🔴 Critical | | PERSON_DETECTED | Extra person visible in background | 🔴 Critical | | LAPTOP_DETECTED | Second laptop/device detected | 🔴 Critical | | LOOKING_AWAY | Gaze/Head pose significantly off-center | 🟠 Alert | | EYES_CLOSED | Eyes closed for sustained duration | 🟠 Alert | | BOOK_DETECTED | Physical book detected in frame | 🟠 Alert | | MOUTH_MOVING | Jaw movement pattern indicates talking | 🟡 Warning |

📸 Snapshot Proofs

Every anomaly event automatically includes a snapshot field. This is a compressed (70% quality, 50% scale) JPEG base64 string captured at the exact millisecond the anomaly threshold was met. This serves as tamper-proof evidence for later review.

⚙️ Configuration Options

| Option | Default | Description | |---|---|---| | faceAbsentFrames | 3 | Consecutive frames without a face to trigger event | | multipleFacesFrames | 2 | Consecutive frames with 2+ faces | | phoneDetectedFrames | 2 | Consecutive frames with a phone | | cooldownMs | 5000 | Minimum wait time between same-type events | | eyeClosedThreshold | 0.6 | Sensitivity for eye closure (0.0 - 1.0) | | mouthOpenThreshold | 0.3 | Sensitivity for jaw movement |

🧪 Verification Lab

Test your implementation using the built-in lab:

# 1. Install Lab
npm install -D @hiresphere-acesphere/proctoring-lab

# 2. Run Lab
npx proctoring-test

🛡 Security & Guidelines

  • Origin Filtering: Restrict your API Key usage to authorized domains in your backend.
  • HTTPS Required: The SDK requires a secure context for camera access and telemetry.
  • WASM Assets: Ensure CSP allows wasm-eval and blob: sources.

© 2026 HireSphere AceSphereAI. Proprietary and Confidential.