Launched this week

LeetGit
Auto-commit every LeetCode submission to GitHub instantly
9 followers
Auto-commit every LeetCode submission to GitHub instantly
9 followers
LeetGit is a Chrome extension that automatically syncs your LeetCode submissions to GitHub the moment you hit Submit. Every solution is stored as structured Markdown with your code, runtime/memory stats, difficulty, tags, notes, and attempt history. Features include smart duplicate detection, custom commit messages, sync filters, repo subfolders, token expiry alerts, and real-time sync status. Free, open source (MIT), and no accounts required.



Hey Product Hunt! π
I built LeetGit because I kept watching people grind LeetCode for months and then walk into interviews with nothing to show for it β no archive, no record of their approach, no way to demonstrate consistency.
The obvious solution was GitHub, but copy-pasting solutions manually is just tedious enough that most people never do it consistently. So I automated the whole thing.
The interesting technical challenge was building this under Chrome MV3 constraints.
The extension uses a three-layer architecture:
- An injected script in the page's MAIN world that wraps fetch/XHR to capture submissions without interfering with LeetCode's own network calls
- A content script that renders the floating panel and relays data to the background
- A service worker that fetches problem metadata, builds structured Markdown, and commits using GitHub's Git Data API (blob β tree β commit β ref PATCH) with a local HEAD cache to avoid stale-ref errors on consecutive syncs
It's fully open source. PRs and issues welcome.
Would love your feedback. What features would make this genuinely more useful for your workflow?