Majkey25

Ask about my work

Answers use my public projects, profile and approved public sources.

Questions and attachments go to OpenAI through Cloudflare. OpenAI may use shared content to train models. Attachments are not saved in local history. Do not share sensitive data. Privacy

~ / work / 18

DownloadGithubDir

Downloads a GitHub repository folder as a ZIP, entirely in the browser

area
Web
stack
JavaScript · JSZip
as of
Nov 2026

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.