Timeline Widget

Codersrank Timeline Widget is a web component that allows you easily integrate your work experience or portfolio information in a form of a timeline from your CodersRank profile to your personal website:

Install from NPM

Widget script available through NPM:

npm i @codersrank/timeline --save

After installation you need to import and register web component:

import CodersrankTimeline from '@codersrank/timeline';
// register web component as <codersrank-timeline> element
window.customElements.define('codersrank-timeline', CodersrankTimeline);

Install from CDN

Widget can also be downloaded or linked directly from CDN:

<!-- replace x.x.x with actual version -->
<script src="https://unpkg.com/@codersrank/timeline@x.x.x/codersrank-timeline.min.js"></script>

In this case it is not required to register web component, it is already registered as <codersrank-timeline> element.


As it is a web component the usage is pretty simple, just add widget HTML tag with your CodersRank username

<codersrank-timeline username="YOUR_USERNAME"></codersrank-timeline>

Widget Attributes

Widget supports following properties as HTML element attributes:

usernamestringYour CodersRank username
typestringworkexperienceSpecify which data to show. Can be workexperience, portfolio or technologies
brandingbooleantrueDisplays "Powered by CodersRank" link

For example:

<codersrank-timeline username="YOUR_USERNAME" type="workexperience"></codersrank-timeline>


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:

--timeline-item-padding4px 8px
--tooltip-box-shadow0px 10px 20px rgba(0, 0, 0, 0.1)
--tag-bg-colorrgba(0, 0, 100, 0.075)
--tag-padding0.35em 0.57em

For example, to change year label font-size 14px, add this to CSS stylesheet:

codersrank-timeline {
--year-font-size: 14px;


Yes please! See the contributing guidelines for details.


This project is licensed under the terms of the MIT license.