{"id":24848657,"url":"https://github.com/vidschofelix/vite-plugin-svelte-anywhere","last_synced_at":"2026-02-24T15:35:34.550Z","repository":{"id":274534093,"uuid":"923225399","full_name":"vidschofelix/vite-plugin-svelte-anywhere","owner":"vidschofelix","description":"Use Svelte components anywhere","archived":false,"fork":false,"pushed_at":"2025-08-12T00:28:07.000Z","size":3117,"stargazers_count":23,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-14T20:33:21.079Z","etag":null,"topics":["svellte","vite-plugin","web-components"],"latest_commit_sha":null,"homepage":"https://svelte-anywhere.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/vidschofelix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-01-27T21:09:04.000Z","updated_at":"2025-10-06T09:32:38.000Z","dependencies_parsed_at":"2025-01-27T22:26:35.176Z","dependency_job_id":"9968f052-45e0-41ab-9561-b32373b6bd51","html_url":"https://github.com/vidschofelix/vite-plugin-svelte-anywhere","commit_stats":null,"previous_names":["vidschofelix/vite-plugin-svelte-everywhere","vidschofelix/vite-plugin-svelte-anywhere"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/vidschofelix/vite-plugin-svelte-anywhere","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vidschofelix%2Fvite-plugin-svelte-anywhere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vidschofelix%2Fvite-plugin-svelte-anywhere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vidschofelix%2Fvite-plugin-svelte-anywhere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vidschofelix%2Fvite-plugin-svelte-anywhere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vidschofelix","download_url":"https://codeload.github.com/vidschofelix/vite-plugin-svelte-anywhere/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vidschofelix%2Fvite-plugin-svelte-anywhere/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29788159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T10:45:18.109Z","status":"ssl_error","status_checked_at":"2026-02-24T10:45:09.911Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["svellte","vite-plugin","web-components"],"created_at":"2025-01-31T12:16:40.607Z","updated_at":"2026-02-24T15:35:34.526Z","avatar_url":"https://github.com/vidschofelix.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](docs/public/logo.png)\n\n# Vite Plugin: Svelte Anywhere\n\n[![NPM Version](https://img.shields.io/npm/v/vite-plugin-svelte-anywhere)](https://www.npmjs.com/package/vite-plugin-svelte-anywhere)\n[![NPM Downloads](https://img.shields.io/npm/d18m/vite-plugin-svelte-anywhere)](https://img.shields.io/npm/d18m/vite-plugin-svelte-anywhere)\n[![Build Status](https://github.com/vidschofelix/vite-plugin-svelte-anywhere/actions/workflows/release.yml/badge.svg)](https://github.com/vidschofelix/vite-plugin-svelte-anywhere/actions)\n[![License](https://img.shields.io/github/license/vidschofelix/vite-plugin-svelte-anywhere)](https://github.com/vidschofelix/vite-plugin-svelte-anywhere/blob/main/LICENSE)\n\n**Use Svelte components anywhere HTML is accepted.**\n\nThis Vite plugin lets you define **custom elements** right inside your Svelte components—just add an annotation, and you're ready to embed them in any environment, from static HTML to legacy backends or CMS platforms.\n\nNo boilerplate. No runtime shenanigans. Just Svelte, anywhere.\n\n---\n\n### Features\n\n- 🧩 **Custom Elements from Svelte** — Turn any Svelte component into a reusable HTML element with a single comment.\n- 🛠 **Zero Boilerplate** — No manual registration or wrapper code.\n- 🔁 **Dev + Prod Ready** — Works with Vite HMR dev server and production builds\n- 🌓 **Shadow DOM Control** — Opt-in or out with simple config.\n- ⚡ **Lazy/Eager/Custom Templates** — Choose how your components are loaded.\n\n---\n\n### Links\n\n- 📚 [Documentation](https://svelte-anywhere.dev)\n- ✨ [Quickstart Guide](https://svelte-anywhere.dev/guide/quickstart)\n- 🎮 [Live Demo](https://svelte-anywhere.dev/demo)\n\n---\n\n### Quick Example\n\n```svelte\n\u003c!-- @custom-element my-counter shadow=\"open\" template=\"lazy\" --\u003e\n\u003cscript\u003e\n  let { count = 0 } = $props();\n\u003c/script\u003e\n\n\u003cbutton onclick={() =\u003e count++}\u003e\n  Clicked {count} times\n\u003c/button\u003e\n```\n\nNow just use it anywhere:\n```html\n\u003cmy-counter count=\"5\"\u003e\u003c/my-counter\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvidschofelix%2Fvite-plugin-svelte-anywhere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvidschofelix%2Fvite-plugin-svelte-anywhere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvidschofelix%2Fvite-plugin-svelte-anywhere/lists"}