/so-stats

Show your Stack Overflow Stats on your GitHub profile.

Primary LanguageJavaScriptMIT LicenseMIT


So Stats

Generate your reputation info in Stack Overflow on your README profile

Issue . Feature . Blog . Medium

Table of contents

  1. Usage
  2. Optional
    1. Hide info
    2. Themes
    3. Random theme
    4. Locale
    5. Cache
  3. Deploy
  4. Contributors

Usage

Easy to use! Ctrl + C + Ctrl + V to paste into your readme profile editor.

  1. Find your Stack Overflow user id

  2. Change the ?user= value to your Stack Overflow user id.

[![My Stack Overflow Stats](https://so-stats.vercel.app/api?user=10389571)](https://github.com/kurt-liao/so-stats)

My Stack Overflow Stats

or

<a href="https://github.com/kurt-liao/so-stats">
  <img
    height="200"
    src="https://so-stats.vercel.app/api?user=10389571"
  />
</a>

Also you can see an example here

Optional

Hide info

You can pass a &hide= parameter with comma-seperated values.

&hide=title,logo,badges

![My Stack Overflow Stats](https://so-stats.vercel.app/api?user=10389571&hide=title,logo)

My Stack Overflow Stats

Themes

Finally, we have some inbuilt themes. Use &theme=THEME_NAME like:

![My Stack Overflow Stats](https://so-stats.vercel.app/api?user=10389571&theme=greenery)

Themes name we have: greenery, forest, malt, azure (Default theme don't need to assign).

All inbuilt themes

default greenery forest
Default Greenery Forest
malt azure witch
Malt Azure Witch

Random theme

You can pass a &random=true parameter to get different color style every time.

![My Stack Overflow Stats](https://so-stats.vercel.app/api?user=10389571&random=true)

My Stack Overflow Stats

Locale

Support multi-language, use &locale= to set the locale you want.

At this moment, we support en, cn, kr, zh-tw, nl, bn, de . Default language is en.

Use cache

You can pass a &cache=true parameter to set cache.

![My Stack Overflow Stats](https://so-stats.vercel.app/api?user=10389571&cache=true)

Deploy your own 🚀

Guide
  • Fork this repo

  • Sign up and log in into Vercel

  • Go to Vercel dashboard

  • Click New Project

  • Click Import Git Respository(Of course you need to authorize the repo first, then you can see the repo in the list) 2022-06-30_10-28

  • Click delpoy, and done. Find out your domain and start to use it!

  • Add following command to prevent deploying on irrelevant changes. 2022-06-30_10-17

Deploy with Vercel


Contributors

@see CONTRIBUTING