Codersrank Summary Widget is a web component that allows you integrate widget with your CodersRank profile summary to your personal website:
Install from NPM
Widget script available through NPM:
After installation you need to import and register web component:
Install from CDN
Widget can also be downloaded or linked directly from CDN:
In this case it is not required to register web component, it is already registered as
As it is a web component the usage is pretty simple, just add widget HTML tag with your CodersRank username
Widget supports following properties as HTML element attributes:
|Your CodersRank username|
|Defines the layout of the widget badges. Can be |
|Number (from |
|Defines whether to show avatar or not|
|Defines whether to show widget header or not|
|Widget minimum width for |
|Badge minimal width to change badge inner layout from horizontal to vertical layout|
|Displays "Powered by CodersRank" link|
It is possible to customize widget colors with CSS Custom Properties (CSS Variables) by setting them directly on the widget element with style attribute or in CSS.
There are following CSS Custom Properties are available:
For example, to change header background color to
white and name font-size to
20px, add this to CSS stylesheet:
Use As Image
It is also possible to insert Summary widget as an image. It is useful in places where you can't integrate web component, or for example on your GitHub profile README.md page.
Image URL is the following:
It accepts all widget attributes as query string parameters, plus one extra parameter:
|Width of widget element (generated image). Note that generated image has @2x pixel density, so the PNG image will be actually generated in @2x size from the one specified here|
Note that you need to URL Encode some of the characters, for example
# should be
#ff0 color should be specified as
%23ff0 in query.
Yes please! See the contributing guidelines for details.
This project is licensed under the terms of the MIT license.