@thogits/wasm
v0.2.0-platform.9
Published
WASM bindings for the Thogits local optimistic engine (Tsify types + sync engine)
Readme
thogits-local-wasm
Local state engine for thogits — compiles to WASM, manages optimistic updates and rollback.
Heads-up: dual-manifest layout
This directory has both a Cargo.toml and a package.json, but the
package.json here is not the consumable npm package. It is a
build-driver shim named thogits-local-wasm-build whose only job is to invoke
./build.sh.
The actual npm artifact that downstream packages (thogits-model,
thogits-web) import as thogits-local-wasm is generated into a sibling
directory:
packages/thogits-local-wasm-ts/That directory holds the wasm-pack output (wasm, JS glue, .d.ts)
and a package.json whose name is rewritten to thogits-local-wasm by
build.sh after wasm-pack regenerates it. All TS types crossing the
WASM boundary are emitted by Tsify directly into thogits_local_wasm.d.ts.
If you are looking for the consumable artifact, looking at imports of
thogits-local-wasm, or trying to publish the package — go to
packages/thogits-local-wasm-ts/. This directory is the Rust source that
produces it.
Build
pnpm --filter thogits-local-wasm-build build # dev (~5s)
pnpm --filter thogits-local-wasm-build build -- --release # release (~60s, runs wasm-opt)See build.sh and docs/system-design/deployment-and-build.md for
detail on the build pipeline and the type-generation chain.
