Code-to-GitHub is a browser extension that lets you instantly save your solved coding problems (from platforms like LeetCode, CodeChef, HackerRank, and more) directly to your GitHub repository — complete with your custom comments explaining the approach you used to solve the problem.
No more copy-pasting code manually — just one click, and your solution is pushed to GitHub automatically! 🎉
- One-Click Code Save – Push your solutions to GitHub instantly.
- Platform Independent – Works with LeetCode, CodeChef, HackerRank, Codeforces, and others.
- Custom Comments – Add problem statements, thought processes, or solution explanations.
- Organized Repository – Automatically categorizes solutions by platform and topic.
- Boost Productivity – Spend less time managing files, more time solving problems.
| Category | Tech Used |
|---|---|
| Frontend | HTML, CSS, JavaScript |
| Backend / API | GitHub REST API |
| Extension | Chrome Extension APIs |
git clone https://github.com/Narendray12/Code-to-github.git
cd Code-to-github- Open Google Chrome and go to:
chrome://extensions/ - Enable Developer Mode (top-right toggle).
- Click Load unpacked.
- Select the project folder (
Code-to-github).
The extension will now appear in your browser!
- Generate a GitHub Personal Access Token:
- Go to GitHub → Settings → Developer Settings → Tokens.
- Create a new token with repo permissions.
- Save the token inside the extension’s settings.
- Open LeetCode, CodeChef, or any supported coding platform.
- Solve a problem as usual.
- Click the Code-to-GitHub extension icon.
- Add:
- Problem title
- Your approach/comments
- Hit Save – done! 🎉
Your solution is now pushed to your GitHub repository automatically.