@cognica-io/uqa-wasm
v0.3.8
Published
Browser bindings for embedded UQA WASM and local or Cloud HTTP SQL
Readme
UQA for Browser WebAssembly
@cognica-io/uqa-wasm provides the embedded UQA Engine and direct local or Cloud HTTP SQL for browser applications through WebAssembly.
The published WASM bundle includes the Lucene-compatible Nori dictionary and analyzer. Engine.sql can call list_analyzers() and analyze_text('nori', input) to return Korean token graphs, morphology, offsets, and positions.
Install
npm install @cognica-io/[email protected]Use
import { Engine, UQA } from "@cognica-io/uqa-wasm";
await UQA.load();
const engine = await Engine.open(`${UQA.persistDir}/notes.uqa`);
const result = await engine.sql("SELECT 1 AS n");
console.log(result.rows);
engine.close();See the UQA Engine manual for the complete Browser WASM binding contract.
For existing installations, read the 0.3.8 upgrade guide.
License
The package embeds the pinned Nori dictionary in uqa.wasm. THIRD-PARTY/ contains the complete Lucene, MeCab-ko-dic, and JDK Unicode notices, modification attribution, and original resource/model manifests. The manifests describe source resources; the dictionary requires no separate download.
UQA Engine is licensed under AGPL-3.0-only with optional FOSS and noncommercial application exceptions. See LICENSING.md in this package.
