{"id":29900363,"url":"https://github.com/enfp-dev-studio/node-uni-ocr","last_synced_at":"2025-08-01T13:16:59.407Z","repository":{"id":307045873,"uuid":"1021378778","full_name":"enfp-dev-studio/node-uni-ocr","owner":"enfp-dev-studio","description":"Native Node.js/Electron OCR library powered by Rust uniOCR via napi-rs. Cross-platform, fast, and easy system-level OCR for Windows, macOS. No native build setup required for end users.","archived":false,"fork":false,"pushed_at":"2025-07-17T13:55:22.000Z","size":174,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-29T06:49:41.517Z","etag":null,"topics":["electron","macos","napi-rs","nodejs","ocr","rust","system-ocr","uniocr","windows"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enfp-dev-studio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-17T10:00:36.000Z","updated_at":"2025-07-17T13:55:26.000Z","dependencies_parsed_at":"2025-07-29T07:00:07.245Z","dependency_job_id":null,"html_url":"https://github.com/enfp-dev-studio/node-uni-ocr","commit_stats":null,"previous_names":["enfp-dev-studio/node-uni-ocr"],"tags_count":2,"template":false,"template_full_name":"napi-rs/package-template-pnpm","purl":"pkg:github/enfp-dev-studio/node-uni-ocr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enfp-dev-studio%2Fnode-uni-ocr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enfp-dev-studio%2Fnode-uni-ocr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enfp-dev-studio%2Fnode-uni-ocr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enfp-dev-studio%2Fnode-uni-ocr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enfp-dev-studio","download_url":"https://codeload.github.com/enfp-dev-studio/node-uni-ocr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enfp-dev-studio%2Fnode-uni-ocr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268230128,"owners_count":24217020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["electron","macos","napi-rs","nodejs","ocr","rust","system-ocr","uniocr","windows"],"created_at":"2025-08-01T13:16:54.922Z","updated_at":"2025-08-01T13:16:59.398Z","avatar_url":"https://github.com/enfp-dev-studio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\n# @enfpdev/node-uni-ocr\n\n![CI](https://github.com/enfp-dev-studio/node-uni-ocr/actions/workflows/CI.yml/badge.svg)\n\n## Description\n\n**@enfpdev/node-uni-ocr** is a native Node.js library that brings system-level OCR (Optical Character Recognition) to Node.js and Electron by porting the [uniOCR](https://github.com/hiroi-sora/uni-ocr) engine (written in Rust) via [napi-rs](https://napi.rs/).\n\nIt enables easy, cross-platform OCR functionality (Windows, macOS, and experimental WASI/Linux) without requiring users to set up complex build tools or environments.\n\n---\n\n\n## Installation\n\n```bash\npnpm add @enfpdev/node-uni-ocr\n# or\nnpm install @enfpdev/node-uni-ocr\n```\n\n## Usage\n\n\n### ESM (import) Example\n\n```js\nimport { recognize } from '@enfpdev/node-uni-ocr';\nimport fs from 'fs';\n\n// OCR from file path\nconst result = await recognize('test.png');\nconsole.log(result.text, result.confidence);\n\n// OCR from buffer\nconst buffer = fs.readFileSync('test.png');\nconst result2 = await recognize(buffer, {\n  languages: ['en', 'ko'],\n  confidence_threshold: 0.5,\n  timeout: 10,\n});\nconsole.log(result2.text);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenfp-dev-studio%2Fnode-uni-ocr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenfp-dev-studio%2Fnode-uni-ocr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenfp-dev-studio%2Fnode-uni-ocr/lists"}