🦉 A real-time, customizable Duolingo widget that you can embed on your website or markdown files ✨
Browse by type
🦉 A real-time, customizable Duolingo widget that you can embed on your website or markdown files ✨
<a href="https://duolingo-stats-card.vercel.app/">✨ View Demo</a>
·
<a href="https://github.com/KevzPeter/duolingo-stats-card/issues">🐛 Report Bug</a>
·
<a href="https://github.com/KevzPeter/duolingo-stats-card/issues">💁🏽 Request Feature</a>
Use the demo website to create your customized card! Add the following line to your Github README.md page / website / any markdown file and replace {your-duolingo-username}
<img src="https://duolingo-stats-card.vercel.app/api?username={your-duolingo-username}" alt="Duolingo Stats Card" />
For example, if your Duolingo username is "John_Smith", add the following line (this is in Markdown mode):

Want weekly XP, Duolingo scores, hearts, and gems? Deploy your own instance below.
To access private Duolingo stats, like your Duolingo proficiency scores, gems, hearts, weekly XP etc, you will need to provide your Duolingo JWT Token. To keep your token secure, you will need to deploy your own Duolingo Stats Card.
| Public stats | Public + private stats |
|---|---|
![]() |
![]() |
| Name | Value |
|---|---|
DUOLINGO_JWT |
Your Duolingo jwt_token. Treat this like a password. |
DUOLINGO_USERNAME |
Your Duolingo username, not your display name. It must belong to the same account as the token. |
DUOLINGO_TIMEZONE |
Optional: your time zone, such as America/Los_Angeles. Leave it unset to use UTC. |
https://your-project-name.vercel.app (Vercel may add a suffix if the name is taken). Use this address for your card builder and embeds.

The copied code already includes your deployment's address and your selected options. To change your card later, reopen the same builder, customize it, and replace the old embed with the newly copied code. The extra stats checkboxes appear only for your configured username when both required variables are set.
https://www.duolingo.com.jwt_token and copy its Value into the DUOLINGO_JWT setting in Vercel. Don't copy the cookie name or share the value.When the token expires, repeat these steps, update the saved value in Vercel, and redeploy from Deployments → ⋯ → Redeploy.
Want to spice up the look and feel of your stats card? You can choose your favorite among 15 different themes!
Simply add the theme parameter to the url like so:
<img src="https://duolingo-stats-card.vercel.app/api?username={your-duolingo-username}&theme={your-theme}" alt="Duolingo Stats Card" />
[!NOTE] If you don't specify a theme, it would be rendered like how it's displayed at the top of this doc!
light ![]() |
dark ![]() |
github-dark ![]() |
monokai ![]() |
tokyonight ![]() |
nightowl ![]() |
onedark ![]() |
shades-of-purple ![]() |
dracula ![]() |
cobalt2 ![]() |
sky ![]() |
beach ![]() |
purple-gang ![]() |
mint ![]() |
leafy ![]() |
Use Node.js 22+ and pnpm 10.30.3. For owner stats, copy .env.example to .env.local
and fill in your variables before starting the server. Keep .env.local out of commits.
pnpm install --frozen-lockfile
pnpm dev
Open localhost:3000. Restart the server after changing environment variables.
Run pnpm test with Node.js 22.6 or newer to check the league parser.
If you wanna add your custom theme or suggest enhancements, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)$ claude mcp add --transport http codehub https://codehub.bot/mcp
One hosted endpoint, no key: your agent can search, read and trace KevzPeter/Duolingo-Stats-Card and every other graph here. Cursor, Windsurf and other clients →