ic-oss is a decentralized Object Storage Service on the Internet Computer.
@ldclabs/ic_oss_ts is the Typescript version of the client SDK for the ic-oss cluster.
Development
Use Node.js 20.19 or newer and the repository's npm workspace lockfile:
npm ci --ignore-scriptsnpm run typecheck --workspace=@ldclabs/ic_oss_tsnpm test --workspace=@ldclabs/ic_oss_ts
Uploader accepts native and polyfilled readable streams. On a failed chunk
upload it waits for calls already in flight before returning the resume state.
Pass that state's uploadedChunks to upload_chunks when resuming from the
beginning of the original file; the final hash covers the entire file, including
chunks that did not need to be sent again.