https://github.com/fent/node-streamit
https://github.com/fent/node-streamit
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fent/node-streamit
- Owner: fent
- License: mit
- Created: 2012-07-22T07:17:07.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2018-01-13T06:03:29.000Z (over 8 years ago)
- Last Synced: 2025-06-06T22:04:00.323Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Experimental streaming file server.
# Usage
To upstream a file
```sh
curl --upload-file myfile.gz streamit.jit.su/chooseApath
```
To downstream a file
```sh
curl streamit.jit.su/chooseApath > myfile.gz
```
Files are never stored on the server. When an upload attempt is made, the server waits until someone on the other end requests to download the file before beginning the upload. At which point, the file is streamed.
This service is meant to showcase the power of streams. A file can be immediately available for download as soon as it starts to be uploaded.
Even if the upload speed of the sender isn't as fast as that of the server's, the downloader will still receive the file faster this way rather than waiting for it to be fully uploaded and then begin downloading.
# License
MIT