Klowner / tussle

Tus daemon written in Typescript using a pluggable architecture
MIT License
37 stars 2 forks source link
backblaze-b2 cloudflare-workers file-upload file-uploads hacktoberfest middleware nodejs s3 storage tus tus-protocol tusd

Tussle

Tussle is a mostly spec-compliant server implementation of the tus upload protocol.

CircleCI Coverage Status

Component based

Tussle is implemented as a collection of interchangeable modular components, allowing the developer to choose which services that they'd like to integrate with. At the center of a Tussle instance is the Tussle Core, which handles all communication between individual components.

Components

Middleware

Middleware components handle communication between clients and the Tussle instance.

State

Tracking state is tricky and often your options are limited by your deployment environment. Tussle state components are modeled after the Web Storage API

Storage

Uploaded files have to be stored somewhere, that's the purpose of the storage components.

Request

The request component a responsible for creating outbound HTTP requests and -- when possible/appropriate -- transparently proxy upload payloads, which is determined by the storage component.

Support me

If you find this library useful, please consider buying me a coffee as a way of showing your support! "Buy Me A Coffee"