A pure JavaScript client for the tus resumable upload protocol
open sourceMITfree
tus-js-client is a pure JavaScript client for tus, the open protocol for resumable file uploads over HTTP from the people behind Transloadit. An upload can be paused or cut off by a dropped connection and later resumed where it stopped, without sending the earlier data again: the client retries with configurable delays, finds earlier unfinished uploads and continues them, reports progress, and sends metadata such as the file name and type. It runs in browsers, Node.js, Deno, Bun, React Native and Apache Cordova, and speaks version 1.0.0 of the protocol to any tus server, such as the reference server tusd. Uppy uses tus for its resumable uploads.
Problems it solves
- large file uploads from my web app fail on flaky mobile connections and have to start again from zero
- let users pause a big upload and resume it later without re-sending what was already uploaded
- upload multi-gigabyte videos from the browser reliably
- resume an interrupted upload from a Node.js script
Features
- resumable uploads over the tus 1.0.0 protocol
- pause and resume an upload
- automatic retries with configurable delays
- finds and resumes earlier unfinished uploads
- progress events
- upload metadata such as file name and type
- runs in browsers, Node.js, Deno, Bun, React Native and Apache Cordova
Capabilities
| Has official SDKs | plan not known |
|---|