{"id":20656943,"url":"https://github.com/robin-drexler/amp-gh-gist-proxy","last_synced_at":"2025-06-20T18:13:01.121Z","repository":{"id":139108201,"uuid":"79787089","full_name":"robin-drexler/amp-gh-gist-proxy","owner":"robin-drexler","description":"embed github gists in amp-iframes","archived":false,"fork":false,"pushed_at":"2017-01-23T14:55:45.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T16:47:10.110Z","etag":null,"topics":["amp","amp-iframe","github-gist","proxy"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/robin-drexler.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-23T08:56:01.000Z","updated_at":"2017-01-23T08:56:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3ec1f7b-4fbd-4d8f-8a79-37cdbfe822d0","html_url":"https://github.com/robin-drexler/amp-gh-gist-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/robin-drexler/amp-gh-gist-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robin-drexler%2Famp-gh-gist-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robin-drexler%2Famp-gh-gist-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robin-drexler%2Famp-gh-gist-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robin-drexler%2Famp-gh-gist-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robin-drexler","download_url":"https://codeload.github.com/robin-drexler/amp-gh-gist-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robin-drexler%2Famp-gh-gist-proxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260994007,"owners_count":23094279,"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":["amp","amp-iframe","github-gist","proxy"],"created_at":"2024-11-16T18:17:43.468Z","updated_at":"2025-06-20T18:12:56.093Z","avatar_url":"https://github.com/robin-drexler.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# amp-gh-gist-proxy\nEmbed github gists in amp-iframes\n\n## What\n[amp](https://www.ampproject.org/) does not permit to embed external script files.\n\nTherefore it's not easily possible to embed [github gists](https://gist.github.com/).\namp allows you to embed iframes, though. Due to the nature of iframes however, amp is not able to figure out the size of an iframe automatically.\n\nThis is where the proxy comes into play. It'll embed the gist content and tell amp about the height.\n\n## Installation\nClone this repo. There is no npm package (yet).\n\n## Usage\nThere is no hosted service yet, in order to use it you'd need to host it yourself.\n\n### Starting the service \n```cli\n$ npm start -- 8080 # 8080 is the port the server will listen to\n```\n\n### Using the proxy\n\n```cli\ncurl https://yourproxydomain.com/?url=https://gist.github.com/robin-drexler/d4d167f1aa0bd94094e2\n```\n\n### amp iframe example\n\n```html\n\u003camp-iframe width=\"627\" height=\"332\"\n   resizable\n   sandbox=\"allow-scripts allow-same-origin\"\n   src=\"https://yourproxydomain.com/?url={{}}\"\u003e\n \u003cdiv overflow\u003e\u003c/div\u003e\n\u003c/amp-iframe\u003e\n```\n\n### Real world example\n\nSee it in use here: [https://www.robin-drexler.com/2015/07/07/overriding-default-browser-shortcuts/](https://www.robin-drexler.com/2015/07/07/overriding-default-browser-shortcuts/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobin-drexler%2Famp-gh-gist-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobin-drexler%2Famp-gh-gist-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobin-drexler%2Famp-gh-gist-proxy/lists"}