@haybarn/ext-a5-h1-5-6-wasm-threads
v202610.16.142157
Published
WebAssembly (threads) build of the Haybarn extension 'a5' for duckdb-wasm. Built against haybarn 1.5.6. Pick the variant (mvp/eh/threads) matching your duckdb-wasm bundle.
Maintainers
Readme
@haybarn/ext-a5-h1-5-6-wasm-threads
Part of
@haybarn/ext-a5-h1-5-6— thea5extension's parent package.
Haybarn is a derived distribution of DuckDB from Query.Farm: the same SQL, APIs and database files, with signed releases, rebuilt and signed extensions, engine improvements, and supply-chain review built in.
This is the WebAssembly (threads) build of the a5 extension, built against Haybarn 1.5.6 for use with Haybarn-Wasm / duckdb-wasm.
Source: https://github.com/query-farm/a5
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-a5-h1-5-6-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-a5-h1-5-6-wasm-threads/bin/a5.duckdb_extension.wasm?url';
const conn = await db.connect();
await conn.query(`INSTALL a5 FROM '${extUrl}'`);
await conn.query(`LOAD a5`);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-a5-h1-5-6.
Links
@haybarn/ext-a5-h1-5-6— the parent package for this extension- Haybarn — what Haybarn is and how to install it
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.
