{
  "id": "task_libraries:ocr/javascript",
  "path": "/exapedia/javascript-ocr-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript OCR libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript OCR (optical character recognition) libraries extract text from images and scanned documents in Node.js and the browser. A library either runs an OCR engine on the device or sends each page to a cloud document service. These libraries turn scanned forms, receipts, and screenshots into text that search systems and AI agents can read."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript OCR libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#mistralai-mistralai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F136"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tesseract-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F155"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#aws-sdk-client-textract",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#google-cloud-vision",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F191"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#google-cloud-documentai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F209"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#azure-document-intelligence",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F228"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#llamaindex-llama-cloud",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F245"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#node-tesseract-ocr",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F260"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#tesseract-js",
          "label": [
            {
              "t": "text",
              "text": "Tesseract.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads among the local OCR libraries in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F2"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Native PDF input",
            "Structured field extraction",
            "Word bounding boxes"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#mistralai-mistralai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F136"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tesseract-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F155"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#aws-sdk-client-textract",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#google-cloud-vision",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F191"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#google-cloud-documentai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F209"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#azure-document-intelligence",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F228"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#llamaindex-llama-cloud",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F245"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#node-tesseract-ocr",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F260"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F271"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F272"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "mistralai-mistralai",
          "name": [
            {
              "t": "fact",
              "fact": "F136"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mistralai/client-ts"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@mistralai/mistralai"
            },
            {
              "label": "Docs",
              "href": "https://github.com/mistralai/client-ts#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F143"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/mistralai/client-ts#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F136"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/getomni-ai/benchmark",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F153"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async ocr(imagePath: string) {\n    try {\n      const start = performance.now();\n\n      const response = await this.client.ocr.process({\n        model: 'mistral-ocr-latest',\n        document: {\n          imageUrl: imagePath,\n        },\n        includeImageBase64: true,\n      });\n\n      const text = response.pages.map((page) => page.markdown).join('\\n');\n      const end = performance.now();\n\n      const imageBase64s = response.pages.flatMap((page) =>\n        page.images.map((image) => image.imageBase64).filter((base64) => base64),\n      );\n\n      return {\n        text,\n        imageBase64s,\n        usage: {\n          duration: end - start,\n          totalCost: COST_PER_IMAGE,\n        },\n      };\n    } catch (error) {\n      console.error('Mistral OCR Error:', error);\n      throw error;\n    }\n  }",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/getomni-ai/benchmark/blob/cf84a584745297e97f53921e1b8896522fd3c75b/src/models/mistral.ts#L25-L56",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F152"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40mistralai/mistralai%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F136"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { Mistral } from '@mistralai/mistralai';\nconst client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY });\nconst result = await client.ocr.process({ model: 'mistral-ocr-latest', document: { type: 'document_url', documentUrl: 'https://arxiv.org/pdf/2201.04234' } });\nconsole.log(result.pages[0]?.markdown);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.mistral.ai/capabilities/document_ai/basic_ocr/",
                  "label": [
                    {
                      "t": "text",
                      "text": "ocrrequest.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F141"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "tesseract-js",
          "name": [
            {
              "t": "fact",
              "fact": "F155"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/naptha/tesseract.js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/tesseract.js"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F13"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/naptha/tesseract.js",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F155"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F21"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/alam00000/bentopdf",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F170"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "function recognizeWithTimeout(\n  worker: Tesseract.Worker,\n  canvas: HTMLCanvasElement,\n  timeoutMs: number\n): Promise<Tesseract.RecognizeResult> {\n  return new Promise((resolve, reject) => {\n    const timer = setTimeout(() => {\n      const error = new Error(\n        trText('OCR recognize timed out after {{timeoutMs}}ms', { timeoutMs })\n      );\n      error.name = 'OcrTimeoutError';\n      reject(error);\n    }, timeoutMs);\n    worker\n      .recognize(canvas, {}, { text: true, hocr: true })\n      .then((result) => {\n        clearTimeout(timer);\n        resolve(result);\n      })\n      .catch((err) => {\n        clearTimeout(timer);\n        reject(err);\n      });\n  });\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/alam00000/bentopdf/blob/cc97429413ee13fa977d18627003b9b69e1787e6/src/js/utils/ocr.ts#L154-L178",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F169"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20tesseract.js%20for%20OCR%2C%20scanned%20documents%2C%20PDF%20text%20layers%2C%20document%20layout%20and%20text%20coordinates&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F155"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { createWorker } from 'tesseract.js';\n\n(async () => {\n  const worker = await createWorker('eng');\n  const ret = await worker.recognize('https://tesseract.projectnaptha.com/img/eng_bw.png');\n  console.log(ret.data.text);\n  await worker.terminate();\n})();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/naptha/tesseract.js/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F160"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "aws-sdk-client-textract",
          "name": [
            {
              "t": "fact",
              "fact": "F172"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/aws/aws-sdk-js-v3"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@aws-sdk/client-textract"
            },
            {
              "label": "Docs",
              "href": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-textract"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F179"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-textract",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F172"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/getomni-ai/benchmark",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async ocr(imagePath: string) {\n    try {\n      // Convert image URL to base64\n      const response = await fetch(imagePath);\n      const arrayBuffer = await response.arrayBuffer();\n      const buffer = Buffer.from(arrayBuffer);\n\n      const start = performance.now();\n      const command = new AnalyzeDocumentCommand({\n        Document: {\n          Bytes: buffer,\n        },\n        FeatureTypes: ['LAYOUT'],\n      });\n\n      const result = await this.client.send(command);\n      const end = performance.now();\n\n      // Extract text from blocks\n      const text =\n        result.Blocks?.filter((block) => block.Text)\n          .map((block) => block.Text)\n          .join('\\n') || '';\n\n      return {\n        text,\n        usage: {\n          duration: end - start,\n          totalCost: COST_PER_PAGE, // the input is always 1 page.\n        },\n      };\n    } catch (error) {\n      console.error('AWS Textract Error:', error);\n      throw error;\n    }\n  }",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/getomni-ai/benchmark/blob/cf84a584745297e97f53921e1b8896522fd3c75b/src/models/awsTextract.ts#L22-L57",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F188"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40aws-sdk/client-textract%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F172"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { TextractClient, DetectDocumentTextCommand } from '@aws-sdk/client-textract';\nimport { readFile } from 'node:fs/promises';\nconst client = new TextractClient({});\nconst result = await client.send(new DetectDocumentTextCommand({ Document: { Bytes: await readFile('./image.png') } }));\nconsole.log(result.Blocks);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@aws-sdk/client-textract@3.1171.0/dist-types/commands/DetectDocumentTextCommand.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "DetectDocumentTextCommand.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F177"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "google-cloud-vision",
          "name": [
            {
              "t": "fact",
              "fact": "F191"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/googleapis/google-cloud-node"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@google-cloud/vision"
            },
            {
              "label": "Docs",
              "href": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-vision"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F198"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-vision",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F191"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F207"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async function detectFulltext(fileName) {\n  // [START vision_fulltext_detection]\n\n  // Imports the Google Cloud client library\n  const vision = require('@google-cloud/vision');\n\n  // Creates a client\n  const client = new vision.ImageAnnotatorClient();\n\n  /**\n   * TODO(developer): Uncomment the following line before running the sample.\n   */\n  // const fileName = 'Local image file, e.g. /path/to/image.png';\n\n  // Read a local image as a text document\n  const [result] = await client.documentTextDetection(fileName);\n  const fullTextAnnotation = result.fullTextAnnotation;\n  console.log(`Full text: ${fullTextAnnotation.text}`);\n  fullTextAnnotation.pages.forEach(page => {\n    page.blocks.forEach(block => {\n      console.log(`Block confidence: ${block.confidence}`);\n      block.paragraphs.forEach(paragraph => {\n        console.log(`Paragraph confidence: ${paragraph.confidence}`);\n        paragraph.words.forEach(word => {\n          const wordText = word.symbols.map(s => s.text).join('');\n          console.log(`Word text: ${wordText}`);\n          console.log(`Word confidence: ${word.confidence}`);\n          word.symbols.forEach(symbol => {\n            console.log(`Symbol text: ${symbol.text}`);\n            console.log(`Symbol confidence: ${symbol.confidence}`);\n          });\n        });\n      });\n    });\n  });\n  // [END vision_fulltext_detection]\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/7d399e2b93deac11a75e781b0525580d8a7cceec/vision/detect.js#L626-L662",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40google-cloud/vision%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F191"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const { ImageAnnotatorClient } = require('@google-cloud/vision');\n(async () => {\n  const client = new ImageAnnotatorClient();\n  const [result] = await client.textDetection('./image.png');\n  console.log(result.textAnnotations?.[0]?.description ?? '');\n})();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cloud.google.com/vision/docs/ocr",
                  "label": [
                    {
                      "t": "text",
                      "text": "helpers.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F196"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "google-cloud-documentai",
          "name": [
            {
              "t": "fact",
              "fact": "F209"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/googleapis/google-cloud-node"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@google-cloud/documentai"
            },
            {
              "label": "Docs",
              "href": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-documentai"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F216"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-documentai",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F209"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/getomni-ai/benchmark",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async ocr(imagePath: string) {\n    try {\n      // Download the image\n      const response = await fetch(imagePath);\n      const arrayBuffer = await response.arrayBuffer();\n      const imageContent = Buffer.from(arrayBuffer).toString('base64');\n\n      // Determine MIME type from URL\n      const mimeType = this.getMimeType(imagePath);\n\n      const request = {\n        name: this.processorPath,\n        rawDocument: {\n          content: imageContent,\n          mimeType: mimeType,\n        },\n      };\n\n      const start = performance.now();\n      const [result] = await this.client.processDocument(request);\n      const { document } = result;\n      const end = performance.now();\n\n      // Extract text from the document\n      const text = document?.text || '';\n\n      return {\n        text,\n        usage: {\n          duration: end - start,\n          totalCost: COST_PER_PAGE, // the input is always 1 page.\n        },\n      };\n    } catch (error) {\n      console.error('Google Document AI Error:', error);\n      throw error;\n    }\n  }",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/getomni-ai/benchmark/blob/cf84a584745297e97f53921e1b8896522fd3c75b/src/models/googleDocumentAI.ts#L34-L71",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F225"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40google-cloud/documentai%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F209"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const { DocumentProcessorServiceClient } = require('@google-cloud/documentai');\nconst { readFile } = require('node:fs/promises');\n(async () => {\n  const client = new DocumentProcessorServiceClient();\n  const [result] = await client.processDocument({ name: process.env.DOCUMENT_AI_PROCESSOR, rawDocument: { content: (await readFile('./document.pdf')).toString('base64'), mimeType: 'application/pdf' } });\n  console.log(result.document?.text);\n})();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@google-cloud/documentai@10.2.0/build/src/v1/document_processor_service_client.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "document_processor_service_client.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F214"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "azure-document-intelligence",
          "name": [
            {
              "t": "fact",
              "fact": "F228"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Azure/azure-sdk-for-js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@azure-rest/ai-document-intelligence"
            },
            {
              "label": "Docs",
              "href": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/documentintelligence/ai-document-intelligence-rest/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F39"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/documentintelligence/ai-document-intelligence-rest/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F228"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F47"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/getomni-ai/benchmark",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F243"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "async ocr(imagePath: string) {\n    try {\n      const start = performance.now();\n\n      const initialResponse = await this.client\n        .path('/documentModels/{modelId}:analyze', 'prebuilt-layout')\n        .post({\n          contentType: 'application/json',\n          body: {\n            urlSource: imagePath,\n          },\n          queryParameters: { outputContentFormat: 'markdown' },\n        });\n\n      if (isUnexpected(initialResponse)) {\n        throw initialResponse.body.error;\n      }\n\n      const poller = getLongRunningPoller(this.client, initialResponse);\n      const result = (await poller.pollUntilDone()).body as AnalyzeOperationOutput;\n      const analyzeResult = result.analyzeResult;\n      const text = analyzeResult?.content;\n\n      const end = performance.now();\n\n      return {\n        text,\n        usage: {\n          duration: end - start,\n          totalCost: COST_PER_PAGE, // the input is always 1 page.\n        },\n      };\n    } catch (error) {\n      console.error('Azure Document Intelligence Error:', error);\n      throw error;\n    }\n  }",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/getomni-ai/benchmark/blob/cf84a584745297e97f53921e1b8896522fd3c75b/src/models/azure.ts#L31-L67",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20%40azure-rest/ai-document-intelligence%20for%20OCR%2C%20scanned%20documents%2C%20PDF%20text%20layers%2C%20document%20layout%20and%20text%20coordinates&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F228"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import DocumentIntelligence, { isUnexpected, getLongRunningPoller, type AnalyzeOperationOutput } from '@azure-rest/ai-document-intelligence';\nimport { readFile } from 'node:fs/promises';\nconst client = DocumentIntelligence(process.env.DOCUMENT_INTELLIGENCE_ENDPOINT!, { key: process.env.DOCUMENT_INTELLIGENCE_API_KEY! });\nconst response = await client.path('/documentModels/{modelId}:analyze', 'prebuilt-layout').post({ contentType: 'application/json', body: { base64Source: await readFile('./document.pdf', { encoding: 'base64' }) } });\nif (isUnexpected(response)) throw response.body.error;\nconst result = (await getLongRunningPoller(client, response).pollUntilDone()).body as AnalyzeOperationOutput;\nconsole.log(result.analyzeResult?.content);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@azure-rest/ai-document-intelligence@1.1.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F233"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "llamaindex-llama-cloud",
          "name": [
            {
              "t": "fact",
              "fact": "F245"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/run-llama/llama-parse-ts"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@llamaindex/llama-cloud"
            },
            {
              "label": "Docs",
              "href": "https://github.com/run-llama/llama-parse-ts#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F252"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/run-llama/llama-parse-ts#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F245"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import LlamaCloud from '@llamaindex/llama-cloud';\nconst client = new LlamaCloud();\nconst result = await client.parsing.parse({ tier: 'cost_effective', version: 'latest', source_url: 'https://arxiv.org/pdf/2201.04234', expand: ['markdown'] });\nconsole.log(result.markdown);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@llamaindex/llama-cloud@2.19.0/resources/parsing.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "parsing.d.ts"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40llamaindex/llama-cloud%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F245"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F250"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "node-tesseract-ocr",
          "name": [
            {
              "t": "fact",
              "fact": "F260"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/zapolnoch/node-tesseract-ocr"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/node-tesseract-ocr"
            },
            {
              "label": "Docs",
              "href": "https://github.com/zapolnoch/node-tesseract-ocr#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F267"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/zapolnoch/node-tesseract-ocr#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F260"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const tesseract = require('node-tesseract-ocr');\ntesseract.recognize('./image.png', { lang: 'eng' }).then(console.log).catch(console.error);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/node-tesseract-ocr@2.2.1/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=node-tesseract-ocr%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F260"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F265"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript OCR library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#tesseract-js",
          "label": [
            {
              "t": "text",
              "text": "Tesseract.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits apps that run OCR locally in the browser or Node.js. "
        },
        {
          "t": "link",
          "href": "#azure-document-intelligence",
          "label": [
            {
              "t": "text",
              "text": "Azure Document Intelligence"
            }
          ]
        },
        {
          "t": "text",
          "text": ", "
        },
        {
          "t": "link",
          "href": "#aws-sdk-client-textract",
          "label": [
            {
              "t": "text",
              "text": "AWS Textract SDK"
            }
          ]
        },
        {
          "t": "text",
          "text": ", and "
        },
        {
          "t": "link",
          "href": "#google-cloud-documentai",
          "label": [
            {
              "t": "text",
              "text": "Google Document AI"
            }
          ]
        },
        {
          "t": "text",
          "text": " suit apps that need forms, tables, and layout from PDFs."
        }
      ]
    },
    {
      "q": "What is Azure Document Intelligence?",
      "a": [
        {
          "t": "text",
          "text": "Azure Document Intelligence is Microsoft's cloud service for extracting text, layout, and structured data from documents. The "
        },
        {
          "t": "link",
          "href": "#azure-document-intelligence",
          "label": [
            {
              "t": "text",
              "text": "Azure Document Intelligence"
            }
          ]
        },
        {
          "t": "text",
          "text": " REST client analyzes a document from a URL or encoded file data and polls the long-running result."
        }
      ]
    },
    {
      "q": "What is LlamaParse?",
      "a": [
        {
          "t": "text",
          "text": "LlamaParse is the document parsing service in Llama Cloud. The "
        },
        {
          "t": "link",
          "href": "#llamaindex-llama-cloud",
          "label": [
            {
              "t": "text",
              "text": "LlamaCloud SDK"
            }
          ]
        },
        {
          "t": "text",
          "text": " starts a parsing job and returns its results with bounding boxes."
        }
      ]
    },
    {
      "q": "What is AWS Textract?",
      "a": [
        {
          "t": "text",
          "text": "AWS Textract is Amazon's cloud service for detecting text and analyzing forms, tables, and layout. The "
        },
        {
          "t": "link",
          "href": "#aws-sdk-client-textract",
          "label": [
            {
              "t": "text",
              "text": "AWS Textract SDK"
            }
          ]
        },
        {
          "t": "text",
          "text": " returns each block with a bounding box and polygon."
        }
      ]
    },
    {
      "q": "What is Mistral OCR?",
      "a": [
        {
          "t": "text",
          "text": "Mistral OCR is the document OCR model in the Mistral AI API. The "
        },
        {
          "t": "link",
          "href": "#mistralai-mistralai",
          "label": [
            {
              "t": "text",
              "text": "Mistral AI SDK"
            }
          ]
        },
        {
          "t": "text",
          "text": " accepts PDF input and can return schema-directed annotations of a document."
        }
      ]
    },
    {
      "q": "Can Tesseract.js read PDFs?",
      "a": [
        {
          "t": "link",
          "href": "#tesseract-js",
          "label": [
            {
              "t": "text",
              "text": "Tesseract.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " reads images rather than PDF files. A PDF page needs conversion to an image before recognition."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, tesseract.js",
      "display": "Tesseract.js",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, tesseract.js",
      "display": "21.6M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, tesseract.js",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, tesseract.js",
      "display": "7.0.0",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, tesseract.js",
      "display": "v7.0.0",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, tesseract.js",
      "display": "38.8K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Recognizes PDF input, tesseract.js",
      "display": "Unsupported",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Runs in browsers, tesseract.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Runs without OCR server, tesseract.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Returns text coordinates, tesseract.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Output formats, tesseract.js",
      "display": "PDF",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "Install, tesseract.js",
      "display": "npm install tesseract.js",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "What it does, tesseract.js",
      "display": "Runs the Tesseract OCR engine in browsers and Node.js through WebAssembly.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, tesseract.js",
      "display": "Reuses initialized OCR workers",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, tesseract.js",
      "display": "Reuse a worker for multiple images before terminating it.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths lead, tesseract.js",
      "display": "Restricts recognized characters",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "strengths, tesseract.js",
      "display": "Set tessedit_char_whitelist when only specified characters are valid.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, tesseract.js",
      "display": "PDF input needs image rendering",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, tesseract.js",
      "display": "Render PDF pages as images before passing them to Tesseract.js.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations lead, tesseract.js",
      "display": "Structured output needs explicit enabling",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "limitations, tesseract.js",
      "display": "Enable blocks or hocr when downstream code needs document layout.",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Quickstart, tesseract.js",
      "display": "import { createWorker } from 'tesseract.js';\n\n(async () => {\n  const worker = await createWorker('eng');\n  const ret = await worker.recognize('https://tesseract.projectnaptha.com/img/eng_bw.png');\n  console.log(ret.data.text);\n  await worker.terminate();\n})();\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function, tesseract.js",
      "display": "function recognizeWithTimeout(\n  worker: Tesseract.Worker,\n  canvas: HTMLCanvasElement,\n  timeoutMs: number\n): Promise<Tesseract.RecognizeResult> {\n  return new Promise((resolve, reject) => {\n    const timer = setTimeout(() => {\n      const error = new Error(\n        trText('OCR recognize timed out after {{timeoutMs}}ms', { timeoutMs })\n      );\n      error.name = 'OcrTimeoutError';\n      reject(error);\n    }, timeoutMs);\n    worker\n      .recognize(canvas, {}, { text: true, hocr: true })\n      .then((result) => {\n        clearTimeout(timer);\n        resolve(result);\n      })\n      .catch((err) => {\n        clearTimeout(timer);\n        reject(err);\n      });\n  });\n}\n",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project function reference, tesseract.js",
      "display": "ocr.ts · recognizeWithTimeout()",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project repository, tesseract.js",
      "display": "alam00000/bentopdf",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project stars, alam00000/bentopdf",
      "display": "16.4K",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Project push date, alam00000/bentopdf",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F28": {
      "label": "Library name, @azure-rest/ai-document-intelligence",
      "display": "Azure Document Intelligence",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Monthly downloads, @azure-rest/ai-document-intelligence",
      "display": "1.4M",
      "asOf": "2026-11-15"
    },
    "F30": {
      "label": "License, @azure-rest/ai-document-intelligence",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Package release, @azure-rest/ai-document-intelligence",
      "display": "1.1.0",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Undated package release, @azure-rest/ai-document-intelligence",
      "display": "v1.1.0",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Repository stars, @azure-rest/ai-document-intelligence",
      "display": "2.3K",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Recognizes PDF input, @azure-rest/ai-document-intelligence",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Runs without OCR server, @azure-rest/ai-document-intelligence",
      "display": "Unsupported",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Returns text coordinates, @azure-rest/ai-document-intelligence",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Output formats, @azure-rest/ai-document-intelligence",
      "display": "PDF",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "Install, @azure-rest/ai-document-intelligence",
      "display": "npm install @azure-rest/ai-document-intelligence @azure/identity",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "What it does, @azure-rest/ai-document-intelligence",
      "display": "Calls Document Intelligence to extract document content, layout, and structured data.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, @azure-rest/ai-document-intelligence",
      "display": "Extracts layout alongside text",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, @azure-rest/ai-document-intelligence",
      "display": "Use prebuilt-layout to retrieve text and document structure.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths lead, @azure-rest/ai-document-intelligence",
      "display": "Returns formatted document content",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "strengths, @azure-rest/ai-document-intelligence",
      "display": "Request Markdown output when downstream code needs document formatting.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, @azure-rest/ai-document-intelligence",
      "display": "Requires an OCR service",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, @azure-rest/ai-document-intelligence",
      "display": "Connect to a Document Intelligence endpoint rather than an embedded OCR engine.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations lead, @azure-rest/ai-document-intelligence",
      "display": "Searchable PDF requires prebuilt-read",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "limitations, @azure-rest/ai-document-intelligence",
      "display": "Use PDF input with prebuilt-read for searchable PDF output.",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Quickstart, @azure-rest/ai-document-intelligence",
      "display": "import DocumentIntelligence, {\n  isUnexpected,\n  getLongRunningPoller,\n  AnalyzeOperationOutput,\n} from \"@azure-rest/ai-document-intelligence\";\nimport { DefaultAzureCredential } from \"@azure/identity\";\nimport { join } from \"node:path\";\nimport { readFile } from \"node:fs/promises\";\n\nconst client = DocumentIntelligence(\n  process.env[\"DOCUMENT_INTELLIGENCE_ENDPOINT\"],\n  new DefaultAzureCredential(),\n);\n\nconst filePath = join(\"./assets\", \"forms\", \"Invoice_1.pdf\");\nconst base64Source = await readFile(filePath, { encoding: \"base64\" });\nconst initialResponse = await client\n  .path(\"/documentModels/{modelId}:analyze\", \"prebuilt-layout\")\n  .post({\n    contentType: \"application/json\",\n    body: {\n      base64Source,\n    },\n    queryParameters: { locale: \"en-IN\" },\n  });\n\nif (isUnexpected(initialResponse)) {\n  throw initialResponse.body.error;\n}\n\nconst poller = getLongRunningPoller(client, initialResponse);\nconst result = (await poller.pollUntilDone()).body as AnalyzeOperationOutput;\nconsole.log(result);\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function, @azure-rest/ai-document-intelligence",
      "display": "async ocr(imagePath: string) {\n    try {\n      const start = performance.now();\n\n      const initialResponse = await this.client\n        .path('/documentModels/{modelId}:analyze', 'prebuilt-layout')\n        .post({\n          contentType: 'application/json',\n          body: {\n            urlSource: imagePath,\n          },\n          queryParameters: { outputContentFormat: 'markdown' },\n        });\n\n      if (isUnexpected(initialResponse)) {\n        throw initialResponse.body.error;\n      }\n\n      const poller = getLongRunningPoller(this.client, initialResponse);\n      const result = (await poller.pollUntilDone()).body as AnalyzeOperationOutput;\n      const analyzeResult = result.analyzeResult;\n      const text = analyzeResult?.content;\n\n      const end = performance.now();\n\n      return {\n        text,\n        usage: {\n          duration: end - start,\n          totalCost: COST_PER_PAGE, // the input is always 1 page.\n        },\n      };\n    } catch (error) {\n      console.error('Azure Document Intelligence Error:', error);\n      throw error;\n    }\n  }\n",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project function reference, @azure-rest/ai-document-intelligence",
      "display": "azure.ts · ocr()",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project repository, @azure-rest/ai-document-intelligence",
      "display": "getomni-ai/benchmark",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project stars, getomni-ai/benchmark",
      "display": "638",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Project push date, getomni-ai/benchmark",
      "display": "Oct 2025",
      "asOf": "2025-10-21"
    },
    "F54": {
      "label": "Library name, scribe.js-ocr",
      "display": "Scribe.js",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Monthly downloads, scribe.js-ocr",
      "display": "47.9K",
      "asOf": "2026-11-15"
    },
    "F56": {
      "label": "License, scribe.js-ocr",
      "display": "AGPL-3.0",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Package release, scribe.js-ocr",
      "display": "0.18.3",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Undated package release, scribe.js-ocr",
      "display": "v0.18.3",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Repository stars, scribe.js-ocr",
      "display": "325",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Recognizes PDF input, scribe.js-ocr",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Runs in browsers, scribe.js-ocr",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Runs without OCR server, scribe.js-ocr",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Returns text coordinates, scribe.js-ocr",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "Output formats, scribe.js-ocr",
      "display": "PDF",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "Install, scribe.js-ocr",
      "display": "npm install scribe.js-ocr",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "What it does, scribe.js-ocr",
      "display": "Extracts text from images and PDFs and writes searchable PDF documents.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths lead, scribe.js-ocr",
      "display": "Recognizes scanned PDF pages",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths, scribe.js-ocr",
      "display": "Read existing PDF text or run OCR on scanned documents.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "strengths lead, scribe.js-ocr",
      "display": "Creates searchable PDF output",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "strengths, scribe.js-ocr",
      "display": "Add an invisible text layer to an existing PDF.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations lead, scribe.js-ocr",
      "display": "Browser assets require same-origin hosting",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations, scribe.js-ocr",
      "display": "Serve the library and its browser files from the application’s origin.",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "limitations lead, scribe.js-ocr",
      "display": "Convenience API limits production control",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "limitations, scribe.js-ocr",
      "display": "Use openDocument when recognition and export need explicit settings.",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Quickstart, scribe.js-ocr",
      "display": "import scribe from './node_modules/scribe.js-ocr/scribe.js';\n// Pre-load OCR and font data to avoid delay when user uploads a file.\nawait scribe.init({ ocr: true, font: true });\n\nconst uploaderElem = /** @type {HTMLInputElement} */ (document.getElementById('uploader'));\nconst outputElem = /** @type {HTMLDivElement} */ (document.getElementById('output'));\nuploaderElem.addEventListener('change', async () => {\n  if (!uploaderElem.files) return;\n  const text = await scribe.extractText(uploaderElem.files);\n  outputElem.textContent = text;\n});\n",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project function, scribe.js-ocr",
      "display": "async function batchProcessFiles(files) {\n  const fileArr = Array.from(files);\n  const totalFiles = fileArr.length;\n  if (totalFiles === 0) return;\n\n  const outputFormat = /** @type {string} */ (elem.batch.batchOutputFormat.value);\n  const runRecognition = elem.batch.batchRunRecognition.checked;\n  const useZip = elem.batch.batchDownloadZip.checked;\n\n  // Activate batch mode: hide the entire upload area and canvas, show the batch panel\n  batchProcessingActive = true;\n  elem.batch.uploadOuterContainer.style.display = 'none';\n  elem.canvas.canvasContainer.style.display = 'none';\n  elem.upload.uploadDropZone.disabled = true;\n  elem.batch.batchProgressPanel.style.display = '';\n  elem.batch.batchCompleteMessage.style.display = 'none';\n  elem.batch.batchErrorSummary.style.display = 'none';\n  elem.batch.batchFileList.innerHTML = '';\n  elem.batch.batchOverallProgressBar.style.width = '0%';\n  elem.batch.batchOverallPercent.textContent = '0%';\n  elem.batch.batchOverallLabel.textContent = `File 0 of ${totalFiles}`;\n\n  fileArr.forEach((file, i) => {\n    const row = document.createElement('tr');\n    row.innerHTML = `<td style=\"width:80px\"><span class=\"badge bg-secondary\" id=\"batchStatus_${i}\">Pending</span></td>`\n      + `<td class=\"text-start text-truncate\" style=\"max-width:350px\">${file.name}</td>`;\n    elem.batch.batchFileList.appendChild(row);\n  });\n\n  const zipModule = useZip ? await import('./scribe.js/lib/zip.js/index.js') : null;\n  const zipBlobWriter = zipModule ? new zipModule.BlobWriter('application/zip') : null;\n  const zipWriter = zipModule && zipBlobWriter ? new zipModule.ZipWriter(zipBlobWriter) : null;\n\n  let ext = outputFormat;\n  if (outputFormat === 'alto') {\n    ext = 'xml';\n  } else if (outputFormat === 'scribe' && !scribe.ScribeDoc.defaults.compressScribe) {\n    ext = 'scribe.json';\n  }\n\n  let successCount = 0;\n  let errorCount = 0;\n\n  if (runRecognition) {\n    const ocrParams = { anyOk: true, vanillaMode: viewer.opt.vanillaMode, langs: viewer.opt.langs };\n    scribe.init({ ocr: true, ocrParams });\n  }\n\n  for (let i = 0; i < totalFiles; i++) {\n    const file = fileArr[i];\n    const statusElem = /** @type {HTMLSpanElement} */ (document.getElementById(`batchStatus_${i}`));\n\n    elem.batch.batchOverallLabel.textContent = `File ${i + 1} of ${totalFiles}`;\n    const pct = Math.round((i / totalFiles) * 100);\n    elem.batch.batchOverallPercent.textContent = `${pct}%`;\n    elem.batch.batchOverallProgressBar.style.width = `${pct}%`;\n\n    statusElem.textContent = 'Processing';\n    statusElem.className = 'badge bg-info';\n\n    try {\n      doc.clear();\n\n      await doc.importFiles([file]);\n\n      if (runRecognition) {\n        const skipRecOCR = doc.inputData.xmlMode[0] && !doc.inputData.imageMode && !doc.inputData.pdfMode;\n        const skipRecPDF = doc.inputData.pdfMode && doc.inputData.pdfType === 'text';\n\n        if (!skipRecOCR && !skipRecPDF) {\n          await doc.recognize({ langs: viewer.opt.langs });\n        }\n      }\n\n      const content = await doc.exportData(/** @type {\"pdf\"|\"hocr\"|\"alto\"|\"docx\"|\"html\"|\"xlsx\"|\"txt\"|\"md\"|\"scribe\"} */ (outputFormat));\n\n      const baseName = file.name.replace(/\\.\\w{1,6}$/, '');\n      const outputFileName = `${baseName}.${ext}`;\n\n      if (useZip && zipWriter && zipModule) {\n        const contentArray = content instanceof ArrayBuffer\n          ? new Uint8Array(content)\n          : new TextEncoder().encode(/** @type {string} */ (content));\n        await zipWriter.add(outputFileName, new zipModule.Uint8ArrayReader(contentArray));\n      } else {\n        // Download individually with a delay between files to avoid browser blocking\n        await scribe.utils.saveAs(content, outputFileName);\n        if (i < totalFiles - 1) {\n          await new Promise((resolve) => { setTimeout(resolve, 1000); });\n        }\n      }\n\n      successCount++;\n      statusElem.textContent = 'Done';\n      statusElem.className = 'badge bg-success';\n    } catch (e) {\n      console.error(`Batch processing failed for ${file.name}:`, e);\n      errorCount++;\n      statusElem.textContent = 'Error';\n      statusElem.className = 'badge bg-danger';\n    }\n  }\n\n  if (useZip && zipWriter && zipBlobWriter) {\n    await zipWriter.close();\n    if (successCount > 0) {\n      const zipBlob = await zipBlobWriter.getData();\n      const a = document.createElement('a');\n      a.download = 'scribe_batch_output.zip';\n      a.href = URL.createObjectURL(zipBlob);\n      a.dispatchEvent(new MouseEvent('click', {\n        bubbles: true,\n        cancelable: true,\n        view: window,\n      }));\n    }\n  }\n\n  elem.batch.batchOverallLabel.textContent = `${successCount} of ${totalFiles} files processed`;\n  elem.batch.batchOverallPercent.textContent = '100%';\n  elem.batch.batchOverallProgressBar.style.width = '100%';\n\n  elem.batch.batchCompleteMessage.style.display = '';\n\n  if (errorCount > 0) {\n    elem.batch.batchErrorSummary.style.display = '';\n    elem.batch.batchErrorCount.textContent = String(errorCount);\n  }\n\n  doc.clear();\n  batchProcessingActive = false;\n}\n",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project function reference, scribe.js-ocr",
      "display": "main.js · batchProcessFiles()",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Project repository, scribe.js-ocr",
      "display": "scribeocr/scribeocr",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Project stars, scribeocr/scribeocr",
      "display": "813",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Project push date, scribeocr/scribeocr",
      "display": "Oct 2026",
      "asOf": "2026-10-28"
    },
    "F81": {
      "label": "Library name, @gutenye/ocr-browser",
      "display": "Guten OCR Browser",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Monthly downloads, @gutenye/ocr-browser",
      "display": "30.7K",
      "asOf": "2026-11-15"
    },
    "F83": {
      "label": "License, @gutenye/ocr-browser",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Package release, @gutenye/ocr-browser",
      "display": "1.4.9",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Undated package release, @gutenye/ocr-browser",
      "display": "v1.4.9",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Repository stars, @gutenye/ocr-browser",
      "display": "214",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Runs in browsers, @gutenye/ocr-browser",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Runs without OCR server, @gutenye/ocr-browser",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Returns text coordinates, @gutenye/ocr-browser",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Install, @gutenye/ocr-browser",
      "display": "npm install @gutenye/ocr-browser",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "What it does, @gutenye/ocr-browser",
      "display": "Runs OCR in browsers using PaddleOCR models and ONNX Runtime.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths lead, @gutenye/ocr-browser",
      "display": "Uses explicit OCR model files",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths, @gutenye/ocr-browser",
      "display": "Select detection, recognition, and dictionary assets through model options.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "strengths lead, @gutenye/ocr-browser",
      "display": "Runs in the browser",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "strengths, @gutenye/ocr-browser",
      "display": "Recognize images through the browser package and ONNX Runtime.",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations lead, @gutenye/ocr-browser",
      "display": "Browser models require separate hosting",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "limitations, @gutenye/ocr-browser",
      "display": "Serve the detection, recognition, and dictionary files used by the browser.",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Quickstart, @gutenye/ocr-browser",
      "display": "import Ocr from '@gutenye/ocr-browser'\nconst ocr = await Ocr.create({\n  models: {\n    detectionPath: '/assets/ch_PP-OCRv4_det_infer.onnx',\n    recognitionPath: '/assets/ch_PP-OCRv4_rec_infer.onnx',\n    dictionaryPath: '/assets/ppocr_keys_v1.txt'\n  }\n})\nconst result = await ocr.detect('/a.jpg')\n",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need",
      "display": "Repeated image recognition",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Why choose tesseract.js",
      "display": "reusing a worker across multiple images",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need in introduction",
      "display": "repeated image recognition",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "When to consider scribe.js-ocr",
      "display": "native PDF input is required",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need",
      "display": "Scanned and text-native PDFs",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Why choose scribe.js-ocr",
      "display": "extracting existing PDF text or recognizing scanned pages",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need in introduction",
      "display": "scanned and text-native PDFs",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "When to consider tesseract.js",
      "display": "repeated image recognition is the main task",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need",
      "display": "Browser OCR with explicit models",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Why choose @gutenye/ocr-browser",
      "display": "configuring ONNX detection, recognition, and dictionary assets",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need in introduction",
      "display": "browser OCR with explicit models",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need",
      "display": "Document-layout service integration",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Why choose @azure-rest/ai-document-intelligence",
      "display": "extracting document structure alongside text through a service",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Developer need in introduction",
      "display": "document-layout service integration",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "When to consider scribe.js-ocr",
      "display": "PDF recognition should use the bundled document engine",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Page introduction",
      "display": "JavaScript OCR libraries let application developers extract text from images and scans.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Which JavaScript OCR library should I choose?",
      "display": "Tesseract.js supports worker reuse for repeated image recognition.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Which JavaScript OCR library should I choose?",
      "display": "Scribe.js extracts existing PDF text and recognizes scanned PDF pages.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Which JavaScript OCR library should I choose?",
      "display": "Guten provides a browser package with explicit model paths.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Which JavaScript OCR library should I choose?",
      "display": "Document Intelligence extracts content and layout through its REST client.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Can Tesseract.js accept a PDF directly?",
      "display": "Its native input does not support PDF files.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Can Tesseract.js accept a PDF directly?",
      "display": "A separate renderer must turn PDF pages into images first.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Can Tesseract.js still generate a PDF from an image?",
      "display": "Its own example enables PDF output during image recognition and writes the returned PDF bytes.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Why are Tesseract layout fields missing by default?",
      "display": "Non-text output formats are disabled by default.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Why are Tesseract layout fields missing by default?",
      "display": "Enable the required outputs explicitly in worker.recognize.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Should an OCR worker be recreated for every image?",
      "display": "Tesseract.js recommends creating a worker once, recognizing each image, and terminating it afterward.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Does Scribe.js always run OCR on an uploaded PDF?",
      "display": "It can extract existing text from text-native PDFs.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Does Scribe.js always run OCR on an uploaded PDF?",
      "display": "It can recognize text in image-native PDFs.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Can the Scribe browser module be imported from a CDN?",
      "display": "Its browser files must be served from the same origin as the importing file.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Can the Scribe browser module be imported from a CDN?",
      "display": "The own deployment guidance explicitly excludes a CDN import.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Does Guten Browser include ready-to-load default models?",
      "display": "Its browser build requires explicit model paths and app-served model files.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Do Guten recognition results contain geometry?",
      "display": "The published TextLine API includes a frame with top, left, width, and height.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: Is the Azure SDK the OCR engine itself?",
      "display": "It is a REST client for the Document Intelligence service.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Is the Azure SDK the OCR engine itself?",
      "display": "The service is documented separately as cloud-based.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: Does every Document Intelligence model generate searchable PDFs?",
      "display": "Searchable PDF requires the prebuilt-read model.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "FAQ: Does every Document Intelligence model generate searchable PDFs?",
      "display": "The documented searchable-PDF path currently requires PDF input.",
      "asOf": "2026-11-17"
    },
    "F135": {
      "label": "FAQ: Can layout analysis return Markdown for downstream agents?",
      "display": "The layout API can return extracted text in Markdown through outputContentFormat.",
      "asOf": "2026-11-17"
    },
    "F136": {
      "label": "Library name, @mistralai/mistralai",
      "display": "@mistralai/mistralai",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Monthly downloads, @mistralai/mistralai",
      "display": "27.0M",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "License, @mistralai/mistralai",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Package release, @mistralai/mistralai",
      "display": "3.5.0",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Package release date, @mistralai/mistralai",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Install, @mistralai/mistralai",
      "display": "npm install @mistralai/mistralai",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Quickstart, @mistralai/mistralai",
      "display": "import { Mistral } from '@mistralai/mistralai';\nconst client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY });\nconst result = await client.ocr.process({ model: 'mistral-ocr-latest', document: { type: 'document_url', documentUrl: 'https://arxiv.org/pdf/2201.04234' } });\nconsole.log(result.pages[0]?.markdown);\n",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Official description, @mistralai/mistralai",
      "display": "Provides the TypeScript client library for the Mistral AI API.",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Quickstart source file, @mistralai/mistralai",
      "display": "src/models/components/ocrrequest.ts",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Repository stars, @mistralai/mistralai",
      "display": "161",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Native PDF input, @mistralai/mistralai",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Structured field extraction, @mistralai/mistralai",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Word bounding boxes, @mistralai/mistralai",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "OCR geometry, @mistralai/mistralai",
      "display": "Paragraph/content-block rectangles; separate image boxes and word confidence",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Extraction mode, @mistralai/mistralai",
      "display": "Schema-directed document or bounding-box annotations",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Project function, @mistralai/mistralai",
      "display": "async ocr(imagePath: string) {\n    try {\n      const start = performance.now();\n\n      const response = await this.client.ocr.process({\n        model: 'mistral-ocr-latest',\n        document: {\n          imageUrl: imagePath,\n        },\n        includeImageBase64: true,\n      });\n\n      const text = response.pages.map((page) => page.markdown).join('\\n');\n      const end = performance.now();\n\n      const imageBase64s = response.pages.flatMap((page) =>\n        page.images.map((image) => image.imageBase64).filter((base64) => base64),\n      );\n\n      return {\n        text,\n        imageBase64s,\n        usage: {\n          duration: end - start,\n          totalCost: COST_PER_IMAGE,\n        },\n      };\n    } catch (error) {\n      console.error('Mistral OCR Error:', error);\n      throw error;\n    }\n  }",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Project source file, @mistralai/mistralai",
      "display": "src/models/mistral.ts",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Project full_name, @mistralai/mistralai",
      "display": "getomni-ai/benchmark",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Project stargazers_count, @mistralai/mistralai",
      "display": "638",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Library name, tesseract.js",
      "display": "tesseract.js",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Monthly downloads, tesseract.js",
      "display": "22.2M",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "License, tesseract.js",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Package release, tesseract.js",
      "display": "7.0.0",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Package release date, tesseract.js",
      "display": "Dec 2025",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Install, tesseract.js",
      "display": "npm install tesseract.js",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Quickstart, tesseract.js",
      "display": "import { createWorker } from 'tesseract.js';\n\n(async () => {\n  const worker = await createWorker('eng');\n  const ret = await worker.recognize('https://tesseract.projectnaptha.com/img/eng_bw.png');\n  console.log(ret.data.text);\n  await worker.terminate();\n})();\n",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Repository stars, tesseract.js",
      "display": "38.8K",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Native PDF input, tesseract.js",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Structured field extraction, tesseract.js",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Word bounding boxes, tesseract.js",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Execution host, tesseract.js",
      "display": "WebAssembly worker in browser or Node",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Output selection, tesseract.js",
      "display": "Text default; blocks, hOCR, and TSV opt-in",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Project function, tesseract.js",
      "display": "function recognizeWithTimeout(\n  worker: Tesseract.Worker,\n  canvas: HTMLCanvasElement,\n  timeoutMs: number\n): Promise<Tesseract.RecognizeResult> {\n  return new Promise((resolve, reject) => {\n    const timer = setTimeout(() => {\n      const error = new Error(\n        trText('OCR recognize timed out after {{timeoutMs}}ms', { timeoutMs })\n      );\n      error.name = 'OcrTimeoutError';\n      reject(error);\n    }, timeoutMs);\n    worker\n      .recognize(canvas, {}, { text: true, hocr: true })\n      .then((result) => {\n        clearTimeout(timer);\n        resolve(result);\n      })\n      .catch((err) => {\n        clearTimeout(timer);\n        reject(err);\n      });\n  });\n}",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Project source file, tesseract.js",
      "display": "src/js/utils/ocr.ts",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Project full_name, tesseract.js",
      "display": "alam00000/bentopdf",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Project stargazers_count, tesseract.js",
      "display": "16.4K",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Library name, @aws-sdk/client-textract",
      "display": "@aws-sdk/client-textract",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Monthly downloads, @aws-sdk/client-textract",
      "display": "8.6M",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "License, @aws-sdk/client-textract",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Package release, @aws-sdk/client-textract",
      "display": "3.1171.0",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Package release date, @aws-sdk/client-textract",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Install, @aws-sdk/client-textract",
      "display": "npm install @aws-sdk/client-textract",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Quickstart, @aws-sdk/client-textract",
      "display": "import { TextractClient, DetectDocumentTextCommand } from '@aws-sdk/client-textract';\nimport { readFile } from 'node:fs/promises';\nconst client = new TextractClient({});\nconst result = await client.send(new DetectDocumentTextCommand({ Document: { Bytes: await readFile('./image.png') } }));\nconsole.log(result.Blocks);\n",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Official description, @aws-sdk/client-textract",
      "display": "Provides the AWS SDK client for Amazon Textract in Node.js, browsers, and React Native.",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Quickstart source file, @aws-sdk/client-textract",
      "display": "dist-types/commands/DetectDocumentTextCommand.d.ts",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Repository stars, @aws-sdk/client-textract",
      "display": "3.7K",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Native PDF input, @aws-sdk/client-textract",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Structured field extraction, @aws-sdk/client-textract",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Word bounding boxes, @aws-sdk/client-textract",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Document analysis modes, @aws-sdk/client-textract",
      "display": "Text detection versus forms/tables/layout analysis",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Geometry representation, @aws-sdk/client-textract",
      "display": "Block Geometry with bounding box and polygon",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Project function, @aws-sdk/client-textract",
      "display": "async ocr(imagePath: string) {\n    try {\n      // Convert image URL to base64\n      const response = await fetch(imagePath);\n      const arrayBuffer = await response.arrayBuffer();\n      const buffer = Buffer.from(arrayBuffer);\n\n      const start = performance.now();\n      const command = new AnalyzeDocumentCommand({\n        Document: {\n          Bytes: buffer,\n        },\n        FeatureTypes: ['LAYOUT'],\n      });\n\n      const result = await this.client.send(command);\n      const end = performance.now();\n\n      // Extract text from blocks\n      const text =\n        result.Blocks?.filter((block) => block.Text)\n          .map((block) => block.Text)\n          .join('\\n') || '';\n\n      return {\n        text,\n        usage: {\n          duration: end - start,\n          totalCost: COST_PER_PAGE, // the input is always 1 page.\n        },\n      };\n    } catch (error) {\n      console.error('AWS Textract Error:', error);\n      throw error;\n    }\n  }",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Project source file, @aws-sdk/client-textract",
      "display": "src/models/awsTextract.ts",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Project full_name, @aws-sdk/client-textract",
      "display": "getomni-ai/benchmark",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Project stargazers_count, @aws-sdk/client-textract",
      "display": "638",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Library name, @google-cloud/vision",
      "display": "Google Cloud Vision",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Monthly downloads, @google-cloud/vision",
      "display": "3.5M",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "License, @google-cloud/vision",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Package release, @google-cloud/vision",
      "display": "6.2.0",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Package release date, @google-cloud/vision",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Install, @google-cloud/vision",
      "display": "npm install @google-cloud/vision",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Quickstart, @google-cloud/vision",
      "display": "const { ImageAnnotatorClient } = require('@google-cloud/vision');\n(async () => {\n  const client = new ImageAnnotatorClient();\n  const [result] = await client.textDetection('./image.png');\n  console.log(result.textAnnotations?.[0]?.description ?? '');\n})();\n",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Official description, @google-cloud/vision",
      "display": "Provides the Google Cloud Vision API client for Node.js.",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Quickstart source file, @google-cloud/vision",
      "display": "build/src/helpers.d.ts",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Repository stars, @google-cloud/vision",
      "display": "3.2K",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Native PDF input, @google-cloud/vision",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Structured field extraction, @google-cloud/vision",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Word bounding boxes, @google-cloud/vision",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Dense-text versus image-text APIs, @google-cloud/vision",
      "display": "documentTextDetection versus textDetection",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Project function, @google-cloud/vision",
      "display": "async function detectFulltext(fileName) {\n  // [START vision_fulltext_detection]\n\n  // Imports the Google Cloud client library\n  const vision = require('@google-cloud/vision');\n\n  // Creates a client\n  const client = new vision.ImageAnnotatorClient();\n\n  /**\n   * TODO(developer): Uncomment the following line before running the sample.\n   */\n  // const fileName = 'Local image file, e.g. /path/to/image.png';\n\n  // Read a local image as a text document\n  const [result] = await client.documentTextDetection(fileName);\n  const fullTextAnnotation = result.fullTextAnnotation;\n  console.log(`Full text: ${fullTextAnnotation.text}`);\n  fullTextAnnotation.pages.forEach(page => {\n    page.blocks.forEach(block => {\n      console.log(`Block confidence: ${block.confidence}`);\n      block.paragraphs.forEach(paragraph => {\n        console.log(`Paragraph confidence: ${paragraph.confidence}`);\n        paragraph.words.forEach(word => {\n          const wordText = word.symbols.map(s => s.text).join('');\n          console.log(`Word text: ${wordText}`);\n          console.log(`Word confidence: ${word.confidence}`);\n          word.symbols.forEach(symbol => {\n            console.log(`Symbol text: ${symbol.text}`);\n            console.log(`Symbol confidence: ${symbol.confidence}`);\n          });\n        });\n      });\n    });\n  });\n  // [END vision_fulltext_detection]\n}",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Project source file, @google-cloud/vision",
      "display": "vision/detect.js",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Project full_name, @google-cloud/vision",
      "display": "GoogleCloudPlatform/nodejs-docs-samples",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Project stargazers_count, @google-cloud/vision",
      "display": "3.0K",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Library name, @google-cloud/documentai",
      "display": "@google-cloud/documentai",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Monthly downloads, @google-cloud/documentai",
      "display": "2.5M",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "License, @google-cloud/documentai",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Package release, @google-cloud/documentai",
      "display": "10.2.0",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Package release date, @google-cloud/documentai",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Install, @google-cloud/documentai",
      "display": "npm install @google-cloud/documentai",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Quickstart, @google-cloud/documentai",
      "display": "const { DocumentProcessorServiceClient } = require('@google-cloud/documentai');\nconst { readFile } = require('node:fs/promises');\n(async () => {\n  const client = new DocumentProcessorServiceClient();\n  const [result] = await client.processDocument({ name: process.env.DOCUMENT_AI_PROCESSOR, rawDocument: { content: (await readFile('./document.pdf')).toString('base64'), mimeType: 'application/pdf' } });\n  console.log(result.document?.text);\n})();\n",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Official description, @google-cloud/documentai",
      "display": "Provides the Document AI client for Node.js.",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Quickstart source file, @google-cloud/documentai",
      "display": "build/src/v1/document_processor_service_client.d.ts",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Repository stars, @google-cloud/documentai",
      "display": "3.2K",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Native PDF input, @google-cloud/documentai",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Structured field extraction, @google-cloud/documentai",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Word bounding boxes, @google-cloud/documentai",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Citation data, @google-cloud/documentai",
      "display": "Page layout plus textAnchor into document text",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Processor dependency, @google-cloud/documentai",
      "display": "Configured OCR/Form Parser/other processor and location",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Project function, @google-cloud/documentai",
      "display": "async ocr(imagePath: string) {\n    try {\n      // Download the image\n      const response = await fetch(imagePath);\n      const arrayBuffer = await response.arrayBuffer();\n      const imageContent = Buffer.from(arrayBuffer).toString('base64');\n\n      // Determine MIME type from URL\n      const mimeType = this.getMimeType(imagePath);\n\n      const request = {\n        name: this.processorPath,\n        rawDocument: {\n          content: imageContent,\n          mimeType: mimeType,\n        },\n      };\n\n      const start = performance.now();\n      const [result] = await this.client.processDocument(request);\n      const { document } = result;\n      const end = performance.now();\n\n      // Extract text from the document\n      const text = document?.text || '';\n\n      return {\n        text,\n        usage: {\n          duration: end - start,\n          totalCost: COST_PER_PAGE, // the input is always 1 page.\n        },\n      };\n    } catch (error) {\n      console.error('Google Document AI Error:', error);\n      throw error;\n    }\n  }",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Project source file, @google-cloud/documentai",
      "display": "src/models/googleDocumentAI.ts",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Project full_name, @google-cloud/documentai",
      "display": "getomni-ai/benchmark",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Project stargazers_count, @google-cloud/documentai",
      "display": "638",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Library name, @azure-rest/ai-document-intelligence",
      "display": "@azure-rest/ai-document-intelligence",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Monthly downloads, @azure-rest/ai-document-intelligence",
      "display": "1.5M",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "License, @azure-rest/ai-document-intelligence",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Package release, @azure-rest/ai-document-intelligence",
      "display": "1.1.0",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Package release date, @azure-rest/ai-document-intelligence",
      "display": "May 2025",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Install, @azure-rest/ai-document-intelligence",
      "display": "npm install @azure-rest/ai-document-intelligence",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Quickstart, @azure-rest/ai-document-intelligence",
      "display": "import DocumentIntelligence, { isUnexpected, getLongRunningPoller, type AnalyzeOperationOutput } from '@azure-rest/ai-document-intelligence';\nimport { readFile } from 'node:fs/promises';\nconst client = DocumentIntelligence(process.env.DOCUMENT_INTELLIGENCE_ENDPOINT!, { key: process.env.DOCUMENT_INTELLIGENCE_API_KEY! });\nconst response = await client.path('/documentModels/{modelId}:analyze', 'prebuilt-layout').post({ contentType: 'application/json', body: { base64Source: await readFile('./document.pdf', { encoding: 'base64' }) } });\nif (isUnexpected(response)) throw response.body.error;\nconst result = (await getLongRunningPoller(client, response).pollUntilDone()).body as AnalyzeOperationOutput;\nconsole.log(result.analyzeResult?.content);\n",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Repository stars, @azure-rest/ai-document-intelligence",
      "display": "2.3K",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Native PDF input, @azure-rest/ai-document-intelligence",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Structured field extraction, @azure-rest/ai-document-intelligence",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Word bounding boxes, @azure-rest/ai-document-intelligence",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Service API generation, @azure-rest/ai-document-intelligence",
      "display": "Default2024-11-30; prior Form Recognizer client supports older APIs/models",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Input and completion, @azure-rest/ai-document-intelligence",
      "display": "URL/base64 analysis plus long-running poller",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Project function, @azure-rest/ai-document-intelligence",
      "display": "async ocr(imagePath: string) {\n    try {\n      const start = performance.now();\n\n      const initialResponse = await this.client\n        .path('/documentModels/{modelId}:analyze', 'prebuilt-layout')\n        .post({\n          contentType: 'application/json',\n          body: {\n            urlSource: imagePath,\n          },\n          queryParameters: { outputContentFormat: 'markdown' },\n        });\n\n      if (isUnexpected(initialResponse)) {\n        throw initialResponse.body.error;\n      }\n\n      const poller = getLongRunningPoller(this.client, initialResponse);\n      const result = (await poller.pollUntilDone()).body as AnalyzeOperationOutput;\n      const analyzeResult = result.analyzeResult;\n      const text = analyzeResult?.content;\n\n      const end = performance.now();\n\n      return {\n        text,\n        usage: {\n          duration: end - start,\n          totalCost: COST_PER_PAGE, // the input is always 1 page.\n        },\n      };\n    } catch (error) {\n      console.error('Azure Document Intelligence Error:', error);\n      throw error;\n    }\n  }",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Project source file, @azure-rest/ai-document-intelligence",
      "display": "src/models/azure.ts",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Project full_name, @azure-rest/ai-document-intelligence",
      "display": "getomni-ai/benchmark",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Project stargazers_count, @azure-rest/ai-document-intelligence",
      "display": "638",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Library name, @llamaindex/llama-cloud",
      "display": "@llamaindex/llama-cloud",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Monthly downloads, @llamaindex/llama-cloud",
      "display": "758.4K",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "License, @llamaindex/llama-cloud",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Package release, @llamaindex/llama-cloud",
      "display": "2.19.0",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Package release date, @llamaindex/llama-cloud",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Install, @llamaindex/llama-cloud",
      "display": "npm install @llamaindex/llama-cloud",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Quickstart, @llamaindex/llama-cloud",
      "display": "import LlamaCloud from '@llamaindex/llama-cloud';\nconst client = new LlamaCloud();\nconst result = await client.parsing.parse({ tier: 'cost_effective', version: 'latest', source_url: 'https://arxiv.org/pdf/2201.04234', expand: ['markdown'] });\nconsole.log(result.markdown);\n",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Official description, @llamaindex/llama-cloud",
      "display": "Provides the official TypeScript library for the Llama Cloud API.",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Quickstart source file, @llamaindex/llama-cloud",
      "display": "resources/parsing.d.ts",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Repository stars, @llamaindex/llama-cloud",
      "display": "36",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Native PDF input, @llamaindex/llama-cloud",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Structured field extraction, @llamaindex/llama-cloud",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Word bounding boxes, @llamaindex/llama-cloud",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Completion/output mode, @llamaindex/llama-cloud",
      "display": "parsing.create starts job; parsing.parse waits and expands results",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Grounding representation, @llamaindex/llama-cloud",
      "display": "BBox plus half-open UTF-8 byte spans for supported text",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Library name, node-tesseract-ocr",
      "display": "node-tesseract-ocr",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Monthly downloads, node-tesseract-ocr",
      "display": "208.0K",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "License, node-tesseract-ocr",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Package release, node-tesseract-ocr",
      "display": "2.2.1",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Package release date, node-tesseract-ocr",
      "display": "May 2021",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Install, node-tesseract-ocr",
      "display": "npm install node-tesseract-ocr",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Quickstart, node-tesseract-ocr",
      "display": "const tesseract = require('node-tesseract-ocr');\ntesseract.recognize('./image.png', { lang: 'eng' }).then(console.log).catch(console.error);\n",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Official description, node-tesseract-ocr",
      "display": "Wraps the Tesseract OCR engine for Node.js.",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Quickstart source file, node-tesseract-ocr",
      "display": "readme.md",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Repository stars, node-tesseract-ocr",
      "display": "320",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "Native PDF input, node-tesseract-ocr",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "Structured field extraction, node-tesseract-ocr",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "Word bounding boxes, node-tesseract-ocr",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "Execution host, node-tesseract-ocr",
      "display": "Separate native Tesseract executable and language data",
      "asOf": "2026-11-20"
    },
    "F274": {
      "label": "Output contract, node-tesseract-ocr",
      "display": "Promise of text or configured serialized OCR output",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript OCR libraries Tesseract.js Scribe.js Guten OCR Azure Document Intelligence code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
