Skip to content

kyu-dev/codewars_readme_stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

60 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

codewars readme stats

Display your codewars stats at your github readme profile!

Basic Example

Just replace USERNAME in the string below by your codewars username and copy-paste it to your github profile readme

![Codewars](https://github.r2v.ch/codewars?user=USERNAME)

Codewars


Query Params

You can add the following query params to the base url: https://github.r2v.ch/codewars

parameter requierd describtion example
username yes used to get the user info from codewars username=foo
name no if set to true the codewars name (nickname) is used on the card instead of the username name=true
top_languages no extens the crad with 3 icons of the top trained languages top_languages=true
stroke no sets a border with the passed in color around the card stroke=black
stroke=rgb(0,0,0)
stroke=%23000000
theme no new feature! sets a theme for the card theme=light
theme=dark

Examples

Display nickname

![Codewars](https://github.r2v.ch/codewars?user=USERNAME&name=true)

Codewars

Top trained languages icons

![Codewars](https://github.r2v.ch/codewars?user=USERNAME&top_languages=true)

Codewars

Set card border

![Codewars](https://github.r2v.ch/codewars?user=USERNAME&stroke=%23BB432C)

โš ๏ธ Important: You can pass in the usual css color types just make sure to use %23 instead of # while using hex code because of the url encoding

Codewars

All together

![Codewars](https://github.r2v.ch/codewars?user=USERNAME&name=true&top_languages=true&stroke=%23BB432C)

Codewars

Themes (new feature)

I am currently implementing a theme feature. This allows you to change de default codewars like theme. You can find a example of all themes here.

If you wish for other themes I am happy to take a pull request, just place your desired color set in the themes.js file. Please also add it in the example file.

![Codewars](https://github.r2v.ch/codewars?user=USERNAME&name=true&theme=light)

Link to when clicked

The pattern for linking svg content ![name](link to svg) can be wrapped in []() markdown option to link somewhere when clicked.

[![Codewars](https://github.r2v.ch/codewars?user=USERNAME)(LINK)]

Codewars

As Image

Optional to the svg ref markdown style it is possible to load the card as image. This gives you the possibility to center it as example.

<p align="center" > <a href="LINK TO: WHEN CLICKED"> <img src="https://github.r2v.ch/codewars?user=USERNAME" /> </a> </p> 

Hosting

The project is currently hosted on heroku and free to use for everyone :)

Additional

About

Display your codewars stats at your github profile ๐Ÿš€

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.7%
  • Dockerfile 0.3%