@krishnaokulr/nsfw-detector-sdk
v2.1.0
Published
On-device NSFW content detection SDK for React Native (NudeNet ONNX)
Downloads
117
Readme
NSFW Detector SDK
Private on-device NSFW content detection SDK for React Native using NudeNet ONNX model.
Overview
The NSFW Detector SDK provides enterprise-grade, privacy-first content moderation with multi-modal analysis capabilities. All processing occurs locally on-device with no external API calls, ensuring complete data privacy and compliance with privacy regulations.
Features
| Feature | Description | |---------|-------------| | On-device inference | No API calls, complete privacy | | Multi-modal analysis | Visual, text, OCR, and audio scanning | | Video support | Two-pass frame sampling (keyframes + precise edge detection) | | Configurable thresholds | Fine-tune detection sensitivity per category | | Risk engine | Composite weighted aggregation scoring (0-100) |
Quick Start
import { detectContent } from '@krishnaokulr/nsfw-detector-sdk';
// Single image detection
const result = await detectContent('file:///path/to/image.jpg', 'image');
if (result.isViolation) {
console.log(`Blocked: ${result.topLabel}`);
}
// Video detection
const videoResult = await detectContent('file:///path/to/video.mp4', 'video');Full Documentation: docs/installation.md
API Reference: docs/api.md
Repository: Private GitHub repository
Requirements
- React Native >= 0.72.0
- iOS Deployment Target >= 13.0
- Android API Level 24+
License
Private - Internal use only
