{"_id":"paddleocr","_rev":"12-f5461de6eddc8c5a06bd49c375dabad8","name":"paddleocr","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"paddleocr","version":"1.0.0","keywords":["ocr"],"author":{"name":"x3zvawq"},"license":"MIT","_id":"paddleocr@1.0.0","maintainers":[{"name":"x3zvawq","email":"x3zvawq@gmail.com"}],"homepage":"https://github.com/X3ZvaWQ/paddleocr.js#readme","bugs":{"url":"https://github.com/X3ZvaWQ/paddleocr.js/issues"},"dist":{"shasum":"869ae2391e7304ca89775950f4ff13afd19d4e14","tarball":"https://registry.npmjs.org/paddleocr/-/paddleocr-1.0.0.tgz","fileCount":24,"integrity":"sha512-lIcepDJHUiCYMk65P+6LH79pyQnAUbe/RunfKWQrKGBAj9pMYhx0Wg6/W2duGNe73sfFPdt2M86K1WxEYj3Atw==","signatures":[{"sig":"MEQCIGH01ED4fAGTlf7AN7mNyMVsdzubvOrtje9UdDWyirrrAiASl7pd/nOiRHolpwt6MJkYroFTu/wz5IfMJ/Ru9FFJnw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89580},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"40d39dec2b708ffd15e548bf8d21a913c412895b","scripts":{"lint":"prettier --write .","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"x3zvawq","actor":{"name":"x3zvawq","type":"user","email":"x3zvawq@gmail.com"},"email":"x3zvawq@gmail.com"},"repository":{"url":"git+https://github.com/X3ZvaWQ/paddleocr.js.git","type":"git"},"_npmVersion":"11.1.0","description":"A cross-platform OCR library based on PaddleOCR v5 and ONNX Runtime that is as small as possible.","directories":{},"_nodeVersion":"20.18.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","eslint":"^9.29.0","rollup":"^4.44.0","fast-png":"^7.0.0","prettier":"^3.5.3","typescript":"^5.8.3","@types/node":"^24.0.7","onnxruntime-web":"^1.22.0","onnxruntime-node":"1.22.0-rev","rollup-plugin-dts":"^6.2.1","@rollup/plugin-json":"^6.1.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.5.0","@rollup/plugin-typescript":"^12.1.3"},"_npmOperationalInternal":{"tmp":"tmp/paddleocr_1.0.0_1751423302973_0.8296105151131699","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"paddleocr","version":"1.0.1","keywords":["ocr"],"author":{"name":"x3zvawq"},"license":"MIT","_id":"paddleocr@1.0.1","maintainers":[{"name":"x3zvawq","email":"x3zvawq@gmail.com"}],"homepage":"https://github.com/X3ZvaWQ/paddleocr.js#readme","bugs":{"url":"https://github.com/X3ZvaWQ/paddleocr.js/issues"},"dist":{"shasum":"9fce28c3e91356b244763ec6157ee2b16a01c393","tarball":"https://registry.npmjs.org/paddleocr/-/paddleocr-1.0.1.tgz","fileCount":24,"integrity":"sha512-2heoz1XSQINZEmXXqv7Id4KgjxzVUQlkWyr2H0ziyi8DaiFI/fytTDhC3z/EiJRwyVZjou1krpBiUwPnunp3+Q==","signatures":[{"sig":"MEUCIF/rJHEXfidpKInYLWPiJYQNsnDwbemr0COJbK+Gm2SaAiEAliaFeDhVTrBCw9c6PmGtRV10RP0z/snCxv0PKOczZaQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88896},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"862cb3eb60a6fa6d653b038e147ed13992d5de48","scripts":{"lint":"prettier --write .","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"x3zvawq","actor":{"name":"x3zvawq","type":"user","email":"x3zvawq@gmail.com"},"email":"x3zvawq@gmail.com"},"repository":{"url":"git+https://github.com/X3ZvaWQ/paddleocr.js.git","type":"git"},"_npmVersion":"10.8.2","description":"A cross-platform OCR library based on PaddleOCR v5 and ONNX Runtime that is as small as possible.","directories":{},"_nodeVersion":"20.19.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","eslint":"^9.29.0","rollup":"^4.44.0","fast-png":"^7.0.0","prettier":"^3.5.3","typescript":"^5.8.3","@types/node":"^24.0.7","onnxruntime-web":"^1.22.0","onnxruntime-node":"1.22.0-rev","rollup-plugin-dts":"^6.2.1","@rollup/plugin-json":"^6.1.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.5.0","@rollup/plugin-typescript":"^12.1.3"},"_npmOperationalInternal":{"tmp":"tmp/paddleocr_1.0.1_1751428473411_0.6534011675493918","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"paddleocr","version":"1.0.2","keywords":["ocr"],"author":{"name":"x3zvawq"},"license":"MIT","_id":"paddleocr@1.0.2","maintainers":[{"name":"x3zvawq","email":"x3zvawq@gmail.com"}],"homepage":"https://github.com/X3ZvaWQ/paddleocr.js#readme","bugs":{"url":"https://github.com/X3ZvaWQ/paddleocr.js/issues"},"dist":{"shasum":"ccc43aa2a0b38ac9aa8cb5e6080735119633184b","tarball":"https://registry.npmjs.org/paddleocr/-/paddleocr-1.0.2.tgz","fileCount":24,"integrity":"sha512-Drs8lF0R4iqlGMsXFfZJhCGYdm1bQ8mz3/1cCYFyDIhz8JSPEt9tSM8hhOLLgME11uRuN21rauKUUxFiK3SkLA==","signatures":[{"sig":"MEUCIQDV7Q+OarQgmpjpWrof4BLPfUIjA1m0uS4vH6sruVYtQQIgKMSRJhbdcjVXz//VX7pX9q+J5vO8eMGaVjnUYrvV5Z0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90379},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"8997da93f37e45d88deb6e59290d8bd342102aec","scripts":{"lint":"prettier --write .","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"x3zvawq","actor":{"name":"x3zvawq","type":"user","email":"x3zvawq@gmail.com"},"email":"x3zvawq@gmail.com"},"repository":{"url":"git+https://github.com/X3ZvaWQ/paddleocr.js.git","type":"git"},"_npmVersion":"10.8.2","description":"A cross-platform OCR library based on PaddleOCR v5 and ONNX Runtime that is as small as possible.","directories":{},"_nodeVersion":"20.19.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","eslint":"^9.29.0","rollup":"^4.44.0","fast-png":"^7.0.0","prettier":"^3.5.3","typescript":"^5.8.3","@types/node":"^24.0.7","onnxruntime-web":"^1.22.0","onnxruntime-node":"1.22.0-rev","rollup-plugin-dts":"^6.2.1","@rollup/plugin-json":"^6.1.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.5.0","@rollup/plugin-typescript":"^12.1.3"},"_npmOperationalInternal":{"tmp":"tmp/paddleocr_1.0.2_1751438961525_0.24913181068291657","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"paddleocr","version":"1.0.3","keywords":["ocr"],"author":{"name":"x3zvawq"},"license":"MIT","_id":"paddleocr@1.0.3","maintainers":[{"name":"x3zvawq","email":"x3zvawq@gmail.com"}],"homepage":"https://github.com/X3ZvaWQ/paddleocr.js#readme","bugs":{"url":"https://github.com/X3ZvaWQ/paddleocr.js/issues"},"dist":{"shasum":"20d1cd24375a6995071cd517747ceb4ed60e9e79","tarball":"https://registry.npmjs.org/paddleocr/-/paddleocr-1.0.3.tgz","fileCount":24,"integrity":"sha512-vMcUGbBkZ5NDfiCfoetcPXtJu+FhGKJ+hVjGO8IlVq2p/e3q7MxSFNKjv8M9igkZMcUt339FO1SbsfI5wWjJ7A==","signatures":[{"sig":"MEYCIQDKeWCpoa5FANE33MMXfyLCX1mDTLJb43cEl+zDfcjVDwIhAIVvKsiMxlQnH4dvjkLZ1DeqN2l24TD+EFLv/EoJAPdu","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88026},"main":"dist/index.js","type":"module","gitHead":"62942173c723d93119bea3032e34e54270e27b90","scripts":{"lint":"prettier --write .","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"x3zvawq","actor":{"name":"x3zvawq","type":"user","email":"x3zvawq@gmail.com"},"email":"x3zvawq@gmail.com"},"repository":{"url":"git+https://github.com/X3ZvaWQ/paddleocr.js.git","type":"git"},"_npmVersion":"10.8.2","description":"A cross-platform OCR library based on PaddleOCR v5 and ONNX Runtime that is as small as possible.","directories":{},"_nodeVersion":"20.19.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","eslint":"^9.29.0","rollup":"^4.44.0","fast-png":"^7.0.0","prettier":"^3.5.3","typescript":"^5.8.3","@types/node":"^24.0.7","onnxruntime-web":"^1.22.0","onnxruntime-node":"1.22.0-rev","rollup-plugin-dts":"^6.2.1","@rollup/plugin-json":"^6.1.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.5.0","@rollup/plugin-typescript":"^12.1.3"},"_npmOperationalInternal":{"tmp":"tmp/paddleocr_1.0.3_1751439786645_0.45671258742126986","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"paddleocr","version":"1.0.4","keywords":["ocr"],"author":{"name":"x3zvawq"},"license":"MIT","_id":"paddleocr@1.0.4","maintainers":[{"name":"x3zvawq","email":"x3zvawq@gmail.com"}],"homepage":"https://github.com/X3ZvaWQ/paddleocr.js#readme","bugs":{"url":"https://github.com/X3ZvaWQ/paddleocr.js/issues"},"dist":{"shasum":"487247140e855c5ffa075dd3474d0022fc445be3","tarball":"https://registry.npmjs.org/paddleocr/-/paddleocr-1.0.4.tgz","fileCount":25,"integrity":"sha512-XhNQC+HrvclhOHU9ggSj5WcTg6GOKHfzjJLcW7Sx2SZw/9bznTa+MKvPbtfLPX/aO70BCj+s9uylec/XbSMQxw==","signatures":[{"sig":"MEUCIQCggcQQNFQjXn7S/A2AM9f5ZJZ9a25PSmQPu6zaqKnoPQIgL9eKXn+jsPVA6IdOs14lDIohReoJi76Qdeqito1P6Ck=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":117245},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"7a541c65b8e030a0cf484a249aa67dc9c3660a64","scripts":{"lint":"prettier --write .","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"x3zvawq","actor":{"name":"x3zvawq","type":"user","email":"x3zvawq@gmail.com"},"email":"x3zvawq@gmail.com"},"repository":{"url":"git+https://github.com/X3ZvaWQ/paddleocr.js.git","type":"git"},"_npmVersion":"10.8.2","description":"A cross-platform OCR library based on PaddleOCR v5 and ONNX Runtime that is as small as possible.","directories":{},"_nodeVersion":"20.19.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","eslint":"^9.29.0","rollup":"^4.44.0","fast-png":"^7.0.0","prettier":"^3.5.3","typescript":"^5.8.3","@types/node":"^24.0.7","onnxruntime-web":"^1.22.0","onnxruntime-node":"1.22.0-rev","rollup-plugin-dts":"^6.2.1","@rollup/plugin-json":"^6.1.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.5.0","@rollup/plugin-typescript":"^12.1.3"},"_npmOperationalInternal":{"tmp":"tmp/paddleocr_1.0.4_1751440060916_0.35452767831019116","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"paddleocr","version":"1.0.5","keywords":["ocr"],"author":{"name":"x3zvawq"},"license":"MIT","_id":"paddleocr@1.0.5","maintainers":[{"name":"x3zvawq","email":"x3zvawq@gmail.com"}],"homepage":"https://github.com/X3ZvaWQ/paddleocr.js#readme","bugs":{"url":"https://github.com/X3ZvaWQ/paddleocr.js/issues"},"dist":{"shasum":"7f972be27827e53755e70f8f92db4038df391fd4","tarball":"https://registry.npmjs.org/paddleocr/-/paddleocr-1.0.5.tgz","fileCount":25,"integrity":"sha512-OlDq6IGmxYqZBV9l+bltM26+cDwytQj0iE52j+WJ4sW2lziuc0mDEXiEgzA3bw8Sw6gajO8wZhhAhnN3MIKeJA==","signatures":[{"sig":"MEUCIQC/VNaU6plVOzA1B5H42FFVM4gt8BPTAzOxKb6x7kdyCAIgSP7XAGydnY/HNToOzquo2H9M/TGASpde0SzHhBEfU8s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":117565},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"59cb9f2734f51df12e792d98b52ea40ee1889896","scripts":{"lint":"prettier --write .","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"x3zvawq","actor":{"name":"x3zvawq","type":"user","email":"x3zvawq@gmail.com"},"email":"x3zvawq@gmail.com"},"repository":{"url":"git+https://github.com/X3ZvaWQ/paddleocr.js.git","type":"git"},"_npmVersion":"10.8.2","description":"A cross-platform OCR library based on PaddleOCR v5 and ONNX Runtime that is as small as possible.","directories":{},"_nodeVersion":"20.19.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","eslint":"^9.29.0","rollup":"^4.44.0","fast-png":"^7.0.0","prettier":"^3.5.3","typescript":"^5.8.3","@types/node":"^24.0.7","onnxruntime-web":"^1.22.0","onnxruntime-node":"1.22.0-rev","rollup-plugin-dts":"^6.2.1","@rollup/plugin-json":"^6.1.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.5.0","@rollup/plugin-typescript":"^12.1.3"},"_npmOperationalInternal":{"tmp":"tmp/paddleocr_1.0.5_1751442098552_0.6989932316910259","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"paddleocr","version":"1.0.6","keywords":["ocr"],"author":{"name":"x3zvawq"},"license":"MIT","_id":"paddleocr@1.0.6","maintainers":[{"name":"x3zvawq","email":"x3zvawq@gmail.com"}],"homepage":"https://github.com/X3ZvaWQ/paddleocr.js#readme","bugs":{"url":"https://github.com/X3ZvaWQ/paddleocr.js/issues"},"dist":{"shasum":"bfc33dbefc23682cd95bd7e97ee036dfe7cd8414","tarball":"https://registry.npmjs.org/paddleocr/-/paddleocr-1.0.6.tgz","fileCount":25,"integrity":"sha512-UiKabLKGtJT1UuK02d2buqVlMQGDzwf5Io4+qr6XVeagMkHMzbjhbzKV2WxAyChtGHovIhNGVvFy5wflChKYIA==","signatures":[{"sig":"MEUCIEBLDz4K8EjKfh92+Ixosa+Df9V33EPZNylEgLJFf5i/AiEA1moUJy9uoLthEmZDZzXbyYzgsqvl1yUj5sDyou2VKi0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":117298},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"7e0e288c860920c3160cc82f5683066308e7db63","scripts":{"lint":"prettier --write .","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"x3zvawq","actor":{"name":"x3zvawq","type":"user","email":"x3zvawq@gmail.com"},"email":"x3zvawq@gmail.com"},"repository":{"url":"git+https://github.com/X3ZvaWQ/paddleocr.js.git","type":"git"},"_npmVersion":"10.8.2","description":"A cross-platform OCR library based on PaddleOCR v5 and ONNX Runtime that is as small as possible.","directories":{},"_nodeVersion":"20.19.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","eslint":"^9.29.0","rollup":"^4.44.0","fast-png":"^7.0.0","prettier":"^3.5.3","typescript":"^5.8.3","@types/node":"^24.0.7","onnxruntime-web":"^1.22.0","onnxruntime-node":"1.22.0-rev","rollup-plugin-dts":"^6.2.1","@rollup/plugin-json":"^6.1.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.5.0","@rollup/plugin-typescript":"^12.1.3"},"_npmOperationalInternal":{"tmp":"tmp/paddleocr_1.0.6_1751442427522_0.23408772732918748","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"paddleocr","version":"1.0.7","keywords":["ocr"],"author":{"name":"x3zvawq"},"license":"MIT","_id":"paddleocr@1.0.7","maintainers":[{"name":"x3zvawq","email":"x3zvawq@gmail.com"}],"homepage":"https://github.com/X3ZvaWQ/paddleocr.js#readme","bugs":{"url":"https://github.com/X3ZvaWQ/paddleocr.js/issues"},"dist":{"shasum":"c3e99fb31c4d8ede4262c059f6ce16f5e17babf7","tarball":"https://registry.npmjs.org/paddleocr/-/paddleocr-1.0.7.tgz","fileCount":25,"integrity":"sha512-9lF4qhAEiQ7dC1rxujwGhKDJ1pvLQg/CNYV31XzaqWLBC7NJyaA3AsVetKOcacU+FVC68mW/hdHbljloVhZcDA==","signatures":[{"sig":"MEUCIGhi4pHtl0T52bOk9vzAPWs6H23hUGSSluCSXHWpCfSiAiEAgaoNkptF6Y5jr+nwToIDe9XhEZScp7dYFIpsbEtF/fY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":117978},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"5436424514022ddf1d6a91dd4c549fb909beae7c","scripts":{"lint":"prettier --write .","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"x3zvawq","email":"x3zvawq@gmail.com"},"repository":{"url":"git+https://github.com/X3ZvaWQ/paddleocr.js.git","type":"git"},"_npmVersion":"10.8.2","description":"A cross-platform OCR library based on PaddleOCR v5 and ONNX Runtime that is as small as possible.","directories":{},"_nodeVersion":"20.19.6","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","eslint":"^9.29.0","rollup":"^4.44.0","fast-png":"^7.0.0","prettier":"^3.5.3","typescript":"^5.8.3","@types/node":"^24.0.7","onnxruntime-web":"^1.22.0","onnxruntime-node":"1.22.0-rev","rollup-plugin-dts":"^6.2.1","@rollup/plugin-json":"^6.1.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.5.0","@rollup/plugin-typescript":"^12.1.3"},"_npmOperationalInternal":{"tmp":"tmp/paddleocr_1.0.7_1768375921212_0.38236777571351954","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"paddleocr","version":"1.1.0","keywords":["ocr"],"author":{"name":"x3zvawq"},"license":"MIT","_id":"paddleocr@1.1.0","maintainers":[{"name":"x3zvawq","email":"x3zvawq@gmail.com"}],"homepage":"https://github.com/X3ZvaWQ/paddleocr.js#readme","bugs":{"url":"https://github.com/X3ZvaWQ/paddleocr.js/issues"},"dist":{"shasum":"fcff6abceba77529518897ae5c8080e504cfb8b7","tarball":"https://registry.npmjs.org/paddleocr/-/paddleocr-1.1.0.tgz","fileCount":24,"integrity":"sha512-PhxOC68fhAY7uIk9knaE2Rv0Hey17Fkal0o+oA2VyrNfbeJi8tyu54QwCq3uaePP/w8Fp2uYDrZTIwbTfd6fcg==","signatures":[{"sig":"MEQCIDOXe+hexAV8TIVK2YqLbMe1DSNLqD1MrTh2S2sD+ehdAiBfuC5pahaPWZJWoMiT9NytHFHzktyWPytUdbV1SU5l4Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":264531},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"9bc5763e9214813704de05d72975135c986c6498","scripts":{"lint":"biome check .","test":"bun test","build":"tsdown","start":"tsdown --watch","format":"biome format --write .","lint:fix":"biome check --write .","test:node":"node --experimental-strip-types --test test/progress.test.ts"},"_npmUser":{"name":"x3zvawq","email":"x3zvawq@gmail.com"},"repository":{"url":"git+https://github.com/X3ZvaWQ/paddleocr.js.git","type":"git"},"_npmVersion":"10.8.2","description":"A cross-platform OCR library based on PaddleOCR v5 and ONNX Runtime that is as small as possible.","directories":{},"_nodeVersion":"20.20.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.21.2","fast-png":"^7.0.0","typescript":"^5.9.3","@types/node":"^24.0.7","@biomejs/biome":"^2.4.7","onnxruntime-web":"^1.22.0","onnxruntime-node":"1.22.0-rev"},"_npmOperationalInternal":{"tmp":"tmp/paddleocr_1.1.0_1773757589740_0.9111053283528621","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"paddleocr","version":"1.1.1","keywords":["ocr"],"author":{"name":"x3zvawq"},"license":"MIT","_id":"paddleocr@1.1.1","maintainers":[{"name":"x3zvawq","email":"x3zvawq@gmail.com"}],"homepage":"https://github.com/X3ZvaWQ/paddleocr.js#readme","bugs":{"url":"https://github.com/X3ZvaWQ/paddleocr.js/issues"},"dist":{"shasum":"acf66bc7b0b23dcf9db29d7742e00a25b45c2f3e","tarball":"https://registry.npmjs.org/paddleocr/-/paddleocr-1.1.1.tgz","fileCount":24,"integrity":"sha512-fRSOaGUMOOiSmxjc+dH+y/aOPgJzfuDpfTb1HplmMpVq3dMmaNDS3xR8FcVfTFOqfBFUGa3+u/cWeHiQvL1scw==","signatures":[{"sig":"MEQCIBU3nkP+q5QArm/xWNEh/mjQnmt8woETrpAZ6kzdW/mqAiBxPgVZZXYVbjSA39DkR9+KcdTIlc9cS5kiuuKmsPrITw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":301912},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"0e369855336cbee22be7fddb7e397aa0606027af","scripts":{"lint":"biome check .","test":"bun test","build":"tsdown","start":"tsdown --watch","format":"biome format --write .","lint:fix":"biome check --write .","test:node":"node --experimental-strip-types --test test/progress.test.ts"},"_npmUser":{"name":"x3zvawq","email":"x3zvawq@gmail.com"},"repository":{"url":"git+https://github.com/X3ZvaWQ/paddleocr.js.git","type":"git"},"_npmVersion":"10.8.2","description":"A cross-platform OCR library based on PaddleOCR v5 and ONNX Runtime that is as small as possible.","directories":{},"_nodeVersion":"20.20.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.21.2","fast-png":"^7.0.0","typescript":"^5.9.3","@types/node":"^24.0.7","@biomejs/biome":"^2.4.7","onnxruntime-web":"^1.22.0","onnxruntime-node":"1.22.0-rev"},"_npmOperationalInternal":{"tmp":"tmp/paddleocr_1.1.1_1773798563012_0.8284014833317932","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"paddleocr","version":"1.2.0","keywords":["ocr"],"author":{"name":"x3zvawq"},"license":"MIT","_id":"paddleocr@1.2.0","maintainers":[{"name":"x3zvawq","email":"x3zvawq@gmail.com"}],"homepage":"https://github.com/x3zvawq/paddleocr.js#readme","bugs":{"url":"https://github.com/x3zvawq/paddleocr.js/issues"},"dist":{"shasum":"ab01243c6a2b6dda95bbefbd4ac1576b6d03d347","tarball":"https://registry.npmjs.org/paddleocr/-/paddleocr-1.2.0.tgz","fileCount":75,"integrity":"sha512-+ASlmoxGM8u5X68ote31NVNPPavbeKT8vomiKwqje+54ufPflTtlV8dZzRMnSPX8jJeWRms88B95uk1ReS+0iA==","signatures":[{"sig":"MEYCIQDWP9Az/VlQAQUiSykEEIY2S+xfxKhzvlrdfC9W8hZJQQIhANzf4Kbp8rIXGlbzNDEig7/3KujcLTJuu7kdBKPttKIP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/paddleocr@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1991545},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"bb22fe768879ae9d779afe99f018f4f860cceaf6","scripts":{"lint":"biome check .","test":"bun test","build":"tsdown","start":"tsdown --watch","format":"biome format --write .","lint:fix":"biome check --write ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b95256d7-40ed-4bfa-9228-1f29c574e219"}},"repository":{"url":"git+https://github.com/x3zvawq/paddleocr.js.git","type":"git"},"_npmVersion":"11.16.0","description":"A cross-platform OCR library based on PaddleOCR v5 and ONNX Runtime that is as small as possible.","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.21.2","fast-png":"^7.0.0","typescript":"^5.9.3","@types/node":"^24.13.2","@biomejs/biome":"^2.4.7","onnxruntime-web":"^1.22.0","onnxruntime-node":"1.22.0-rev"},"_npmOperationalInternal":{"tmp":"tmp/paddleocr_1.2.0_1783059884340_0.46466799719599217","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"_id":"paddleocr@1.2.1","bugs":{"url":"https://github.com/x3zvawq/paddleocr.js/issues"},"dist":{"shasum":"0a0096f27aa49a5d012de8643e6c243ddee9e85b","tarball":"https://registry.npmjs.org/paddleocr/-/paddleocr-1.2.1.tgz","fileCount":79,"integrity":"sha512-3XIFEv7A9cPOyyAoPqoj3JqP7SMPgo90J70Aprmy2zvEi6l/YUsZKmc2X7dKwyo4i4XfNfCvGoy+2ZjyGpeRjQ==","signatures":[{"sig":"MEQCIEhs7/FBs1u83UcTrvfalereYDU+0vb5gkBIZuVKKGhwAiAMbym2kZ2fxGvhCrzf0xdefQ6V+wdu/HRjbSwH45RlCQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAc0dVaHb+TOvPTr1Kvc2hDkovBbfsPiMT6c8+HM35RsAiBQYiOu+HM350/RfreQVdjwB24ZqAqxklfll9+hCftiRQ=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/paddleocr@1.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2035377},"main":"./dist/index.cjs","name":"paddleocr","type":"module","types":"./dist/index.d.mts","author":{"name":"x3zvawq"},"module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"bbaf9f4332527aa53d49a0bbc04a8a126712c34c","license":"MIT","scripts":{"lint":"biome check .","test":"bun test","build":"tsdown","start":"tsdown --watch","format":"biome format --write .","lint:fix":"biome check --write ."},"version":"1.2.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"b95256d7-40ed-4bfa-9228-1f29c574e219"}},"homepage":"https://github.com/x3zvawq/paddleocr.js#readme","keywords":["ocr"],"repository":{"url":"git+https://github.com/x3zvawq/paddleocr.js.git","type":"git"},"_npmVersion":"11.19.1","description":"A cross-platform OCR library based on PaddleOCR v5 and ONNX Runtime that is as small as possible.","directories":{},"maintainers":[{"name":"x3zvawq","email":"x3zvawq@gmail.com"}],"_nodeVersion":"24.22.2","_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.21.2","fast-png":"^7.0.0","typescript":"^5.9.3","@types/node":"^24.13.2","@biomejs/biome":"^2.4.7","onnxruntime-web":"^1.22.0","onnxruntime-node":"1.22.0-rev"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/paddleocr_1.2.1_1794099938642_0.049931299274315166"}}},"time":{"created":"2025-07-02T02:28:22.972Z","modified":"2026-11-08T01:05:39.141Z","1.0.0":"2025-07-02T02:28:23.158Z","1.0.1":"2025-07-02T03:54:33.606Z","1.0.2":"2025-07-02T06:49:21.702Z","1.0.3":"2025-07-02T07:03:06.828Z","1.0.4":"2025-07-02T07:07:41.078Z","1.0.5":"2025-07-02T07:41:38.728Z","1.0.6":"2025-07-02T07:47:07.684Z","1.0.7":"2026-01-14T07:32:01.353Z","1.1.0":"2026-03-17T14:26:29.875Z","1.1.1":"2026-03-18T01:49:23.212Z","1.2.0":"2026-07-03T06:24:44.504Z","1.2.1":"2026-11-08T01:05:38.767Z"},"bugs":{"url":"https://github.com/x3zvawq/paddleocr.js/issues"},"author":{"name":"x3zvawq"},"license":"MIT","homepage":"https://github.com/x3zvawq/paddleocr.js#readme","keywords":["ocr"],"repository":{"url":"git+https://github.com/x3zvawq/paddleocr.js.git","type":"git"},"description":"A cross-platform OCR library based on PaddleOCR v5 and ONNX Runtime that is as small as possible.","maintainers":[{"name":"x3zvawq","email":"x3zvawq@gmail.com"}],"readme":"# paddleocr.js\n\n[中文文档](./README_zh.md)\n\nA lightweight TypeScript runtime for PaddleOCR / PaddleX ONNX inference.\n\nThe library focuses on the inference chain: preprocessing, ONNX Runtime calls,\npostprocessing, presets, and high-level pipelines. It does not ship image decoders,\nOpenCV, pyclipper, or model binaries. Your application loads the pixels and model\nfiles, then passes them into this runtime.\n\n## What It Supports\n\n| Area | User-facing API |\n| --- | --- |\n| OCR det + textline orientation + rec | `PaddleOcrService` |\n| Table Recognition V2 | `TableRecognitionV2Service` |\n| PP-Structure-like document parsing | `PaddleStructureService` |\n| Text detection / recognition modules | `DetectionService`, `RecognitionService` |\n| Document / textline / table classification | `ImageClassificationService` |\n| Layout / region / table-cell object detection | `ObjectDetectionService` |\n| Table structure recognition | `TableStructureRecognitionService` |\n| Formula recognition | `FormulaRecognitionService` |\n| Text image unwarping | `TextImageUnwarpingService` |\n\nPreset coverage includes PP-OCRv5 and PP-OCRv6 OCR models, document orientation,\ntextline orientation, table classification, UVDoc, PP-DocBlockLayout,\nPP-DocLayout, SLANet, SLANeXt wired/wireless, RT-DETR table cell detectors, and\nPP-FormulaNet families.\n\n## Install\n\nInstall the runtime plus the ONNX Runtime backend you want to use:\n\n```sh\nnpm install paddleocr onnxruntime-node\n# or, for browser apps\nnpm install paddleocr onnxruntime-web\n```\n\n`onnxruntime-node` / `onnxruntime-web` are supplied by your application so the same\nruntime can work in Node.js, Bun, and browsers.\n\n## Models\n\nModel binaries are not included in this source repository or the npm package.\n\nDownload official ONNX models from PaddlePaddle's Hugging Face repositories when\nthey exist. When official ONNX assets are not available, use the converted and\nlocally verified assets from\n[`x3zvawq/paddleocr-js-onnx`](https://huggingface.co/x3zvawq/paddleocr-js-onnx).\n\nThe runtime does not read from a fixed model directory. Your application only\nneeds to load ONNX models as `ArrayBuffer`s, load OCR dictionaries, labels, or\nformula tokenizers as data, then pass them to the service or module APIs.\n\n## Quick OCR Example\n\nThis example assumes your application has already decoded an image into\n`{ width, height, data }`, where `data` is grayscale, RGB, or RGBA pixels.\n\n```ts\nimport { readFile } from \"node:fs/promises\";\nimport * as ort from \"onnxruntime-node\";\nimport { PaddleOcrService, parseRecognitionDictionary } from \"paddleocr\";\n\nfunction toArrayBuffer(buffer: Buffer): ArrayBuffer {\n    return buffer.buffer.slice(\n        buffer.byteOffset,\n        buffer.byteOffset + buffer.byteLength\n    ) as ArrayBuffer;\n}\n\nconst [detModel, recModel, textlineModel, dictText] = await Promise.all([\n    readFile(\"paddleocr-js-onnx/ppocr_v6_small/PP-OCRv6_small_det_infer.onnx\"),\n    readFile(\"paddleocr-js-onnx/ppocr_v6_small/PP-OCRv6_small_rec_infer.onnx\"),\n    readFile(\n        \"paddleocr-js-onnx/pp_lcnet_x0_25_textline_ori/PP-LCNet_x0_25_textline_ori_infer.onnx\"\n    ),\n    readFile(\"paddleocr-js-onnx/ppocr_v6_small/ppocrv6_dict.txt\", \"utf-8\"),\n]);\n\nconst ocr = await PaddleOcrService.createInstance({\n    ort,\n    modelPreset: \"PP-OCRv6_small\",\n    detection: {\n        modelBuffer: toArrayBuffer(detModel),\n    },\n    recognition: {\n        modelBuffer: toArrayBuffer(recModel),\n        charactersDictionary: parseRecognitionDictionary(dictText),\n    },\n    textlineOrientation: {\n        modelBuffer: toArrayBuffer(textlineModel),\n        threshold: 0.9,\n    },\n});\n\nconst results = await ocr.recognize(inputPixels, {\n    onProgress(event) {\n        console.log(event.type, event.stage, event.progress);\n    },\n});\n\nconst text = ocr.processRecognition(results).text;\nconsole.log(text);\n```\n\n`parseRecognitionDictionary()` is an optional helper that preserves literal spaces\nand an optional leading CTC blank entry while removing the file's final newline.\n`recognition.charactersDictionary` still accepts your own `string[]`. Recognition presets enable\n`useSpaceChar`: the runtime appends a missing terminal space only when the model's\nclass count requires exactly one more entry. Already prepared dictionaries are\naccepted unchanged. Extra entries and empty strings retain their previous decoding\nbehavior: unused entries are ignored, and empty strings produce no text. A dictionary\nthat is still too short throws. Without a preset, set `recognition.useSpaceChar: true`\nfor models that use this rule. The runtime never loads dictionary files automatically.\n\nAll three pipeline services expose `destroy()`. Await pending work before calling it;\nrepeated calls share the same cleanup. Factory-created models are released together,\nincluding textline orientation and nested OCR services. Failed initialization releases\nmodels already created. Services supplied to pipeline constructors remain caller-owned;\nrelease their ONNX sessions yourself. OCR supports repeated `initialize()` calls,\nincluding after failure or `destroy()`; each call releases previously owned models\nbefore loading replacements. Initialization and destruction are serialized. Table and\nstructure pipelines should be recreated after destruction.\n\n## Input Pixels\n\nRuntime APIs accept caller-owned pixels:\n\n```ts\ninterface ImageInput {\n    width: number;\n    height: number;\n    data: Uint8Array;\n}\n```\n\n`data` may be grayscale, RGB, or RGBA. The runtime normalizes it to RGB and\nignores alpha. Decode PNG/JPEG/PDF pages in your application with the library that\nfits your stack.\n\n## Examples\n\nSee [`examples/README.md`](./examples/README.md) for runnable module and pipeline\nexamples. The result images are generated from real ONNX inference and are meant\nto show what each module returns.\n\n| Pipeline | Result |\n| --- | --- |\n| OCR | ![OCR example](./examples/result/pipeline-ocr.png) |\n| Table Recognition V2 | ![Table Recognition V2 example](./examples/result/pipeline-table-recognition-v2.png) |\n| PP-Structure-like parsing | ![PP-Structure example](./examples/result/pipeline-pp-structure.png) |\n\n## Progress Events\n\nOCR services can report progress during detection and recognition:\n\n```ts\nawait ocr.recognize(inputPixels, {\n    onProgress(event) {\n        if (event.type === \"det\") {\n            console.log(event.stage, event.detectedCount);\n        }\n        if (event.type === \"rec\" && event.stage === \"item\") {\n            console.log(event.result?.text);\n        }\n    },\n});\n```\n\nEvent contract:\n\n- `det`: `preprocess`, `infer`, `postprocess`\n- `rec`: `start`, one `item` per detected text box, `complete`\n- `rec/item`: includes `result` and `box`\n- `det/postprocess`: includes `detectedCount`\n\n## Presets and Overrides\n\nThe high-level OCR preset names are:\n\n`PP-OCRv5`, `PP-OCRv5_mobile`, `PP-OCRv5_server`, `PP-OCRv6`,\n`PP-OCRv6_tiny`, `PP-OCRv6_small`, `PP-OCRv6_medium`.\n\nPresets configure channel order, resize behavior, normalization, DB\npostprocessing, and CTC output handling. You can still override detection,\nrecognition, ordering, and textline orientation options per call.\n\n```ts\nconst strictResults = await ocr.recognize(inputPixels, {\n    detection: {\n        textPixelThreshold: 0.3,\n        boxScoreThreshold: 0.6,\n        unclipRatio: 1.5,\n        limitType: \"max\",\n        maxSideLimit: 4000,\n    },\n    ordering: {\n        sortByReadingOrder: true,\n        sameLineThresholdRatio: 0.15,\n    },\n});\n```\n\n## Parity Notes\n\nThe runtime follows official PaddleOCR / PaddleX preprocessing and\npostprocessing at a high level, including OCR resize strategies, DB\npostprocess, CTC decode, textline orientation correction, layout/object NMS,\ntable structure decoding, formula token decoding, and UVDoc output decoding.\n\nSome operations are intentionally lightweight approximations instead of\nbit-exact OpenCV/pyclipper clones. For example, rotated OCR crops use a\nTypeScript perspective sampler, and table span recovery is a high-level\nTypeScript implementation. These choices keep the runtime small and portable.\n\n## Browser Notes\n\nBrowser applications usually load ONNX files with `fetch()` and pass\n`ArrayBuffer`s into `createInstance()`. A Vite example lives at\n[paddleocr-vite-example](https://github.com/X3ZvaWQ/paddleocr-vite-example).\n\n## License\n\nMIT\n","readmeFilename":"README.md"}