COD-TRAKR Update ๐
Today's focus was mostly on optimization and cleanup.
๐ Switched from Dashboard-Level Caching โ Platform-Level Caching
Previously I was caching the entire dashboard response.
Now each platform (LeetCode, Codeforces, CodeChef, GFG) has its own cache layer.
Benefits:
Better cache reuse
Cleaner invalidation
Faster dashboard loads
Less redundant API calls
Easier to scale
๐ Found an Authentication Issue
While reviewing the OTP signup flow, I noticed OTP verification attempts were unlimited during the 5-minute validity window.
Current protections:
OTP rate limiting
Redis atomic counters
OTP expiration
Password & OTP hashing
Also fixed a bug where failed email delivery could leave temporary signup data in Redis. Added rollback logic to clean everything up automatically.
Next step: limit OTP verification attempts to prevent brute-force attacks.
โ๏ธ Frontend Migration Complete
The frontend is now fully migrated to React.
The codebase is much cleaner:
Reusable components
Simpler routing
Easier maintenance
Better structure for future features
๐ฎ Coming Next
๐ Top 100 DSA Questions Tracker
๐ Contest Informer (LeetCode, Codeforces, CodeChef, AtCoder)
โ Need Help With GFG Integration
This is currently the biggest blocker in COD-TRAKR.
I've successfully integrated:
โ
LeetCode
โ
Codeforces
โ
CodeChef
But GFG profile data remains difficult to fetch reliably.
I've tried:
Network inspection
Scraping
Cheerio
Playwright
Puppeteer
Various headers and approaches
Still no stable solution.
If anyone knows how platforms like Codolio fetch GFG stats, I'd love to hear your approach.
#buildinpublic #webdevelopment #reactjs #nodejs #redis #mongodb #opensource
