# LeetCode to GitHub Sync

> Automatically push accepted LeetCode submissions to your GitHub repository to build your coding portfolio with zero effort.

Canonical page: [https://chrome-stats.com/d/leetcode-to-github-sync](https://chrome-stats.com/d/leetcode-to-github-sync)

## Overview

- **ID:** `leetcode-to-github-sync`
- **Platform:** Firefox
- **Type:** Firefox add-on
- **Status:** Available
- **Publisher:** sandysam
- **Category:** web-development,privacy-security
- **Rating:** 5.00 / 5 (1 ratings)
- **Version:** 2.0.0
- **Last updated:** 2026-07-08
- **First published:** 2026-07-05
- **Size:** 58 KB
- **Data as of:** 2026-09-06
- **Store listing:** [Firefox Add-ons Store](https://addons.mozilla.org/firefox/addon/leetcode-to-github-sync/)
- **Privacy policy:** [https://addons.mozilla.org/firefox/addon/leetcode-to-github-sync/privacy/](https://addons.mozilla.org/firefox/addon/leetcode-to-github-sync/privacy/)

## Description

LeetCode to GitHub Sync automatically pushes your accepted LeetCode solutions to your GitHub repository the moment they're accepted; no manual copy-pasting, no forgetting to save.

(Have also tested this on Zen Browser)

Solve a problem on LeetCode, click <strong>Submit</strong>, and when your solution is accepted, the extension detects it and immediately pushes your code to your configured GitHub repo. Files are organized using your preferred template, for example, <code>Easy/1-two-sum.java</code> or <code>Medium/645-set-mismatch.py</code>.

<ul><li><strong>Automatic sync</strong>: Detects accepted submissions and pushes code to GitHub instantly</li><li><strong>Customizable file structure</strong>: Use placeholders like <code>{difficulty}</code>, <code>{problemNumber}</code>, <code>{problemTitle}</code>, <code>{extension}</code>, and <code>{language}</code> to organize files your way</li><li><strong>Custom commit messages</strong>: Templates with the <code>{problemTitle}</code> placeholder</li><li><strong>Auto-sync toggle</strong>: Enable or disable automatic syncing at any time</li><li><strong>Submission history &amp; stats</strong>: Track everything you've synced broken down by Easy, Medium, and Hard</li><li><strong>Duplicate protection</strong>: Already-synced submissions are never pushed twice</li><li><strong>Supports all LeetCode languages</strong>: Java, Python, C++, JavaScript, Go, Rust, TypeScript, and 25+ more</li><li><strong>Test connection</strong>: Verify your GitHub setup before solving problems</li></ul>
<ul><li>Your GitHub token is stored securely in your browser's local storage with in-memory caching and automatic zeroization</li><li>All communication is only with LeetCode (to detect submissions) and GitHub's API (to push code)</li><li>No third-party analytics, tracking, or telemetry</li><li>Token is never logged or exposed in error messages</li><li>Built-in rate limiting prevents API abuse</li></ul>
<ol><li>Create a fine-grained GitHub Personal Access Token with <strong>Contents: Read &amp; Write</strong> access</li><li>Enter your token, GitHub username, and repository name in the extension popup</li><li>Optionally customize the file path and commit message templates</li><li>Click <strong>Test Connection</strong>, then start solving!</li></ol>
Perfect for building your coding portfolio, tracking your progress, or backing up your solutions.

## Rankings

- #131,325 — Overall
- #79 — leetcode

## Permissions and access

### Permissions

- `storage`

### Host permissions

- `https://leetcode.com/*`
- `https://api.github.com/*`

### Content script matches

- `leetcode.com`
- `leetcode.cn`

## Safety

- **Risk impact:** Moderate risk impact
- **Risk likelihood:** High risk likelihood

### Analysis details

- Request access to the following domains: leetcode.com, leetcode.cn, github.com
- This extension has low user count. Unpopular extensions may not be stable or safe.

> Some risk analysis details are omitted from this free response. [Upgrade to view the full analysis](https://chrome-stats.com/pricing).

## Similar extensions and apps

- [LeetCode to GitHub Sync](https://chrome-stats.com/d/leetcode-to-github-sync-ank) — 7 users
- [LeetCode to Github](https://chrome-stats.com/d/leetcode-to-github) — 12 users, 5.00 / 5
- [leegit syn](https://chrome-stats.com/d/leegit-syn) — 1 users
- [LeetCode Tracker V2](https://chrome-stats.com/d/leetcode-tracker-v2) — 1 users, 5.00 / 5
- [CP Code Manager](https://chrome-stats.com/d/cp-code-manager) — 1 users, 5.00 / 5
- [LeetVault](https://chrome-stats.com/d/leetvault) — 1 users
- [CodeSync](https://chrome-stats.com/d/codesync) — 1 users
- [CodeSync](https://chrome-stats.com/d/codesync-1-2) — 1 users
- [PushMyCode](https://chrome-stats.com/d/pushmycode) — 5 users
- [LeetPush](https://chrome-stats.com/d/leetpush) — 5 users, 5.00 / 5
- [LeetCommit](https://chrome-stats.com/d/leetcommit) — 8 users, 5.00 / 5
- [LeetPush\_by\_rain5409](https://chrome-stats.com/d/leetpush_by_rain5409) — 1 users

---

Source: [Chrome-Stats](https://chrome-stats.com/d/leetcode-to-github-sync)
