Plot your repo stars over time!
go run main.go
Then browse http://localhost:3000/me/myrepo .
Example chart:
Plot your repository stars over time.
Home Page: https://starchart.cc
Plot your repo stars over time!
go run main.go
Then browse http://localhost:3000/me/myrepo .
Example chart:
I use your chart in this repository but I don't understand how can I update the image of it. I thought it was auto updating.
Thank you for any help.
Hi @caarlos0 ,
Hope you are all well !
I was wondering if we could integrate a github client managing multiple personal tokens.
It would be great for handling more repositories.
I found that package managing multiple tokens for saving dev time:
Ref: https://github.com/fengyfei/nuts/blob/master/github/client/client.go
Thanks for any insights or inputs on that.
Cheers,
X
This project is really great, I use it a lot! One question I had if you'd be interested in having a chart for a full org and/or multiple repositories in one chart? Happy to contribute
First off, thank you for making this awesome repo! It used to show a nice chart of the stargazers over time. But now it seems that every repo besides caarlos0/starcharts gets a "rate limited, please try again later" error.
For example: https://starchart.cc/aheze/SupportDocs
Installed 1.10.2
version for MacOS, ran go run main.go
and the following error.
main.go:8:2: cannot find package "github.com/apex/httplog" in any of:
/usr/local/go/src/github.com/apex/httplog (from $GOROOT)
/Users/prabhakar267/go/src/github.com/apex/httplog (from $GOPATH)
main.go:9:2: cannot find package "github.com/apex/log" in any of:
/usr/local/go/src/github.com/apex/log (from $GOROOT)
/Users/prabhakar267/go/src/github.com/apex/log (from $GOPATH)
main.go:10:2: cannot find package "github.com/apex/log/handlers/text" in any of:
/usr/local/go/src/github.com/apex/log/handlers/text (from $GOROOT)
/Users/prabhakar267/go/src/github.com/apex/log/handlers/text (from $GOPATH)
main.go:11:2: cannot find package "github.com/caarlos0/starcharts/config" in any of:
/usr/local/go/src/github.com/caarlos0/starcharts/config (from $GOROOT)
/Users/prabhakar267/go/src/github.com/caarlos0/starcharts/config (from $GOPATH)
main.go:12:2: cannot find package "github.com/caarlos0/starcharts/controller" in any of:
/usr/local/go/src/github.com/caarlos0/starcharts/controller (from $GOROOT)
/Users/prabhakar267/go/src/github.com/caarlos0/starcharts/controller (from $GOPATH)
main.go:13:2: cannot find package "github.com/caarlos0/starcharts/internal/cache" in any of:
/usr/local/go/src/github.com/caarlos0/starcharts/internal/cache (from $GOROOT)
/Users/prabhakar267/go/src/github.com/caarlos0/starcharts/internal/cache (from $GOPATH)
main.go:14:2: cannot find package "github.com/gorilla/handlers" in any of:
/usr/local/go/src/github.com/gorilla/handlers (from $GOROOT)
/Users/prabhakar267/go/src/github.com/gorilla/handlers (from $GOPATH)
main.go:15:2: cannot find package "github.com/gorilla/mux" in any of:
/usr/local/go/src/github.com/gorilla/mux (from $GOROOT)
/Users/prabhakar267/go/src/github.com/gorilla/mux (from $GOPATH)
Trying to render a repository ending with .svg
results in an error, example https://starchart.cc/adobe-webplatform/Snap.svg. An easy way would be to add a query param ?svg=true
or something similar, but this might break it for current repositories using it. If I open something like owner/repository.svg
, a request could be made to check if there is a repository owner/repository.svg
and if not, view the SVG image. Don't know if this is possible already, but you could evaluate the Accept
header to show the SVG if requesting it.
very big projects (e.g. 10k stars) will fail almost every time... maybe we should get only the last 10 pages or something like that
https://starcharts.herokuapp.com/facebook/react
returned
failed to get stargazers from github api: {
"documentation_url": "https://developer.github.com/v3/#abuse-rate-limits",
"message": "You have triggered an abuse detection mechanism. Please wait a few minutes before you try again."
}
Not sure if this is something that can be fixed or if it's just a limit when using the Github API.
thank you project
I want to know about how often star data is synchronized?
Testing on google/guava (38304 total stars) crashes and yields a "Please try again in a few minutes. This might not work for very famous repository" message.
I would recommend not collecting star count on a granular basis for very popular repositories. Instead, consider collecting weekly data. In the case of guava, which has existed for ~6 years, you'd have around 300 data points.
The chart displays one fewer star than expected for repositories with more than one star, but fewer than at most 290.
https://starchart.cc/itsnickbarry/fruit-salad
https://starchart.cc/rkalis/truffle-assertions
This seems like an off-by-one problem, but it doesn't appear to affect repositories with 1 star:
https://starchart.cc/itsnickbarry/endless-sky-flamethrower-turret
Ok, since rate limit is always hitting, even after the recent efforts using etag and more redis memory for caching... @ahmetb come with an idea of having a pool of api keys.
So, this is issue is where we're going to do so.
The API key needs no permissions, and if you want to help, you can share yours via email at carlos <at> becker.software
I'll implement the code to round-robin and mark keys as "bad" in the following days.
We can also come up with some way of saying "thanks" to the key donors either here in the repo or in the website, so if you want your name to show up, please let me know in the email as well.
If you are good with frontends, I really need some help doing a "makeover" of our current frontend as well :) #124
Hello, friend.
I'm this person.
I love starcharts. Use it lots. I don't have the time to provide a PR, but would love to encourage development of this specific Feature with another donation in Nano :)
The idea is easy to understand. Happy to provide further context.
Imagine this image, transparent and "bright" color graph lines :)
.@nano2dev on Twitter.
Cheers.
A project with long time range eg: https://starcharts.herokuapp.com/prometheus/prometheus, how can we see the latest year data?
Let's add cross-links? With https://stars.medv.io?
I will add links to your website on each page of it. You do the same?
need to write a new frontend, handling errors properly et al.
hi thank you projrct
i what know how time update?
I was using the chart here however something happened and the image does not render any more. ๐
Hello. Thank you for your awesome project.
Now, this just supports stars for individual repositories. Then, I'd like to have a chart that has the Cumulative sum of stars of individual users, not repository. Is it available?
Thank you in advance.
thanks
Hey there, I have just stumbled upon this wonderful project, and I think it would be nice to add support for changing colors using some extra URL parameters.
starchart.cc/caarlos0/starcharts.svg?background="dark"&axis="white"&line="blue"
can I compare 2 or more repositories?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.