LeetHub is a browser extension that automatically archives completed LeetCode coding solutions to a GitHub repository. It intercepts submission results from LeetCode pages and, upon successful test completion, pushes the code along with problem metadata into a structured, versioned history on the user's GitHub account.
The project authenticates with GitHub using OAuth tokens, authorizing it to create private repositories and configure repository hooks for automated synchronization. This eliminates the manual step of copying and pasting solutions, instead building a permanent, versioned portfolio of algorithmic problem-solving work directly from the coding platform.
LeetHub handles the full pipeline from submission interception to Git commit, organizing solutions into a structured repository with problem metadata and code files. It supports setting up new or existing GitHub repositories as the destination for archived solutions.