@qrcommunication/gigapdf-lib 0.110.1 → 0.110.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,27 @@ project adheres to [Semantic Versioning](https://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.110.2] - 2026-06-30
10
+
11
+ ### Added — `ocr_serve`: persistent host-side OCR microservice
12
+
13
+ - New `gigapdf-ocr-rten` binary **`ocr_serve`** + `OcrEngine::rec_names()`. It loads the
14
+ PaddleOCR-on-RTen models **once** at boot and serves recognition over a minimal local
15
+ HTTP/1.1 endpoint (zero web-framework dependency — `std::net` only): `GET /health`
16
+ (`{ok,recCount,languages}`) and `POST /ocr` (PNG body, optional `X-Ocr-Model` header for a
17
+ forced recognizer; auto per-line script selection otherwise) → NDJSON words in image pixel
18
+ space (`{text,x,y,w,h,confidence,model}`). This is the "host-side endpoint" the lean wasm
19
+ client calls — amortizing the multi-hundred-MB model load across requests instead of per call.
20
+ The `ocr_serve` binary and the assembled `.rten` model set are distributed as GitHub
21
+ **release assets** for host deployment (not part of the npm package).
22
+
23
+ ### Fixed — npm package no longer bundles the legacy `.gpocr` models
24
+
25
+ - `0.110.1` accidentally bundled the 22 legacy `.gpocr` OCR weights into the npm tarball. Those
26
+ belong to the **removed** client-side recognizer (≤0.63.x); `0.110.x` does OCR **host-side**
27
+ via `gigapdf-ocr-rten` (RTen `.rten` models), so the `.gpocr` files are dead weight in the
28
+ package. The release pipeline no longer fetches/bundles them — the npm package is lean again.
29
+
9
30
  ## [0.110.1] - 2026-06-30
10
31
 
11
32
  ### Fixed — releases now ship the OCR `.gpocr` models again
package/gigapdf.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrcommunication/gigapdf-lib",
3
- "version": "0.110.1",
3
+ "version": "0.110.2",
4
4
  "description": "TypeScript SDK for gigapdf-lib — a Rust→WASM document engine with no third-party PDF/Office/image library: read/edit/render, OCR, full-text search, AcroForm fields (read · fill · create), annotations, signing, encryption, PDF↔Office/HTML/RTF conversions, and a native HTML+CSS→PDF renderer with inline JavaScript (no headless browser). Cryptography uses audited RustCrypto; JavaScript uses the Boa engine; everything else is pure Rust. Single wasm-bindgen-free .wasm with one host import (entropy).",
5
5
  "license": "PolyForm-Noncommercial-1.0.0",
6
6
  "author": "Rony Licha / QR Communication",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file