Zerox

Stale
GitHub TypeScript MIT

Description

OCR and document extraction tool using vision models, efficiently converting PDFs and images into structured text.

Key Features

  • Converts PDFs, DOCX, images to images then calls vision models to generate Markdown
  • Supports OpenAI, Azure OpenAI, AWS Bedrock, Google Gemini, Vertex AI providers
  • Dual SDK in Node.js and Python with async API and concurrent processing
  • Built-in structured data extraction with custom Schema support
  • Page orientation correction, edge trimming, and format preservation preprocessing
  • maintainFormat option ensures consistent output for cross-page tables and complex layouts

Use Cases

💡 Convert PDF documents to searchable Markdown text in RAG pipelines
💡 Automatically extract structured information from invoices and contracts
💡 Batch process scanned files and generate editable text versions
💡 Convert chart-heavy and table-heavy documents into AI-understandable formats
💡 Provide document understanding capabilities for AI agents with multimodal input

Strengths & Limitations

Strengths

  • High community interest (12.3k stars)
  • Permissive open-source license (MIT)
  • Established track record (2 years in production)
  • Responsive to issues, low backlog

⚠️ Limitations

  • No updates in over 15 months

Categories

Quick Start

1. Install Node.js SDK: `npm install zerox`
2. Usage example:
```ts
import { zerox } from 'zerox';
const result = await zerox({
  filePath: 'path/to/document.pdf',
  credentials: { apiKey: process.env.OPENAI_API_KEY },
});
```
3. Or install Python SDK: `pip install py-zerox`

Related Projects

Crawlee

25.6k · TypeScript
Active A+

A web scraping and browser automation library for Node.js to build reliable crawlers, supporting Puppeteer, Playwright, Cheerio, and raw HTTP. Extract data for AI, LLMs, RAG, or GPTs with proxy rotation and both headful and headless modes.

typescriptjavascriptdata-processing +3
  • · Multi-engine unified interface — same API supports Puppeteer, Playwright, Cheerio and raw HTTP
  • · Anti-detection stealth — default config simulates human behavior to bypass major bot protections
  • · Proxy rotation and session management — built-in proxy rotation, fingerprint generation and session persistence

MinerU

79.0k · Python
Active A+

Transforms complex documents like PDFs into LLM-ready markdown/JSON for Agentic workflows, supporting layout analysis, formula recognition, and table extraction.

data-processingragpython +2
  • · Multi-format document parsing - Native support for PDF, DOCX, PPTX, XLSX, and images with Markdown/JSON output
  • · VLM + OCR dual engine - Vision-language model combined with OCR, 109-language recognition, 95+ accuracy on OmniDocBench
  • · Formula and table extraction - Auto-convert formulas to LaTeX, tables to HTML, with cross-page table merging and chart parsing

Scira

11.9k · TypeScript
Active A+

A minimalistic AI-powered search engine that helps you find information on the internet and cites it too. Powered by Vercel AI SDK.

typescriptllmrag +3
  • · Agentic research platform with multi-step planning that breaks complex questions into sub-tasks
  • · 17 search modes including Web, Academic, GitHub, Reddit, Stocks, Crypto, YouTube, and X (Twitter)
  • · 28 integrated tools for search, financial data, location, media, code execution, and file query

Vane

36.6k · TypeScript
Active A+

An AI-powered answering engine with multi-model integration, web search and local knowledge base, providing a Perplexity-like search experience.

ragtypescriptllm +2
  • · Multi-model LLM support — Use local models via Ollama or connect to OpenAI, Anthropic Claude, Google Gemini, Groq and more
  • · SearxNG privacy search — Integrates SearxNG meta search engine aggregating multiple search providers without tracking identity
  • · Smart search modes — Speed Mode for quick answers, Balanced Mode for daily searches, Quality Mode for deep research