docext
docext is an on-premises document processing toolkit that extracts structured data from PDFs and images using vision-language models, without requiring OCR. It converts documents to markdown, extracts key information from invoices and passports, and includes a benchmarking platform to compare model performance on document intelligence tasks.
Key facts
Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.
| Field | Value |
|---|---|
| Repository | NanoNets/docext |
| Owner | NanoNets |
| Primary language | Python |
| License | Apache-2.0 — OSI-approved |
| Stars | 2k |
| Forks | 148 |
| Open issues | 21 |
| Latest release | v0.1.14 (2025-06-30) |
| Last updated | 2026-03-17 |
| Source | https://github.com/NanoNets/docext |
What docext is
Python-based toolkit leveraging VLMs for OCR-free document understanding, featuring PDF/image-to-markdown conversion with LaTeX/signature/watermark detection, structured field extraction with confidence scoring, REST API, and a public leaderboard benchmarking suite covering KIE, VQA, table extraction, and document classification across multiple models (Claude, Gemini, Qwen, etc.).
Get the docext source
Clone the repository and explore it locally.
git clone https://github.com/NanoNets/docext.gitcd docext# follow the project's README for install & configurationNeed it deployed, integrated, or customized instead? DEV.co ships production installs.
Best use cases
Implementation considerations
- VLM selection impacts cost, latency, and accuracy—use the public leaderboard (idp-leaderboard.org) to benchmark against your document types before committing to a model backend.
- Infrastructure must support VLM inference; pulling models like Nanonets-OCR-s (3B parameters) or larger requires adequate GPU/CPU and memory.
- Custom field definitions and template creation require domain expertise; pre-built templates (invoice, passport) provide a starting point but custom schemas need careful design for confidence scoring reliability.
- Confidence scores are model-dependent; validate calibration on your document distribution to avoid false confidence in edge cases.
- REST API deployment requires standard DevOps practices (containerization, scaling, monitoring) not documented in the excerpt.
When to avoid it — and what to weigh
- Heavy real-time, low-latency requirements — VLM inference latency is typically seconds per document. Not suitable for millisecond SLAs in synchronous workflows.
- Handwriting-heavy or heavily degraded documents — While the toolkit claims signature and watermark detection, performance on poor-quality or entirely handwritten documents is not benchmarked in the provided data.
- Windows-only or restricted Linux environments — README states Linux and macOS support only. Deployment in Windows-locked enterprises requires validation.
- Need for proprietary, fine-tuned model weights — Toolkit uses public VLMs (Claude, Gemini, Qwen). If you require proprietary model IP, this open-source approach may not fit.
License & commercial use
Apache License 2.0 (OSI-approved permissive license). Permits commercial use, modification, and distribution under the same license terms with liability and warranty disclaimers.
Apache 2.0 permits commercial use without explicit vendor permission. However, commercial deployment of VLM inference (Claude, Gemini) requires separate licensing and API agreements with those providers. Nanonets-OCR-s model availability and commercial terms should be confirmed independently. Verify your use case with legal counsel.
DEV.co evaluation signals
Editorial assessment — not user reviews. Directional, with an explicit confidence level.
| Signal | Assessment |
|---|---|
| Maintenance | Active |
| Documentation | Adequate |
| License clarity | Clear |
| Deployment complexity | High |
| DEV.co fit | Good |
| Assessment confidence | Medium |
On-premises deployment avoids cloud-side data exposure if infrastructure is properly secured. No explicit security audit, vulnerability disclosure policy, or supply-chain provenance data provided. VLM API keys (for Claude/Gemini fallback) require secure secret management. Input validation and output sanitization practices not documented.
Alternatives to consider
Unstructured.io
Modular document parsing library with on-premises LLM support; however, less integrated benchmarking and fewer pre-built templates than docext.
Hugging Face Document AI ecosystem (LayoutLM, LayoutXLM)
Fine-tunable transformer models for document understanding; requires more ML ops expertise and custom pipelines, but no vendor lock-in to specific VLM providers.
Amazon Textract or Azure Document Intelligence
Managed cloud services with built-in OCR, KIE, and table extraction; simpler API but cloud-dependent, higher per-page cost, and no on-premises option.
Build on docext with DEV.co software developers
Evaluate docext against your document types using the public leaderboard, then engage our team to design a scalable, secure on-premises deployment with custom templates and confidence calibration.
Talk to DEV.coRelated open-source tools
Surfaced by semantic similarity across the DEV.co open-source index.
Related on DEV.co
Explore the category and the services that help you build with it.
docext FAQ
Can I run docext entirely offline without calling external VLM APIs?
What is the performance/cost difference between local VLMs and cloud APIs?
Is there a managed SaaS version of docext, or is it self-hosted only?
How do I handle multi-language documents?
Software developers & web developers for hire
DEV.co helps companies turn open-source tools like docext into production software. Our software development services cover the full lifecycle — architecture, web development, integration, and maintenance — delivered by software developers and web developers who ship. Engage our software development agency to implement or customize it for your rag frameworks stack.
Ready to Deploy docext?
Evaluate docext against your document types using the public leaderboard, then engage our team to design a scalable, secure on-premises deployment with custom templates and confidence calibration.