Skip to main content

Command Palette

Search for a command to run...

COD-TRAKR Update ๐Ÿš€

Updated
โ€ข2 min read
N
Competetive Programmer || MERN Stack Devloper

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