Poindexter ships a browser build compiled to WebAssembly along with a small JS loader and TypeScript types. This allows you to use the KD‑Tree functionality directly from web apps (Angular, React, Vue, plain ESM, etc.).
## What’s included
-`dist/poindexter.wasm` — the compiled Go WASM module
-`dist/wasm_exec.js` — Go’s runtime shim required to run WASM in the browser
-`npm/poindexter-wasm/loader.js` — ESM loader that instantiates the WASM and exposes a friendly API
-`npm/poindexter-wasm/index.d.ts` — TypeScript typings for the loader and KD‑Tree API
## Building locally
```bash
make wasm-build
```
This produces `dist/poindexter.wasm` and copies `wasm_exec.js` into `dist/` from your Go installation. If your environment is non‑standard, you can override the path:
```bash
WASM_EXEC=/custom/path/wasm_exec.js make wasm-build
```
To assemble the npm package folder with the built artifacts: