@haybarn/ext-cozip-h1-5-3-wasm-threads
v202605.14.234733
Published
WebAssembly (threads) build of the Haybarn extension 'cozip' for duckdb-wasm. Built against haybarn 1.5.3. Pick the variant (mvp/eh/threads) matching your duckdb-wasm bundle.
Downloads
45
Maintainers
Readme
@haybarn/ext-cozip-h1-5-3-wasm-threads
WebAssembly (threads) build of the cozip extension, built against Haybarn 1.5.3 for use with duckdb-wasm.
Why this package
Lets you bundle / self-host / version-pin the wasm extension instead of fetching it from the Haybarn CDN at runtime — handy for offline, CSP-restricted, or air-gapped duckdb-wasm apps.
Pick the variant matching the duckdb-wasm bundle your app loads: mvp, eh, or threads.
Install
npm install @haybarn/ext-cozip-h1-5-3-wasm-threadsUse it (duckdb-wasm)
Resolve the bundled .wasm to a URL and point duckdb-wasm at it. With a bundler (Vite shown; webpack/esbuild use new URL(..., import.meta.url)):
import extUrl from '@haybarn/ext-cozip-h1-5-3-wasm-threads/bin/cozip.duckdb_extension.wasm?url';
const conn = await db.connect();
await conn.query(`INSTALL cozip FROM '${extUrl}'`);
await conn.query(`LOAD cozip`);Exact extension-loading API depends on your duckdb-wasm version; the key point is that
extUrlis a local, bundler-emitted asset, not a CDN fetch. See the duckdb-wasm docs.
For automatic, native (non-wasm) installs use the meta-package @haybarn/ext-cozip-h1-5-3.
Trademark
Haybarn is an independent derived distribution of DuckDB published by Query Farm LLC. Not affiliated with or endorsed by the DuckDB Foundation. DuckDB is a trademark of the DuckDB Foundation.
