Note: This is a fork implementation of github-readme-stats and I simply allow it to work with the typeracer API.
Get dynamically generated Typeracer stats on your READMEs!
View Demo · Report Bug · Request Feature · Ask Question
Copy-paste this into your markdown content, and that's it. Simple!
Change the ?username= value to your Typeracer username.
[](https://github.com/steven-steven/typeracer-readme-stats)To hide any specific stats, you can pass a query parameter &hide= with comma-separated values.
Options:
&hide=cg,gamesWon,bestGameWpm,wpm,recentAvgWpm,recentScores
To enable icons, you can pass show_icons=true in the query param, like so:
With inbuilt themes, you can customize the look of the card without doing any manual customization.
Use &theme=THEME_NAME parameter like so :-
dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula
You can look at a preview for all available themes in the forked repo or checkout the theme config file.
You can customize the appearance of your Stats Card with URL params.
title_color- Card's title color (hex color)text_color- Body text color (hex color)icon_color- Icons color if available (hex color)border_color- Card's border color (hex color). (Does not apply whenhide_borderis enabled)bg_color- Card's background color (hex color) or a gradient in the form of angle,start,endhide_border- Hides the card's border (boolean)theme- name of the theme, choose from all available themesborder_radius- Corner rounding on the card_
You can provide multiple comma-separated values in the bg_color option to render a gradient, with the following format:
&bg_color=DEG,COLOR1,COLOR2,COLOR3...COLOR10
hide- Hides the specified items from stats (Comma-separated values)hide_title- (boolean)hide_rank- (boolean) hides the rank and automatically resizes the card widthshow_icons- (boolean)count_private- Count private commits (boolean)line_height- Sets the line-height between text (number)custom_title- Sets a custom title for the carddisable_animations- Disables all animations in the card (boolean)
- Default
- Hiding specific stats
- Showing icons
- Customize Border Color
- Themes
Choose from any of the default themes
- Gradient
- Customizing stats card (not working)
Contributions are welcome! <3
Made with ❤️ and JavaScript.