A prototype for storing a GBZ pangenome graph in an SQLite database, enabling interactive applications that need immediate access to parts of the graph without full in-memory loading. Currently at version 0.1.0-alpha.1, pre-stable. Key differentiators: uses SQLite for direct querying of graph slices, targets WASM for browser usage, and is intended to become an optional feature of GBWT-rs once stabilized. Released via npm as .wasm files, no JavaScript wrapper included.
npm install gbz-baseNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates loading query.wasm in the browser using dynamic import and browser-wasi-shim for WASI syscalls.
Pin to exact version and expect manual migration.
Use your own loader or wait for stable release with bundled JS.
Read the .wasm file from its actual path: require.resolve('gbz-base/target/wasm32-wasi/release/query.wasm')Use a WASI implementation like browser-wasi-shim or Node's built-in WASI (experimental).
Use dynamic import with full path if using Webpack: await import('gbz-base/query.wasm')Provide a valid wasi_snapshot_preview1 import object, e.g., from browser-wasi-shim.
Read the .wasm file with fs.readFileSync and compile it manually.
No dependency data recorded yet.