Show your dynamically generated LeetCode stats on your GitHub profile or your website!
LeetCode and LeetCode CN are both supported.
- 📈 Clean and simple LeetCode stats, for both
usandcnsites - 🎨 Multiple themes and fonts - Theme, Font
- ⚡️ Fast and global edge network - Vercel Edge Function
- 🚫 No tracking, controllable cache - Cache
- 🍀 Open source - MIT License
- ⚙️ Extended-cards:
activity,contest,heatmap
Want to contribute? Feel free to open a pull request!
Simply copy the code below, paste it into your README.md, and change the path to your leetcode username (case-insensitive).
Congratulation! You are now showing your LeetCode stats on your profile!
Want a hyperlink? Try this:
[](https://leetcode.com/pranesh_s_2005)The endpoint of this tool is:
https://leetcode-stats-fast.vercel.app/
There are many options, you can configure them by passing a query string to the endpoint.
Data source, can be us or cn.
Card theme, see Theme for more information.
Use a comma to separate the light and dark theme.

Card font, you can use almost all fonts on Google Fonts.
It is case-insensitive, and you can use font=dancing_script or font=Dancing%20Script to get the same result.
Change the card size, it will not resize the content.
But it will be helpful if you want to use custom css.
Enable or disable the animation.
Extension, it is a comma-separated list of extension names.
NOTICE: You can only use one of extended-card extensions (activity, contest, heatmap) at a time now, maybe they can be used together in the future.
Animation, font, theme, and external stylesheet are all implemented by extensions and enabled by default.
Want to contribute a nyan-cat extension& PR is welcome!
Cache time in seconds.
Note: it will not be a good idea to set it to a long time because GitHub will fetch and cache the card.
You can make
DELETErequest to/:site/:usernameto delete the cache.
Now we have 6 themes. If you have any great idea, please feel free to open a PR!
You can now use almost all fonts on Google Fonts.
Some examples:
Extension, it is a comma-separated list of extension names.
NOTICE: You can only use one of extended-card extensions (activity, contest, heatmap) at a time now, maybe they can be used together in the future.
Animation, font, theme, and external stylesheet are all implemented by extensions and enabled by default.
Want to contribute a nyan-cat extension& PR is welcome!
Show your recent submissions.
Show your contest rating history.
Show heatmap in the past 52 weeks.
