r/rust • • 2d ago

Rust Git Tower

0 Upvotes

18 comments sorted by

5

u/QuasiRandomName 2d ago

Looks cool, but is it useful?

1

u/Knochenhauer-Puuh 1d ago

probably not for day-to-day debugging, though it can be neat for spotting where all the commit churn is clustered in a massive codebase

-3

u/Extension_Emu_9825 2d ago

It’s interactive right there in the browser: you can track which files were changed, when, and by whom and jump straight to them.

3

u/QuasiRandomName 2d ago

It doesn't look like the screenshot for me, just a plain cylinder. Maybe it is still loading something, but there is no indication.

2

u/LerkinAround 2d ago

Yeah, definitely does not look like the screenshot. Just a long cylinder for me too.

1

u/Extension_Emu_9825 2d ago

And even if you use a mouse and the buttons on the right, the idea is that the central line represents commits, while the branches represent files.

1

u/Extension_Emu_9825 2d ago

I tested it in Firefox, Chrome, and Edge; it works well even without a GitHub token. Which browser are you using? Here is a direct link to the default repository https://kirindenis.github.io/OWLOS-GIT-TOWER/

2

u/QuasiRandomName 2d ago

Yes, this one looks more interesting. I'm on Chrome fwiw

3

u/CalmCephalopod 2d ago

Doesn’t work. wants me to donate tokens or something.

0

u/Extension_Emu_9825 2d ago

You just need to provide a GitHub token and lift the restriction on accessing the repository. It’s stated right there in the instructions. The Rust repository contains over 300к commits.

2

u/CalmCephalopod 1d ago

Why does it need tokens to render the repository history?

0

u/Extension_Emu_9825 1d ago

It doesn't need a token. The page has no server of its own: your browser reads the history straight from the GitHub API. Without a token, GitHub allows 60 requests an hour from one address, and a big repository's history takes more than that. So the tower builds what fits in the hour (the newest commits and the versions) and carries on by itself when the hour resets, or the next time you open it. A token only raises that limit to 5000 requests an hour, so the whole history arrives at once. It stays in your browser and is sent only to api.github.com. Repositories in the showcase need no requests at all, because their history is built in advance.

1

u/Extension_Emu_9825 1h ago

https://www.youtube.com/watch?v=zcX-vXhiKwk the history of a repository as a tower of light

3

u/DavidXkL 1d ago

Might look good on a dashboard 😂

0

u/Extension_Emu_9825 2d ago

Thanks to everyone for the feedback; I’ll be making some improvements. Also, thanks for letting me know that the prompt asking for a GitHub token is off-putting. The Rust repository has 300,000 commits, and visualizing them requires going through every single one which would take a very long time unless you provide a token.