{"id":13599193,"url":"https://github.com/spences10/sveltekit-embed","last_synced_at":"2025-04-13T04:59:02.926Z","repository":{"id":36965227,"uuid":"387004664","full_name":"spences10/sveltekit-embed","owner":"spences10","description":"SvelteKit embed components","archived":false,"fork":false,"pushed_at":"2025-04-12T18:51:13.000Z","size":5065,"stargazers_count":220,"open_issues_count":16,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T04:58:52.928Z","etag":null,"topics":["codepen","deezer","embed","spotify","svelte","youtube"],"latest_commit_sha":null,"homepage":"https://sveltekit-embed.pages.dev","language":"TypeScript","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/spences10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2021-07-17T17:50:26.000Z","updated_at":"2025-03-10T08:07:14.000Z","dependencies_parsed_at":"2023-11-29T22:25:46.433Z","dependency_job_id":"e1f705c3-b686-45fa-9753-17d5265abc5c","html_url":"https://github.com/spences10/sveltekit-embed","commit_stats":{"total_commits":628,"total_committers":9,"mean_commits":69.77777777777777,"dds":0.6289808917197452,"last_synced_commit":"70cffcbe5de78132815da16be878f9c447e5f67a"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spences10%2Fsveltekit-embed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spences10%2Fsveltekit-embed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spences10%2Fsveltekit-embed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spences10%2Fsveltekit-embed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spences10","download_url":"https://codeload.github.com/spences10/sveltekit-embed/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665759,"owners_count":21142123,"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":["codepen","deezer","embed","spotify","svelte","youtube"],"created_at":"2024-08-01T17:01:00.705Z","updated_at":"2025-04-13T04:59:02.906Z","avatar_url":"https://github.com/spences10.png","language":"TypeScript","funding_links":[],"categories":["Enhancers/Extensions","TypeScript","Sites"],"sub_categories":["The _How To's?_"],"readme":"# SvelteKit Embed\n\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n\n[![All Contributors](https://img.shields.io/badge/all_contributors-8-orange.svg?style=flat-square)](#contributors-)\n\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\n[![MadeWithSvelte.com shield](https://madewithsvelte.com/storage/repo-shields/3786-shield.svg)](https://madewithsvelte.com/p/sveltekit-embed/shield-link)\n\n[![Tests: Unit](https://github.com/spences10/sveltekit-embed/actions/workflows/unit-test.yml/badge.svg)](https://github.com/spences10/sveltekit-embed/actions/workflows/unit-test.yml)\n\nThis is a collection of embed components I use on a regular basis\npackaged up for use.\n\n![sveltekit embed cover](.github/sveltekit-embed.jpg)\n\nEach component with the exception of `Toot` and `Tweet` is wrapped in\nan intersection observer `GeneralObserver` which will load up the\ncomponent when it scrolls into the viewport.\n\n## Use it\n\n```bash\nnpm i -D sveltekit-embed\n```\n\nUse like a normal Svelte component:\n\n```html\n\u003cscript\u003e\n\timport { AnchorFm } from 'sveltekit-embed';\n\u003c/script\u003e\n\n\u003cAnchorFm\n\theight=\"165\"\n\tepisodeUrl=\"purrfect-dev/embed/episodes/1-31---Delivering-Digital-Content-with-GraphCMS-e14g55c/a-a650v9a\"\n/\u003e\n```\n\n## Supported platforms\n\n- AnchorFm\n- Buzzsprout\n- CodePen\n- Deezer\n- GenericEmbed\n- Gist\n- Guild\n- Relive\n- SimpleCast\n- Slides\n- SoundCloud\n- Spotify\n- StackBlitz\n- Toot\n- Tweet\n- Vimeo\n- YouTube\n- Zencastr\n\n## Got questions?\n\n[Start a discussion](https://github.com/spences10/sveltekit-embed/discussions/new)\n\n## Something not work?\n\nCreate an\n[issue](https://github.com/spences10/sveltekit-embed/issues/new)\n\n## Developing locally\n\nFor the `web` page and testing new components there you'll need to\nhave empty `env` variables. Rename the `.sample.env` file to `.env`.\n\n```bash\nmv .sample.env apps/web/.env\n```\n\nCreate the component in the\n`packages/sveltekit-embed/src/lib/components` directory.\n\nExport the component from the\n`packages/sveltekit-embed/src/lib/index.ts` file:\n\n```ts\nexport { default as MyComponent } from './components/my-component.svelte';\n```\n\nImport the component locally into the `src/routes/+page.md` file, or\ncreate your own (`+page.svelte`) page for testing:\n\n```svelte\nimport {MyComponent} from 'sveltekit-embed'\n```\n\nAfter importing the component, add it to the\n`Available Components List` and document it:\n\n```markdown\n## Available Components List\n\n- [MyComponent](#mycomponent)\n```\n\n````markdown\n## MyComponent\n\nProps:\n\n```ts\nmyComponentId: string = '';\n```\n\nUsage:\n\n```html\n\u003cMyComponent myComponentId=\"...\" /\u003e\n```\n\nOutput:\n\n\u003cMyComponent myComponentId=\"...\" /\u003e\n````\n\nRunning the dev server on the `web` page will package the changes for\nuse in the web app.\n\nTest locally, then submit a PR 🙏\n\n## Thanks\n\nCredit to [@pauliescanlon](https://github.com/pauliescanlon) for the\noriginal version of this project in\n[MDX Embed](https://github.com/pauliescanlon/mdx-embed).\n\n## Packaging for NPM\n\nScott, this is here for you to remember how to do this 🙃\n\nAlthough I detailed this in\n[Making npm Packages with SvelteKit](https://scottspence.com/posts/making-npm-packages-with-sveltekit)\nI think it's best to put it here as I always come to the README and\nthe instructions are never there! 😅\n\n**Publish the project to NPM**\n\n```bash\n# authenticate with npm\nnpm login\n# bump version with npm\nnpm version 0.0.8\n# package with sveltekit\npnpm run package\n# publish\nnpm publish\n# push tags to github\ngit push --tags\n```\n\n**Publish @next package**\n\nSame procedure except use the `--tag` flag:\n\n```bash\n# authenticate with npm\nnpm login\n# bump version with npm\nnpm version 0.0.13\n# package with sveltekit\npnpm run package\n# publish with tag\nnpm publish --tag next\n# push tags to github\ngit push --tags\n```\n\n**Move @next package to latest**\n\n```bash\n# authenticate with npm\nnpm login\n# move @next to latest\nnpm dist-tag add sveltekit-embed@0.0.13 latest\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://scottspence.com/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/234708?v=4?s=100\" width=\"100px;\" alt=\"Scott Spence\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eScott Spence\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/spences10/sveltekit-embed/commits?author=spences10\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/Cahllagerfeld\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/43843195?v=4?s=100\" width=\"100px;\" alt=\"Cahllagerfeld\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eCahllagerfeld\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/spences10/sveltekit-embed/commits?author=Cahllagerfeld\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://matiashernandez.dev/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/282006?v=4?s=100\" width=\"100px;\" alt=\"Matías Hernández Arellano\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMatías Hernández Arellano\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/spences10/sveltekit-embed/commits?author=matiasfha\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://ruhr.social/@sphinxc0re\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/3702016?v=4?s=100\" width=\"100px;\" alt=\"Julian Laubstein\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJulian Laubstein\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/spences10/sveltekit-embed/commits?author=sphinxc0re\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/Ennoriel\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/23211596?v=4?s=100\" width=\"100px;\" alt=\"Maxime Dupont\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMaxime Dupont\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/spences10/sveltekit-embed/commits?author=Ennoriel\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://jamesperkins.dev/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/45409975?v=4?s=100\" width=\"100px;\" alt=\"James Perkins\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJames Perkins\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/spences10/sveltekit-embed/commits?author=perkinsjr\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://joaopalmeiro.github.io/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/17132927?v=4?s=100\" width=\"100px;\" alt=\"João Palmeiro\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJoão Palmeiro\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/spences10/sveltekit-embed/commits?author=joaopalmeiro\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/Jason3S\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/3740137?v=4?s=100\" width=\"100px;\" alt=\"Jason Dent\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJason Dent\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/spences10/sveltekit-embed/commits?author=Jason3S\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n  \u003ctfoot\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" size=\"13px\" colspan=\"7\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg\"\u003e\n          \u003ca href=\"https://all-contributors.js.org/docs/en/bot/usage\"\u003eAdd your contributions\u003c/a\u003e\n        \u003c/img\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tfoot\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\n([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\nThis project follows the\n[all-contributors](https://github.com/all-contributors/all-contributors)\nspecification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspences10%2Fsveltekit-embed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspences10%2Fsveltekit-embed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspences10%2Fsveltekit-embed/lists"}