
Recode LeetCode Extension
This is a browser extension that automates the process of fetching solved LeetCode problems and exporting them to a centralized backend system, Recode. The extension integrates seamlessly with LeetCode's platform and does not violate any of their terms and conditions.
Overview
This is a browser extension that automates the process of fetching solved LeetCode problems and exporting them to a centralized backend system, Recode. The extension integrates seamlessly with LeetCode's platform and does not violate any of their terms and conditions.
Why I Built This
- •
There's no official Leetcode API.
- •
Scraping the Leetcode website is not reliable and can break anytime.
Features
- •
Retrieves all solved problems from LeetCode API with a single click
- •
Stores fetched data locally to reduce API calls and improve performance
- •
Displays total solved problems and last fetch timestamp
- •
Sends formatted problem data to configurable backend API endpoints
Tech Stack
Frontend
Database
Other
Challenges & Solutions
Challenge: LeetCode API requires user authentication to fetch problem data
Leveraged browser's credential management (`credentials: 'include'`) to use existing LeetCode session cookies, eliminating the need for separate authentication flow
Challenge: Frequent API calls leading to rate limiting or slow user experience
Implemented local storage caching mechanism that stores fetched data and only makes API calls when explicitly requested, reducing server load and improving response times
Future Plans
- •
Support multiple export formats (CSV, JSON, PDF)
- •
Implement automatic background syncing at regular intervals
- •
Add local analytics for problem-solving patterns and trends
- •
Extend to other coding platforms (GFG, HackerRank, Codeforces)