1.1.0 • Published 1 year ago

github-commit-calendar v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Github Commit Calendar

npm version 🔥 npm ⭐️ Downloads 🚀 GitHub Stars 😎 Open Source Love 💖 Platform support 🛠️

A Svelte component that displays a user's GitHub commit history as a calendar. You can customize the appearance of the calendar using the available props.

Table of Contents

Installation

npm install github-commit-calendar

Usage

Import the component and use it in your Svelte application:

<script>
  import { GithubCommitCalendar } from "github-commit-calendar";
</script>

<GithubCommitCalendar gitToken={your_github_token} />

Obtaining a GitHub Token

To use this component, you need a GitHub token with minimal permissions. Follow these steps to generate a token:

Note: Keep your token secure and do not share it publicly. 🚨

Props

PropTypeDefaultDescription
gitTokenstring-Required. Your GitHub token with "public_repo" scope.
colorstring'rgba(187, 53, 220)'The color of the commit bars.
size'small', 'medium', 'large', number'medium'The size of the commit bars. The value can either be a string of the specific size, or it can be a number in px.
backgroundstring'rgba(187, 53, 220, .1)'The background color of the calendar.
gapnumber2The gap between each cell in px.
hoverbooleanfalseThe hover animation of the calendar.
keybooleantrueKey to be shown or not shown.
monthsbooleantrueMonths to be shown or not shown.
weekdaysbooleantrueWeekdays to be shown or not shown.

Rest Props

Any additional props will be passed down to the top-level div element of the component. This can be useful for adding custom styles or attributes.

<GithubCommitCalendar gitToken={your_github_token} id="custom-id" style="custom styles" />

About

The Project

This project aims to provide a simple, customizable Svelte component for visualizing GitHub commit history. It was designed to be lightweight and easy to integrate into any Svelte application.

1.1.0

1 year ago

1.0.0

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago