klowner / tussle Goto Github PK
View Code? Open in Web Editor NEWTus daemon written in Typescript using a pluggable architecture
License: MIT License
Tus daemon written in Typescript using a pluggable architecture
License: MIT License
https://github.com/Klowner/tussle/tree/main/examples/cloudflare-worker-r2 works for upload but how does one suppose to reassemble the file for reading/processing/downloading ? Despite Readme stating that files are available for download after uploading, I could not find any meaningful way to do it. Thanks.
Looks like an unofficial crypto.DigestStream
has been added to the workers runtime. This should probably be utilized for chunk checksums on Cloudflare Workers environments.
https://community.cloudflare.com/t/possible-to-compute-sha256-hash-of-large-request-body/328318/5
Is it possible to publish the packages for tussle components on npm?
It seems this isn't handled currently. It would be nice to have this performed in core, but delegating the responsibility to the storage service and maybe formalizing the potential error responses is a better route.
I tried to play with the CF S3 example (using iDrive E2 storage as an S3 endpoint) and always end-up with the objects named 'files' in the root of the bucket. I am not sure what config is required beyond all of the access/secret/endpoint/etc things. For now I gave up since I did not want to spend digging through the layers of code to see where the problem is. If you have a complete working example that I could learn from, that would be great. Thanks.
Want to help increase Tussle's test coverage?
Integration and unit tests need to be written for a few components. As of writing, there are integration tests available for state
components (see packages/spec/src/stateTests.ts
), but storageTests.ts
and requestTests.ts
are pretty much empty.
Feel free to add anything that increases test coverage.
๐ฅณ
Right now the create handler returns a 400: Bad Request
if there's a write failure by the storage service.
Clients should not re-attempt requests that produce a 400, but in our case, the client should retry.
Consider responding to the client with a 500: Internal Server Error
or 503: Service Unavailable
.
(tus-js-client does not attempt to retry in the case of a 4xx response)
Hello
I want to get all file info from storage-r2
https://github.com/Klowner/tussle/blob/main/examples/cloudflare-worker-r2/src/worker.ts
How can I do this?
https://tus.io/protocols/resumable-upload.html#termination
Presently core advertises termination
capability but apparently I never implemented it in any of the storage services. After I implement dynamic storage service selection, the storage service itself should indicate whether it supports termination
or not.
The examples only demonstrate usage of cloudflare kv state store for b2. Wondering whether we could get benefitted with using worker KV state store or the default worker cache is sufficient?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.