archlinux-de / pkgstats.archlinux.de

Arch Linux package statistics website
https://pkgstats.archlinux.de/
GNU General Public License v3.0
18 stars 5 forks source link

Plot multiple packages #107

Closed FranklinYu closed 5 months ago

FranklinYu commented 11 months ago

URL could be something like https://pkgstats.archlinux.de/packages/fish,zsh (comma-delimited list of packages), with some hard limit (e.g. 10 packages). It can be interesting to compare popularity of packages.

pierres commented 11 months ago

You can compare multiple packages by building an URL like https://pkgstats.archlinux.de/compare/packages#packages=fish,zsh It's not documented but does this fit what you were looking for?

FranklinYu commented 10 months ago

Yes, this is exactly what I was looking for. Any concern of documenting this? Or maybe even better, add a web form to generate this link?

m1rm commented 5 months ago

I am on it (a frontend form/something for this feature)

Update

I think the views are closely related so I moved the implementation to /packages

Todos:

First Draft

First draft if we integrate it into the /packages view is on branch allow-selection-of-packages-to-compare . I made a new route for local development, /compare/packages/custom (only for fast switching between old and new, if we chose this, the prod route would be /packages)

packageComparisonDesignDraft

The Graph is displayed in a new tab. If we go for this approach, we could add the selection of time range in the graph tab.

# Alternative Idea We could also separate the package popularity and the comparison. /packages would stay untouched and we could have a second page working roughly the same -> search, display results but without popularity, allow addition to packages to be compared but with the graph on the page + the graph instantly updating on package selection/deselection