DownloadGithubDir
Downloads a GitHub repository folder as a ZIP, entirely in the browser
Problem
Download a single folder from a GitHub repository without cloning the whole repository.
Approach
The page lists the folder through GitHub's Git Trees API, fetches the files in parallel and packs them into a ZIP with JSZip, entirely in the browser. An optional branch, tag or token covers specific releases, higher rate limits and private repositories; the token goes only to GitHub API URLs and is never stored.
Result
Version 1.0.1 runs as a static page on GitHub Pages. To bound browser memory it stops at 4,000 files or 250 MiB, and it refuses truncated trees, folders with submodules and unsafe file names instead of producing a partial ZIP.