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

Counting repos and forges #9

Open
MoralCode opened this issue Jul 14, 2022 · 0 comments
Open

Counting repos and forges #9

MoralCode opened this issue Jul 14, 2022 · 0 comments

Comments

@MoralCode
Copy link

I think having numbers for total repos/forges in the index and/or the number of repos/forges returned by a particular search would be helpful to add to starchart.
The main usecase for this would be to give users a some easy numbers to quote talk about when sharing the tool online or among friends, i.e. "starchart can search X repos across Y forges".

Total Repos/forges
this would mainly be a pulicity oriented thing that may be good to put on a homepage/splash page/about page to inform people of what marketing is.
It seems like the best way to accomplish this would be to do a COUNT over the database tables (or maybe some other more distributed way in case the DB gets REALLY big) and cache that somewhere in the database table every few hours/days/weeks/whatever is reasonable along with the "last recalculated" timestamp.

Repos/forges represented in a search
It also sounds like it might potentially be useful to return a count of repos/forges returned by a search. this number could be shown by starcharts own search tool as numbers visible between the search results and the search bar like google does:

Screenshot_20220714_073258

This might also be useful to expose to third party search tools using the starchart API so they can provide similar functionality

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

1 participant