Git Product home page Git Product logo

stack-stats's Introduction

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 

stack-stats's People

Contributors

kubo550 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.