Skip to content

Dynamically generated stack overflow stats for your github readmes

License

Notifications You must be signed in to change notification settings

kubo550/stack-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is no longer maintained. Please use StackStats

stack stats logo

Stack Overflow Stats SVG Generator

Dynamically generated stack overflow stats for your github readmes

Stars Badge Forks Badge Pull Requests Badge Issues Badge GitHub contributors License Badge

Overview

stack stats  stack stats  stack stats  stack stats 

Temporary not working

How do I use it?

The only thing you need to do is to add the following code to your page:

![stack stats](https://stack-stats.herokuapp.com/stats?id=<id>)

Important note: the id is the id of the stack you want to display.

In my case, I have a stack with id 14513625.

![stack stats](https://stack-stats.herokuapp.com/stats?id=14513625)

Also, you can wrap the above in an anchor tag to make it easier to move on to your stack profile:

<a href="https://stack-stats.herokuapp.com/stats?id=14513625" target="_blank" rel="noopener noreferrer">
    <img src="https://stack-stats.herokuapp.com/stats?id=14513625" alt="stack stats" />&nbsp;
</a>
stack stats

Why my stats are not updating?

It is because GitHub uses a cache to store the data. The data is updated every 2 hours, but you can manually update the cache:

Only you need to do is to right-click on the svg and select copy link location then type this command:

$ curl -X PURGE https://camo.githubusercontent.com/4d04abe0044d94fefcf9af2133223....
> {"status": "ok", "id": "216-8675309-1008701"}

change the url to the one you want to purge.

Run it locally

To run it locally, you just need to run the following commands:

go run ./src/server.go 8080

Tech Stack

  • golang  v1.18

  • fiber  v2.32.0

  • gock  v1.0

  • stackexchange  API v2.3

  • heroku 

Releases

No releases published

Packages

No packages published

Languages