#1717th of 20 in Data and scraping for AIFor data and documents

chandra

OCR model that converts PDFs and images to Markdown, HTML or JSON with layout

Stars
12.5k
License
Apache-2.0
Last commit
Jun 2026
Last release
Mar 2026
Language
Python
Stars, last 29 weeks+4,563
31 Mar 2026: 7,958 stars7 Apr 2026: 8,283 stars14 Apr 2026: 8,573 stars21 Apr 2026: 9,228 stars28 Apr 2026: 10,121 stars5 May 2026: 10,306 stars12 May 2026: 10,418 stars19 May 2026: 10,579 stars26 May 2026: 10,814 stars2 Jun 2026: 10,955 stars9 Jun 2026: 11,050 stars16 Jun 2026: 11,116 stars23 Jun 2026: 11,199 stars30 Jun 2026: 11,280 stars7 Jul 2026: 11,342 stars14 Jul 2026: 11,393 stars21 Jul 2026: 11,657 stars28 Jul 2026: 11,718 stars4 Aug 2026: 11,817 stars11 Aug 2026: 11,971 stars18 Aug 2026: 12,057 stars25 Aug 2026: 12,107 stars1 Sept 2026: 12,158 stars8 Sept 2026: 12,196 stars15 Sept 2026: 12,229 stars22 Sept 2026: 12,280 stars29 Sept 2026: 12,319 stars6 Oct 2026: 12,408 stars13 Oct 2026: 12,487 stars20 Oct 2026: 12,521 stars

7,958 on 31 Mar 202612,521 on 20 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Datalab is hiring: 5 open roles

Overview

Chandra OCR 2 is a vision-language OCR model and Python CLI that turns images and PDFs into Markdown, HTML or JSON while keeping layout, tables, math, forms and handwriting. It runs locally through HuggingFace or against a vLLM server, and ships a Streamlit demo app. Weights use a modified OpenRAIL-M license, separate from the Apache-2.0 code.

Who it is for: Engineers extracting structured text from PDFs, scans and handwritten documents

Strengths

  • Outputs Markdown, HTML and JSON with layout, extracted images and captions
  • Supports 90+ languages; README reports 77.8% average on its own 43-language benchmark
  • Two backends: local HuggingFace or vLLM server with parallel workers
  • Handles handwriting, math, tables and checkbox forms; CLI takes page ranges and directories

Weaknesses

  • Weights are OpenRAIL-M: free only for research, personal use and startups under $2M
  • Hosted Datalab API is stated to be more accurate than the open weights
  • Benchmarks are mostly self-published; throughput is 1.44 pages/s on an H100
  • The chandra_vllm launcher depends on Docker; VRAM and RAM requirements are unknown

What it needs

  • GPU required
  • Needs vLLM, Docker, HuggingFace Transformers, PyTorch
  • Models: datalab-to/chandra-ocr-2, HuggingFace, vLLM
  • port 8000

Also in Data and scraping for AI

See all 20
Also in Data and scraping for AI
RankProjectScore
1mineruDocument parser that converts PDFs, images and Office files to Markdown and JSON Live demo ↗ (opens in a new tab)82.2k starscustom license80 out of 100
2Crawl4AIPython web crawler that converts pages to LLM-ready Markdown and JSON86k starsApache-2.078 out of 100
3doclingPython library and CLI that converts PDFs, Office files and more into structured text69.2k starsMIT78 out of 100
#4label-studioMulti-user data labeling tool for audio, text, images, video and time series28.5k starsApache-2.072 out of 100
#5markitdownPython tool that converts PDF, Office, HTML and audio files to Markdown for LLMs191.4k starsMIT71 out of 100