Browser-side search built on the laurus-wasm package
(Rust → WebAssembly). Each sample below boots the engine
directly from ../pkg/, persists data in OPFS, and
ships its own UI.
title:wasm, embedding:"…",
hybrid).
location:geo_bbox(...)) drawn from the
current map viewport with text and vector queries.
geo3d field type with
ECEF-based geo3d_bbox(...) and
geo3d_nearest(...) queries — true 3D,
including altitude.
Each sample loads ../pkg/laurus_wasm.js and
../pkg/opfs.js, so you have to build the WASM
package first. The browser also needs HTTP — opening the HTML
with file:// will not work.
cd laurus-wasm wasm-pack build --target web --dev ./scripts/postbuild.sh # Place the UniDic zip at examples/dict/lindera-unidic.zip # (the deploy workflow does this for the published demo). python3 -m http.server 8080 # Then open http://localhost:8080/examples/ in your browser.
Shared assets live in shared/ and are imported
by every sample with relative paths
(../shared/...). The UniDic zip is fetched from
../dict/lindera-unidic.zip so all samples share
a single OPFS-cached dictionary.