A queue-based file importer for hyperdrive archives that emits per-file and overall progress events. Version 2.1.0 is the latest stable release, with occasional maintenance updates. It wraps the hyperdrive API and uses progress-stream to provide granular write progress. Unlike manual streaming, it handles batching, queuing, and progress reporting out of the box. Ideal for building file upload UIs in browser or Node.js with Dat ecosystem.
npm install hyperdrive-import-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates queue import of two files into a hyperdrive archive with progress events.
Call drive.ready() before using hyperdriveImportQueue.
Attach progress listener only inside onFileWriteBegin.
Wrap callbacks in Promises if needed.
Set cwd to empty string for root or provide desired prefix.
Use import hyperdriveImportQueue from 'hyperdrive-import-queue' (default import).
Ensure drive is created with { latest: true } and drive.ready() resolved.Only use file.progressListener inside the onFileWriteBegin callback.