Your LeetCode solutions deserve better than being buried in a browser tab. Leetfolio auto-syncs every accepted submission to GitHub — with complexity analysis, spaced repetition, and zero backend.
13 features built into a single Chrome extension. No subscriptions, no servers, no data collection. Your code stays yours — locally encrypted, GitHub-synced.
Detects accepted submissions via DOM observer + network intercept. No button clicks required.
MutationObserverLocal AST/regex engine detects O(n), O(log n), O(n²) and space complexity — no API needed.
100% LocalSM-2 algorithm surfaces problems you need to re-solve. Never forget a pattern again.
SM-2 AlgorithmRe-solve a problem? Keeps v1, v2, v3 side by side. Visual proof of your growth.
Git-styleAuto-generates a unified diff between versions. See exactly what you optimized.
jsdiffSolutions queued in IndexedDB when offline. Auto-flush with exponential backoff when back online.
IndexedDBSeparate environments for interview prep vs personal practice. Switch repos with one click.
Namespace IsolatedAutomatically reads LeetCode topic tags post-submission. Your folders self-organize.
DOM ScrapingAnnotate solutions with company tags (Google, Amazon). Searchable prep portfolio.
Custom MetadataTemplate-driven README with approach, complexity table, tags, and review date. Zero AI required.
Template EngineOptional Claude/OpenAI integration for deep explanations. Your API key, your data.
Optional100% client-side. OAuth via chrome.identity. No middleman. No telemetry. No servers.
Privacy FirstYou click submit as usual. Leetfolio watches silently in the background using a MutationObserver and fetch interceptor.
On "Accepted" status, Leetfolio extracts: code from Monaco editor, problem title, difficulty, topic tags, and language.
The complexity engine scans your code with regex + pattern matching. Detects loops, nesting depth, recursion, binary search patterns — no API call needed.
A fully populated markdown README is generated locally — complexity table, approach, tags, company annotations, and next SRS review date.
Files are pushed directly via GitHub REST API — no server involved. If offline, they queue in IndexedDB and flush automatically when back online.
SM-2 algorithm records the solve and computes the next review date. Problem appears in "Due Today" when it's time to re-solve for retention.
Finally a LeetCode tool that doesn't just dump files. The complexity annotations alone are worth it — I've learned more reviewing my own READMEs than any tutorial.
The spaced repetition feature is the hidden gem. I stopped forgetting sliding window after a week of reviews. This is Anki for algorithms.
Zero backend sold me immediately. I've had other sync tools leak tokens. Leetfolio stores everything locally, pushes directly via GitHub API. Clean.
148 problems solved. Zero visible on GitHub. Start syncing — it takes 60 seconds to set up and runs silently from there.