{"repo":"spences10/sveltekit-embed","free":true,"listed":false,"github":"https://github.com/spences10/sveltekit-embed","clone":"git clone https://github.com/spences10/sveltekit-embed.git","description":"SvelteKit embed components","language":"TypeScript","stars":239,"topics":["deezer","embed","spotify","svelte","youtube","codepen"],"license":"MIT","category":"ui-components","readme_excerpt":"SvelteKit Embed This is a collection of embed components I use on a regular basis packaged up for use. Each component with the exception of Toot and Tweet is wrapped in an intersection observer GeneralObserver which will load up the component when it scrolls into the viewport. Use it Use like a normal Svelte component: Supported platforms - AnchorFm - Buzzsprout - CodePen - Deezer - GenericEmbed - Gist - Guild - Relive - SimpleCast - Slides - SoundCloud - Spotify - StackBlitz - Toot - Tweet - Vimeo - YouTube - Zencastr Got questions? Start a discussion Something not work? Create an issue Developing locally For the web page and testing new components there you'll need to have empty env variables. Rename the .sample.env file to .env . Create the component in the packages/sveltekit-embed/src/lib/components directory. Export the component from the packages/sveltekit-embed/src/lib/index.ts file: Import the component locally into the src/routes/+page.md file, or create your own ( +page.svelte ) page for testing: After importing the component, add it to the Available Components List and document it: ts myComponentId: string = ''; html Running the dev server on the web page will package the changes for use in the web app. Test locally, then submit a PR 🙏 Thanks Credit to @pauliescanlon for the original version of this project in MDX Embed. Packaging for NPM Scott, this is here for you to remember how to do this 🙃 Although I detailed this in Making npm Packages with SvelteKit I thin","default_branch":null,"files":null,"tree":[],"storefront":"/r/spences10","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spences10/sveltekit-embed/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}