{"id":23462565,"url":"https://github.com/nicoolandgood/github_as_cdn","last_synced_at":"2026-04-29T01:32:57.539Z","repository":{"id":59696237,"uuid":"530651329","full_name":"Nicoolandgood/github_as_cdn","owner":"Nicoolandgood","description":"Simple CDN example powered by Github pages + tutorial.","archived":false,"fork":false,"pushed_at":"2022-11-18T13:12:18.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T08:58:05.192Z","etag":null,"topics":["cdn","css","github","html","pages","tutorial"],"latest_commit_sha":null,"homepage":"https://nicoolandgood.github.io/github_as_cdn/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nicoolandgood.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-30T12:40:41.000Z","updated_at":"2022-09-28T08:58:03.000Z","dependencies_parsed_at":"2023-01-23T13:16:00.090Z","dependency_job_id":null,"html_url":"https://github.com/Nicoolandgood/github_as_cdn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nicoolandgood/github_as_cdn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nicoolandgood%2Fgithub_as_cdn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nicoolandgood%2Fgithub_as_cdn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nicoolandgood%2Fgithub_as_cdn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nicoolandgood%2Fgithub_as_cdn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nicoolandgood","download_url":"https://codeload.github.com/Nicoolandgood/github_as_cdn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nicoolandgood%2Fgithub_as_cdn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32407164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cdn","css","github","html","pages","tutorial"],"created_at":"2024-12-24T08:18:00.545Z","updated_at":"2026-04-29T01:32:57.522Z","avatar_url":"https://github.com/Nicoolandgood.png","language":"HTML","readme":"# Use Github pages as CDN\n\n## Step 1: create a repository\n\nCreate a remote repository on Github then clone it.\n```sh\ngit clone [http or ssh link to your repo]\n```\n\nOr push your existing code from a local repo.\n```sh\ngit remote add origin [http or ssh link to your repo]\ngit push -u origin master\n```\n\nAdd a file such as an `index.html` at the root of your project folder.\n\n## Step 2: set up Github pages\n\n- Go to the `Setting` of your repository on Github and then go to `Pages`. \n- Select the branch you want to use for your page (e.g. `master`).\n- Press `Save`.\n\nWhen the Github page will be deployed, go to `https://[yourusername].github.io/[yourreponame]`.\n\n## Step 3: link files of your CDN to your projects\n\nLet's say we have this file structure in our repository: \n```\n[yourreponame]\n    |_  index.html\n    |_  my_style.css\n    |_  my_script.js\n```\n\nIn other projects, you can use your styles and scripts as such:\n\n```html\n    \u003c!-- for css --\u003e\n    \u003clink rel=\"stylesheet\" href=\"https://[yourusername].github.io/[yourreponame]/my_style.css\"\u003e\n\n    \u003c!-- for js --\u003e\n    \u003cscript src=\"https://[yourusername].github.io/[yourreponame]/my_script.js\"\u003e\u003c/script\u003e\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicoolandgood%2Fgithub_as_cdn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicoolandgood%2Fgithub_as_cdn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicoolandgood%2Fgithub_as_cdn/lists"}