GitHub to jsDelivr CDN link converter
Paste a link to a file on GitHub. You get jsDelivr CDN links (latest, and pinned to a commit or tag) and a Markdown embed. Free, no sign-in.
@latest serves the newest version tag, or the default branch when the repo has no tags.
jsDelivr caches it, so a change can take a while to show.
Always serves this exact version of the file.
Uses the pinned link when there is one.
jsDelivr serves .html files as plain text, so a browser shows the source instead of the page.
GitHost uploads them to your own GitHub repo by drag and drop, then copies these same jsDelivr links (latest or pinned) and Markdown embeds for you.
Upload files in GitHostHow the links work
jsDelivr serves files from public GitHub repos at
https://cdn.jsdelivr.net/gh/OWNER/REPO@VERSION/PATH. VERSION picks which copy of the file you get:
@latest: the newest version tag (or the default branch when there are none).@v1.2.0: a tag. Use it for releases.@<commit SHA>: one exact commit. The file at this link never changes.
For a branch link, the converter asks GitHub's public API which commit the branch points to now and pins to that commit. That request goes from your browser straight to GitHub, without a token; nothing is sent to GitHost.
Questions
- Does it work with private repos?
- No. jsDelivr can only read public repos, and CDN links are for public files. GitHost can still show your private files when you sign in with GitHub.
- Are there size limits?
- Yes. jsDelivr serves files up to 20 MB and has a fair-use policy, and GitHost uploads files up to 50 MB each. Neither is unlimited.
- Which link should I put on a website?
-
A pinned link (commit or tag) if the page must always show the same file.
@latestif it should pick up new releases.