(feat): Bandwidth Graph Overlay#38
Conversation
|
Unfortunately this is going to overlap too much with other elements upcoming, please ensure it is more self-contained, I would checkout PR #9 (its picture is old so you'll have to see it locally), and add a button using its elements next to it and using a more minimal popup |
|
I really love this. The latest version just added a terminal window at the bottom, so you would have to reposition the graph. Just an idea... maybe you can put it right under the debug elements. I wonder if it would look good about a quarter of the page's width long, instead of from edge to edge 🤔. It should resize dynamically for different screens. Also please edit |
I think it would also look really good at the bottom of the diagnostics modal too if we want a permanent addition! |
Add Bandwidth Graph Overlay
Screenshot for that sweet sweet dopamine

Because knowing that you're wasting bandwidth is almost as important as knowing you're wasting RAM.
This PR adds a live bandwidth graph overlay that tracks exactly how many kilobytes you're spending to maintain awareness of a number on a screen.
What's New:
The dashboard now includes a collapsible bandwidth graph at the bottom that displays your cumulative data usage in glorious real-time. It shows both Bandwidth In (data you've received from strangers on the internet) and Bandwidth Out (heartbeats you've graciously relayed to keep The Swarm alive).
Features:
Technical Details:
The graph uses HTML5 Canvas with proper Y-axis scaling and maintains up to 360 data points in memory (1 hour at 10-second intervals). When you exceed that, older data gets discarded because this is a P2P counter, not a time-series database.
No new dependencies. No breaking changes. Just more ways to observe your resource consumption.