Skip to content

Repository files navigation

Notion GitHub Graph

A minimal, aesthetic contribution graph designed for Notion. It fetches your GitHub activity and renders it as a crisp heatmap that matches Notion's native UI perfectly.


Preview

Dark Mode (Default) Light Mode
Dark Mode Graph Light Mode Graph
Dark Mode UI Light Mode UI

This project vibe coded itself.

Why this?

Most GitHub graph generators are cluttered or don't look right when embedded. This one is built to be "invisible"—it adapts to Notion's light and dark modes, uses clean typography, and sticks to a minimal footprint.

Features

  • Precision Tooltips: Shows exact contribution counts on hover or tap. The positioning is smart—it won't get cut off at the edges.
  • Yearly Navigation: Interactive controls to jump back through your history or view the last 365 days.
  • Mobile First: Fully responsive with optimized touch targets for dragging through the graph on your phone.
  • Zero Config: Just pass a username and it works.
  • Manual Theme Switching: Swap between light and dark modes explicitly using a URL parameter.

How to use

The easiest way is to use the hosted version: https://r4khul.github.io/notion-github-graph/

Quick Embed: Add your username and preferred theme to the URL:

  • Default (Dark): https://r4khul.github.io/notion-github-graph/YOUR_USERNAME
  • Light Mode: https://r4khul.github.io/notion-github-graph/YOUR_USERNAME?theme=light
  • Explicit Dark: https://r4khul.github.io/notion-github-graph/YOUR_USERNAME?theme=dark

Alternative syntax:

  • https://r4khul.github.io/notion-github-graph/?user=YOUR_USERNAME&theme=light

In Notion:

  1. Copy the link with your username and theme choice.
  2. In your Notion page, type /embed.
  3. Paste the URL and hit enter.
  4. Resize the block to your liking.

Local Development

If you want to run it yourself or tweak the styles:

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

Options

  • Username: Set via the trailing path or the user URL parameter.
  • Theme: Set using theme=light or theme=dark. Default is dark mode.
  • Navigation: Use the arrows in the header to cycle through available years of data.

About

generates a slick github contribution graph to embed to your notion or any other site

Resources

Code of conduct

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages