GithubHelp home page GithubHelp logo

caarlos0 / starcharts Goto Github PK

View Code? Open in Web Editor NEW
1.2K 8.0 124.0 560 KB

Plot your repository stars over time.

Home Page: https://starchart.cc

Go 84.09% CSS 10.39% JavaScript 5.52%
golang chart stargazers stars github-api

starcharts's Introduction

starcharts's People

Contributors

apghero avatar berabulut avatar caarlos0 avatar dependabot-preview[bot] avatar dependabot[bot] avatar evg4b avatar flatcap avatar github-actions[bot] avatar renovate[bot] avatar rfyiamcool avatar sfmqrb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

starcharts's Issues

Unable to run locally

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)

Repositories with `*.svg` can't be rendered

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.

idea: get at most last X data

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

Issue with big repos

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.

about data

thank you project
I want to know about how often star data is synchronized?

Adjust star data collection based on repo popularity

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.

api key donations

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

Support Dark Mode (Transparent SVG)

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 :)

Screen Shot 2022-06-27 at 2 46 32 PM

.

@nano2dev on Twitter.

Cheers.

new frontend

need to write a new frontend, handling errors properly et al.

hello

hi thank you projrct
i what know how time update?

Cumulative sum of stars of user

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.