Skip to content

KnlnKS/leetcode-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Readme Stats

Dynamically generated LeetCode stats for your readmes!

How To Use

Copy-paste this into your markdown content, and that's it. Simple! Change the ?username= value to your LeetCode username.

[![KnlnKS's LeetCode stats](https://leetcode-stats-six.vercel.app/?username=KnlnKS)](https://github.com/KnlnKS/leetcode-stats)

Which will appear as:

KnlnKS's LeetCode stats

Themes

You can customize your card with themes! There are currently 2 themes available. light (default) and dark. To use them, simply add &theme= to the end of the url with the theme you'd like to use. Ex.

[![KnlnKS's LeetCode stats](https://leetcode-stats-six.vercel.app/?username=KnlnKS&theme=dark)](https://github.com/KnlnKS/leetcode-stats)

Which will appear as:

KnlnKS's LeetCode stats

Themes

If you have an account on https://leetcode.cn/ (LeetCode China), you can add &cn or &CN to the end of the url to show your stats on LeetCode China. Ex.

[![KnlnKS's LeetCode stats](https://leetcode-stats-six.vercel.app/?username=KnlnKS&CN)](https://github.com/KnlnKS/leetcode-stats)

or

[![KnlnKS's LeetCode stats](https://leetcode-stats-six.vercel.app/?username=KnlnKS&cn)](https://github.com/KnlnKS/leetcode-stats)

GitHub Actions

If you don't want to rely on an external api for your LeetCode stats I have provided a solution via GitHub Actions. You can find it on the following branch: https://github.com/KnlnKS/leetcode-stats/tree/github-actions