Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server-side display of upload/download progress #1474

Open
ssokolow opened this issue Feb 9, 2025 · 1 comment
Open

Server-side display of upload/download progress #1474

ssokolow opened this issue Feb 9, 2025 · 1 comment

Comments

@ssokolow
Copy link

ssokolow commented Feb 9, 2025

When I'm using miniserve to exchange files with friends without going through some cloud service, it's very inconvenient that my best way to check if an upload is in progress is to mash F5 on the folder I'm sharing and check for changing file sizes, and my best way to check if a download is in progress is to fire up nethogs and check how much bandwidth miniserve is using.

It'd be very nice to have some kind of status indication in the terminal on the server side.

I can't currently make any promises about whether I'll get around to making a PR, given what a mess my other programming TODOs have been over the last few years, but the initial idea I have in case it inspires anyone else is basically:

  1. One progress bar per in-progress transfer in the terminal
  2. Progress bars color-coded to distinguish downloads from uploads
  3. Transfers below a certain size or completing in less than a certain amount of time are either omitted or collapsed into a single "other activity " spinner/throbber to avoid a wall of progress bars when rendering an HTML file with its subresources.
  4. Implemented using Indicatif
  5. Using indicatif-log-bridge to make it play nicely with existing use of log.
@svenstaro
Copy link
Owner

I think that would great actually!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants