awesome-github-stats icon indicating copy to clipboard operation
awesome-github-stats copied to clipboard

Ability for users to create their own end point

Open guylepage3 opened this issue 2 years ago • 6 comments

Is your feature request related to a problem? Please describe. Ability for users to create their own end point as this will allow for a better UX.

Describe the solution you'd like A node.js implementation similar to https://github.com/anuraghazra/github-readme-stats that could be deployable on https://vercel..com would be very helpful.

Additional context Your stats are by far the most accurate I've come across. Great work!

I am currently working on using my end point, https://awesome-github-stats.azurewebsites.net/user-stats/guylepage3/rank, in order to build out a different version of your readme.md stats. See example here: https://github.com/guylepage3.

I'd really like to get a more consistent version of these stats so that I can automate them. I feel by allowing users to create their own end points will allow for a much more cost efficient and better UX.

guylepage3 avatar Apr 03 '23 18:04 guylepage3

@guylepage3

As far as I can see, there is no way to deploy an asp.net core site to vercel. I really like vercel and how easy it can be, but I tried to find ways to do that without success and every docs says there are no support

brunobritodev avatar Apr 04 '23 15:04 brunobritodev

@brunobritodev, I was actually asking if there was a way to just create this in javascript instead of .net. But I guess that would be difficult if you're only a .net person.

guylepage3 avatar Apr 04 '23 19:04 guylepage3

@brunobritodev, your end point seems to be causing some CORS issues. Is there a way to expose your endpoints to be raw .json data?

guylepage3 avatar Apr 04 '23 19:04 guylepage3

@brunobritodev, your end point seems to be causing some CORS issues. Is there a way to expose your endpoints to be raw .json data?

The new version #31 are allowing cors from any origin.

@brunobritodev, I was actually asking if there was a way to just create this in javascript instead of .net. But I guess that would be difficult if you're only a .net person.

To create a version for nodejs isn't hard, but requires a lot of work and hard time on it. But I guess it requires less effort to make a dockerfile and publish it on dockerhub, so you can easily host it in another services, like Amazon ECS, AWS Fargate or Azure Container Instance.

brunobritodev avatar Apr 05 '23 04:04 brunobritodev

@brunobritodev at what time does the API end point update each day? It seems to be at 16:00:00 UTC. Can we change this to 12:00:00 UTC?

guylepage3 avatar Apr 09 '23 15:04 guylepage3

There is a 24-hour cache because the GitHub API is quite restrictive in the number of calls a token can make. Although the project is small, there is a considerable number of calls per day.

brunobritodev avatar Apr 23 '23 21:04 brunobritodev