{"id":50327533,"url":"https://github.com/dansup/loops-embed-demo","last_synced_at":"2026-05-29T07:32:35.233Z","repository":{"id":359328922,"uuid":"1238978558","full_name":"dansup/loops-embed-demo","owner":"dansup","description":"Loops Embed Demo","archived":false,"fork":false,"pushed_at":"2026-05-14T16:32:23.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-21T19:03:26.222Z","etag":null,"topics":["activitypub","loops"],"latest_commit_sha":null,"homepage":"https://dansup.github.io/loops-embed-demo/","language":"HTML","has_issues":false,"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/dansup.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-14T16:32:20.000Z","updated_at":"2026-05-14T20:29:53.000Z","dependencies_parsed_at":"2026-05-21T19:07:03.448Z","dependency_job_id":null,"html_url":"https://github.com/dansup/loops-embed-demo","commit_stats":null,"previous_names":["dansup/loops-embed-demo"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dansup/loops-embed-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansup%2Floops-embed-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansup%2Floops-embed-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansup%2Floops-embed-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansup%2Floops-embed-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dansup","download_url":"https://codeload.github.com/dansup/loops-embed-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansup%2Floops-embed-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33642312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["activitypub","loops"],"created_at":"2026-05-29T07:32:34.040Z","updated_at":"2026-05-29T07:32:35.228Z","avatar_url":"https://github.com/dansup.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Loops Embed Demo\n\nA small static demo showing how to embed [Loops](https://joinloops.org) videos on any webpage.\n\nDrop a `\u003cblockquote\u003e`, load `embed.js`, done.\n\n## What's in it\n\n- A single `index.html` with a handful of embedded loops\n- Dark mode toggle (persists via `localStorage`)\n- A floating event log panel that listens for `postMessage` events from the embeds — useful if you want to see what data the embed pushes back to the parent page (`play`, `pause`, `progress`, `seek`, etc.)\n- A copy-to-clipboard snippet so people can grab the embed code\n\n## Running it\n\nIt's one HTML file with no build step. Easiest way:\n\n```bash\nphp -S localhost:8000\n```\n\nThen open \u003chttp://localhost:8000\u003e. You can also just open `index.html` directly in a browser — works fine.\n\nOnly external deps are Tailwind via CDN and `embed.js` from `loops.video`.\n\n## The embed\n\n```html\n\u003cblockquote class=\"loops-embed\" data-shortcode=\"YOUR_SHORTCODE\"\u003e\n  \u003ca href=\"https://loops.video/v/YOUR_SHORTCODE\"\u003eCaption fallback\u003c/a\u003e\n\u003c/blockquote\u003e\n\u003cscript async src=\"https://loops.video/embed.js\"\u003e\u003c/script\u003e\n```\n\nSwap in any shortcode. The script tag only needs to be on the page once, no matter how many embeds you have.\n\n## Events\n\nThe embed `postMessage`s back to the parent with `context: \"loops-embed\"` and an `event` field. Open the event log (icon, bottom right) and play around with a video to see them come through.\n\n## License\n\nAGPLv3","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdansup%2Floops-embed-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdansup%2Floops-embed-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdansup%2Floops-embed-demo/lists"}