Skip to content

ImShyMike/hackatime-heatmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hackatime Heatmap

Easy to set up Hackatime coding activity heatmap for your profile!

Hackatime activity heatmap.

^^^ Those are my stats!


Usage

You can either use the color scheme aware version:

<a href="https://heatmap.shymike.dev?id=YOUR_ID&standalone=true" title="Click to view detailed data for each day!">
    <picture>
        <source media="(prefers-color-scheme: dark)" srcset="https://heatmap.shymike.dev?id=YOUR_ID&theme=dark">
        <img alt="Hackatime activity heatmap." src="https://heatmap.shymike.dev?id=YOUR_ID&theme=light">
    </picture>
</a>

Caution

Only the top url in the a tag can have the standalone tag set to true, otherwise the graph will not appear!

Or the simple version:

<img alt="Hackatime activity heatmap." title="Click to view detailed data for each day!" src="https://heatmap.shymike.dev?id=YOUR_ID">

Configuration

All the parameters that can be adjusted are:

Some example are:

Id

This parameter is mandatory and can be set to your Hackatime ID, Hackatime Username or Slack ID

Examples:

Timezone

This parameter can be set to the identifier of any timezone on the tz database. Defaults to UTC.

Theme

The theme can be set to either dark, light, catppuccin_dark or catppuccin_light. Defaults to dark.

Padding

The padding around each cell in pixels. Defaults to 2.

Rounding

The rounding percentage of each cell. Defaults to 50 %.

Cell Size

The size of each cell in pixels. Defaults to 15 px.

Ranges

The percentage ranges for each color as a 3 item string list. Defaults to 70,30,10.

Standalone

Whether or not to embed HTML into the request. Defaults to false

About

Easy to set up Hackatime coding activity heatmap for your profile!

Resources

License

Stars

Watchers

Forks