High-performance client-side OCR with ONNX Runtime, RapidOCR and PPU PaddleOCR integration. 100+ language support. Process text from images entirely in the browser with state-of-the-art accuracy and complete privacy.
npm install client-side-ocrHigh-performance client-side OCR library with ONNX Runtime, supporting 100+ languages. Process text from images entirely in your browser with complete privacy.


- 🚀 100% Client-Side: All processing happens in the browser
- 🌍 100+ Languages: Comprehensive multi-language support
- 🔒 Complete Privacy: Your data never leaves your device
- ⚡ High Performance: GPU acceleration with WebGL
- 📦 Small Size: 15-30MB total (cached after first use)
- 🎯 Multiple Models: RapidOCR and PPU PaddleOCR support
- 📱 PWA Ready: Works offline after initial load
``bash`
npm install client-side-ocr
`typescript
import { createRapidOCREngine } from 'client-side-ocr';
// Create OCR engine
const ocr = createRapidOCREngine({
language: 'en', // or 'ch', 'ja', 'ko', etc.
modelVersion: 'PP-OCRv4'
});
// Initialize (downloads models if needed)
await ocr.initialize();
// Process an image
const result = await ocr.processImage(imageFile);
console.log(result.text);
`
`tsx
import { RapidOCRInterface } from 'client-side-ocr/react';
function App() {
return (
onResult={(result) => console.log(result.text)}
/>
);
}
``
- Live Demo
- Full Documentation
- Usage Guide
- API Reference
English, Chinese, Japanese, Korean, French, German, Spanish, Portuguese, Italian, Russian, Arabic, Hindi, Vietnamese, Indonesian, Persian, Kannada, and 80+ more languages.