# Tesseract.js: 6.6 out of 10

Reasonable, with limits. 5th of 7 in [Machine learning in JavaScript](https://elestia.ai/opensource/ml/index.md).

Tesseract.js is a WebAssembly port of the Tesseract OCR engine. It reads printed text from images in the browser or in Node.js, in more than 100 languages. For on-device OCR in JavaScript it is still the easiest choice that works well. But development has slowed to about one release a year, and it is weaker on messy scans, page layout and PDFs.

**Best for:** Apps that need free, private OCR of clean printed text, run in the browser or in Node.js without a server.

## Scores

- **Overall: 6.6** (likely 5.5 to 7.6)
  - Claude Opus 5.5 (6.0): It is the practical default for on-device OCR in JavaScript, and v7 is a solid, faster release. Slow maintenance, accuracy behind modern OCR models, and no PDF or layout support keep it out of the strong-pick band. Choose it for clean printed text. For PDFs use Scribe.js, and for hard documents use a heavier model or a server.
  - GPT-6.2 Sol (7.1): Tesseract.js is a strong choice for new apps that need local OCR on screenshots and clear scans. Transformers.js is a better category-wide choice when the app needs several kinds of model inference. Slow releases and uneven results on harder images limit how confidently it can be recommended for broader document workflows.
- **Needed by many: 3.4** (likely 2.3 to 4.5)
  - Claude Opus 5.5 (3.5): OCR is one clear niche inside on-device machine learning. Peers like Transformers.js and MediaPipe cover many tasks, while this tool covers one. Still, reading text from images or scans comes up often in document, receipt and form apps.
  - GPT-6.2 Sol (3.2): Local OCR serves a clear niche in scanning, search, accessibility, and browser extensions. Browser and Node.js support make it usable across several kinds of app, while its scope is limited to text recognition. State of JavaScript gives some context for how uncommon machine learning is among respondents, but it does not measure OCR use directly.
- **Helps a lot: 6.9** (likely 5.8 to 7.9)
  - Claude Opus 5.5 (6.0): It is reliable and easy to use for clean printed text, and v7 made it faster. Its accuracy depends heavily on image quality, and it has no layout analysis or PDF input. Modern models such as PaddleOCR or vision LLMs read hard documents better, but their JavaScript ports are less mature, so Tesseract.js stays the practical default.
  - GPT-6.2 Sol (7.7): Version 7 has a straightforward typed worker API, with documented examples that give coding agents a clear pattern to follow. An independent benchmark found fast recognition and roughly 0.1% character error on 24 synthetic screenshots. A developer reported needing preprocessing for phone photos, and another reported that v7 can abort with certain high-accuracy language models on Node.js 22. PDF input requires a renderer, and the small benchmark leaves real-world accuracy less certain.
- **Holds up over time: 4.6** (likely 3.2 to 6.1)
  - Claude Opus 5.5 (4.5): There were only 4 commits and 1 release (v7, December 2025) in the last year, and 28 pull requests are open. The Scorecard Maintained check is 0. The project is mature and still gets meaningful releases, but it rests on a small volunteer group. Breaking changes come in each major version (v5 and v6 both changed the API).
  - GPT-6.2 Sol (4.7): Four commits and one release in the past year put it well behind Transformers.js and MediaPipe Tasks in maintenance activity. Recent bug-fix pull requests are still open, and the latest release of both the wrapper and its WebAssembly core came from the same maintainer. Version 6 changed default outputs and version 7 dropped Node.js 14, so major upgrades can require code changes. Public funding is modest, and future release capacity is hard to assess.
- **Used widely: 5.8** (likely 4.6 to 7.2)
  - Claude Opus 5.5 (6.0): Downloads rose from 1.7M to 23.5M per 4 weeks, a ratio of about 13.7 against a median of 4.1. Much of that is probably transitive installs through document parsers such as officeParser, not direct choices. There are 2,209 dependent repositories, fewer than TensorFlow.js (8,947) and MediaPipe (4,257) but solid for a single-task tool. Its 38.8k stars are the most in the category.
  - GPT-6.2 Sol (5.5): Four-week npm installs grew 13.7× year over year, ahead of the 4.1× catalog baseline and behind Transformers.js at about 29×. Ecosyste.ms indexes 2,209 dependent repositories and 216 packages, below TensorFlow.js and MediaPipe Tasks by repository count despite Tesseract.js leading the group in stars. Automated and transitive installs can inflate npm totals, CDN use goes uncounted, and four tracked Bluesky posts provide little confirmation of how many new projects chose it.
- **Vouched for: 5.6** (likely 4.2 to 7.0)
  - Claude Opus 5.5 (5.0): It is widely used as a dependency and covered in many tutorials and independent write-ups. No developer survey rates it, and there are no rigorous independent benchmarks. Users report mixed accuracy, good on clean print and poor on degraded scans.
  - GPT-6.2 Sol (6.2): The OCR Image Reader Chrome extension ships Tesseract.js and lists 200,000 users. OCR It also ships it and publishes a reproducible v7 benchmark, while the Obsidian Text Extractor plugin provides an older example of use. The benchmark covers a narrow workload, and evidence of broader production use or project-specific developer satisfaction is thin.
- **Safe: 5.8** (likely 4.6 to 7.3)
  - Claude Opus 5.5 (6.0): There is one moderate advisory, from 2019, and none in the last 24 months. It has 9 dependencies and an Apache-2.0 licence. The Scorecard score is low at 4.2, with weak code review, branch protection and token permissions. By default it fetches its WASM core and language data from a CDN at runtime, which adds supply-chain exposure unless you self-host.
  - GPT-6.2 Sol (5.6): The package has a permissive Apache-2.0 license and nine direct dependencies. Its one recorded npm advisory was fixed in 1.0.19. OpenSSF scores it 4.2, with weak branch protection, workflow token permissions, and dependency pinning, and release provenance remains unverified. The WebAssembly build also bundles native code, and the applicability of recent upstream Tesseract advisories to that build remains uncertain.

## Good

- Runs fully on the device, in a Web Worker or in Node.js. It supports more than 100 languages and needs no cloud API.
- The API is simple: createWorker('eng') and then recognize(). Types are included, and there are many tutorials that AI agents have learned from.
- v7 adds relaxed-SIMD builds and cuts runtime by about 15-35%. v6 fixed memory leaks.
- It has had one advisory, from 2019, and none since. The licence is the permissive Apache-2.0.

## Bad

- It uses the stock Tesseract LSTM models. Accuracy drops on noisy or skewed scans, handwriting and complex layouts.
- It cannot read PDFs and does no layout analysis. The maintainers point users to Scribe.js for those jobs.
- Development is slow: only 4 commits in the last year, 28 open pull requests, and a Scorecard Maintained score of 0.
- By default it downloads large language files from a CDN at runtime, for example about 14 MB for Japanese. Offline use needs self-hosting.

## The numbers

- Downloads, 4 weeks: 24M
- In a year: ×14
- GitHub stars: 39k
- Commits, 12 months: 4
- Last npm release: Dec 2025
- Advisories, 24 months: 0
- Licence: Apache-2.0
- GitHub: https://github.com/naptha/tesseract.js
- npm: https://www.npmjs.com/package/tesseract.js

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
