{"id":16347513,"url":"https://github.com/privatenumber/github-cdn","last_synced_at":"2025-03-21T00:30:22.308Z","repository":{"id":48367645,"uuid":"229689166","full_name":"privatenumber/github-cdn","owner":"privatenumber","description":"🛰 Github CDN Server","archived":false,"fork":false,"pushed_at":"2023-01-15T02:48:42.000Z","size":305,"stargazers_count":50,"open_issues_count":2,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T18:53:50.762Z","etag":null,"topics":["api","cdn","github","github-api","server"],"latest_commit_sha":null,"homepage":"https://github-cdn.now.sh","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/privatenumber.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-23T06:17:01.000Z","updated_at":"2024-04-19T12:01:03.000Z","dependencies_parsed_at":"2023-02-09T21:00:27.452Z","dependency_job_id":null,"html_url":"https://github.com/privatenumber/github-cdn","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fgithub-cdn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fgithub-cdn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fgithub-cdn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fgithub-cdn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/privatenumber","download_url":"https://codeload.github.com/privatenumber/github-cdn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244717078,"owners_count":20498279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","cdn","github","github-api","server"],"created_at":"2024-10-11T00:43:10.639Z","updated_at":"2025-03-21T00:30:21.884Z","avatar_url":"https://github.com/privatenumber.png","language":"JavaScript","readme":"# 🛰 Github CDN [![GitHub stars](https://img.shields.io/github/stars/privatenumber/github-cdn.svg?style=social\u0026label=Star\u0026maxAge=2592000)](https://GitHub.com/privatenumber/github-cdn)\n\n[Github CDN](https://github-cdn.now.sh) is [UNPKG](https://unpkg.com/) for Github — an unofficial content delivery network for repo assets on Github.\n\n## ⭐️ Features\n- Fetch repo meta-data: branches, tags, and PRs\n- Serve repo and Gist files\n- Instant access to new changes pushed to Github *\n- Great for quick prototyping / development\n- Includes [npm excluded files](https://docs.npmjs.com/using-npm/developers.html#keeping-files-out-of-your-package)\n- [Node API](https://github.com/privatenumber/github-cdn/blob/master/readme_node-api.md) for compatibility with Github Enterprise\n\n_* Unless the request fails due to network failure or rate-limiting_\n\n## 💁‍♀️ Endpoints\n- `/:owner/:repo`\n  - Get the default branch and all refs (branches, tags, and PRs)\n  - eg. [`/vuejs/vue`](https://github-cdn.now.sh/vuejs/vue) to retrieve meta data on [vuejs/vue](https://github.com/vuejs/vue)\n\n  \u003cdetails\u003e\n  \t\u003csummary\u003e\u003ci\u003eExample output\u003c/i\u003e\u003c/summary\u003e\n\n  ```json5\n  {\n  \t\"default_branch\": \"master\",\n  \t\"refs\": {\n  \t\t\"heads\": { ... },\n  \t\t\"tags\": { ... },\n  \t\t\"pull\": { ... }\n  \t}\n  }\n  ```\n\n  \u003c/details\u003e\n\n- `/:owner/:repo/:ref`\n  - Resolve repo ref if semver. Redirects to root of repo ref\n  - eg. [`/vuejs/vue/master`](https://github-cdn.now.sh/vuejs/vue/master)\n  - eg. [`/vuejs/vue/^2.0.0`](https://github-cdn.now.sh/vuejs/vue/^2.0.0)\n  - eg. [`/vuejs/vue/latest`](https://github-cdn.now.sh/vuejs/vue/latest)\n\n- `/:owner/:repo/:ref?badge`\n  - Resolves the ref and redirects to [Badgen](https://badgen.net)\n  - eg. `/vuejs/vue/latest?badge` ![Latest Vue badge](https://github-cdn.now.sh/vuejs/vue/latest?badge)\n\n- `/:owner/:repo/:ref/:path`\n  - Get a file or list directory in a repo ref\n  - eg. [`/vuejs/vue/v2.6.11/dist/`](https://github-cdn.now.sh/vuejs/vue/v2.6.11/dist/)\n  - eg. [`/vuejs/vue/v2.6.11/dist/vue.min.js`](https://github-cdn.now.sh/vuejs/vue/v2.6.11/dist/vue.min.js)\n\n- `/gist/:gist-id`\n  - Get meta-data on a Gist: url, owner, created/updated date, and files\n  - eg. [`/gist/feff40b0a522f0c41c4eff0b77ea1d47`](https://github-cdn.now.sh/gist/feff40b0a522f0c41c4eff0b77ea1d47)\n\n- `/gist/:gist-id/:path`\n  - Get a file from a Gist\n  - eg. [`/gist/feff40b0a522f0c41c4eff0b77ea1d47/tulip.jpg`](https://github-cdn.now.sh/gist/feff40b0a522f0c41c4eff0b77ea1d47/tulip.jpg)\n\n- `/ratelimit`\n  - See the rate limit quota available on the Github API\n  - With rate limiting, **Github CDN is not a production-ready solution** to hosting code\n\n### 🔑 Setting a custom token (for rate-limiting \u0026 private repos)\nUse a [Personal access token (PAT)](https://github.com/settings/tokens) to access your private repos and to use your [rate limit quota](https://developer.github.com/v3/#rate-limiting).\n\n_This token is only stored in your browser as a cookie._\n\n\u003c!-- insert-token-input --\u003e\n\n---\n\nBuilt and maintained by [@privatenumber](https://github.com/privatenumber) [![GitHub followers](https://img.shields.io/github/followers/privatenumber.svg?style=social\u0026label=Follow)](https://github.com/privatenumber?tab=followers) and powered by [Vercel](https://vercel.com) ❤️\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprivatenumber%2Fgithub-cdn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprivatenumber%2Fgithub-cdn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprivatenumber%2Fgithub-cdn/lists"}