Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub CDN Generator

Live Demo License: MIT Made with Vanilla JS

Turn any public GitHub repository into ready-to-use jsDelivr CDN links — free, no login, right in your browser.

Paste a repo URL and get a searchable list of every file with one-click copy buttons, image previews, branch selection, and export to TXT, JSON, or CSV. Perfect for hosting images, fonts, CSS, and JavaScript from a GitHub repo on a fast global CDN.

▶ Try it live: https://marwanvx.github.io/github-cdn-generator/

GitHub CDN Generator screenshot

Features

  • Any input formathttps://github.com/twbs/bootstrap, github.com/twbs/bootstrap, or just twbs/bootstrap
  • Auto file discovery — scans the whole repository tree, grouped into Images, Fonts, Code, Documents, and Other
  • One-click copy — CDN URL, raw URL, and ready-made <img> tag or CSS background-image rule for images
  • Copy all — grab every link in a category, or the whole repo, in one click
  • Branch selection — generate links for any branch, not just the default
  • Live search — filter files by name or path instantly
  • Image previews — thumbnails loaded straight from the CDN
  • Export — download all links as TXT, JSON, or CSV
  • Refresh — pull the latest file list after you push changes
  • Dark & light themes, fully responsive, works on mobile

Usage

  1. Paste a repository URL and click Generate CDN links.
  2. Switch branches, search, and copy the links you need.
  3. Share a direct scan link with ?repo=user/repo, e.g. ?repo=twbs/bootstrap.

Notes

  • Works with public repositories only.
  • Uses the public GitHub API (60 requests/hour without login). Results are cached briefly, so re-scanning the same repo doesn't count against the limit.
  • Branch links (@main) are cached by jsDelivr for about 12 hours. For permanent links, use a tag instead (@v1.0.0).

License

MIT

About

Generate jsDelivr CDN links for any public GitHub repo — file scanner with one-click copy, image previews, search, and TXT/JSON/CSV export. Runs 100% in the browser.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages