{"id":13672878,"url":"https://github.com/egoist/svelte-convert","last_synced_at":"2025-07-04T09:37:59.127Z","repository":{"id":42868345,"uuid":"258755295","full_name":"egoist/svelte-convert","owner":"egoist","description":"Convert Svelte component to Vue or React component, with SSR support.","archived":false,"fork":false,"pushed_at":"2023-01-06T04:23:39.000Z","size":907,"stargazers_count":81,"open_issues_count":15,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-16T04:19:18.319Z","etag":null,"topics":["but-anyways","maybe-naive"],"latest_commit_sha":null,"homepage":"","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/egoist.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}},"created_at":"2020-04-25T11:08:44.000Z","updated_at":"2025-02-04T00:19:56.000Z","dependencies_parsed_at":"2023-02-05T07:16:29.506Z","dependency_job_id":null,"html_url":"https://github.com/egoist/svelte-convert","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/egoist/svelte-convert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Fsvelte-convert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Fsvelte-convert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Fsvelte-convert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Fsvelte-convert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egoist","download_url":"https://codeload.github.com/egoist/svelte-convert/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Fsvelte-convert/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263484395,"owners_count":23473753,"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":["but-anyways","maybe-naive"],"created_at":"2024-08-02T09:01:54.488Z","updated_at":"2025-07-04T09:37:59.082Z","avatar_url":"https://github.com/egoist.png","language":"TypeScript","funding_links":["https://github.com/sponsors/egoist"],"categories":["TypeScript"],"sub_categories":[],"readme":"# Svelte-Convert\n\nConvert Svelte component to Vue or React component, with SSR support.\n\n## Why \n\n[Svelte](https://svelte.dev) outputs light-weight JavaScript code, so you can use it to write framework agnostic component and then consume it in your React / Vue app.\n\n## Install\n\n```bash\nyarn add svelte-convert\n```\n\n## Usage\n\n### React\n\n```jsx\nimport { convert } from 'svelte-convert/react'\nimport SvelteCounter from './Counter.svelte'\n\n// Convert the Svelte component to React Component\nconst Counter = convert(SvelteCounter)\n\nexport default () =\u003e {\n  return \u003cCounter initialCount={2} /\u003e\n}\n```\n\n### Vue\n\n```vue\n\u003ctemplate\u003e\n  \u003cCounter :initialCount=\"2\" /\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport { convert } from 'svelte-convert/vue'\nimport SvelteCounter from './Counter.svelte'\n\nexport default {\n  components: {\n    Counter: convert(SvelteCounter)\n  }\n}\n\u003c/script\u003e\n```\n\n## Related\n\nYou might also like:\n\n- [React to Vue](https://github.com/egoist/react-to-vue)\n- [Vue to React](https://github.com/egoist/vue-to-react)\n\n## License\n\nMIT \u0026copy; [EGOIST (Kevin Titor)](https://github.com/sponsors/egoist)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegoist%2Fsvelte-convert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegoist%2Fsvelte-convert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegoist%2Fsvelte-convert/lists"}