{"id":15383246,"url":"https://github.com/yuanchuan/svelte-pen","last_synced_at":"2025-04-15T18:30:41.836Z","repository":{"id":62286226,"uuid":"558373978","full_name":"yuanchuan/svelte-pen","owner":"yuanchuan","description":"Create Svelte component demo quickly","archived":false,"fork":false,"pushed_at":"2022-10-31T09:01:22.000Z","size":33,"stargazers_count":14,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-10T10:18:45.006Z","etag":null,"topics":["codepen","svelte","webcomponents"],"latest_commit_sha":null,"homepage":"https://codepen.io/yuanchuan/pen/WNybLmE","language":"JavaScript","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/yuanchuan.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":"2022-10-27T12:26:47.000Z","updated_at":"2025-01-16T06:16:19.000Z","dependencies_parsed_at":"2023-01-20T16:20:25.636Z","dependency_job_id":null,"html_url":"https://github.com/yuanchuan/svelte-pen","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuanchuan%2Fsvelte-pen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuanchuan%2Fsvelte-pen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuanchuan%2Fsvelte-pen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuanchuan%2Fsvelte-pen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuanchuan","download_url":"https://codeload.github.com/yuanchuan/svelte-pen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249128881,"owners_count":21217236,"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","svelte","webcomponents"],"created_at":"2024-10-01T14:36:35.675Z","updated_at":"2025-04-15T18:30:41.602Z","avatar_url":"https://github.com/yuanchuan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-pen\n\nCreate Svelte component demo quickly.\n\n\n```html\n\u003cscript type=\"module\" src=\"https://unpkg.com/svelte-pen\"\u003e\u003c/script\u003e\n\n\u003csvelte-pen\u003e\u003ctextarea\u003e\n  \u003cbutton on:click={handleClick}\u003e{count}\u003c/button\u003e\n\n  \u003cscript\u003e\n    let count = 0;\n\n    function handleClick() {\n      count += 1;\n    }\n  \u003c/script\u003e\n\u003c/textarea\u003e\u003c/svelte-pen\u003e\n```\n\n### Import another pen as Svelte component on CodePen.\n\nSee example: https://codepen.io/yuanchuan/pen/RwJPoNr\n\n```html\n\u003csvelte-pen\u003e\u003ctextarea\u003e\n  \u003cPercent value={20} /\u003e\n\n  \u003cscript\u003e\n    import Percent from '/yuanchuan/pen/WNybLmE.svelte';\n  \u003c/script\u003e\n\u003c/textarea\u003e\u003c/svelte-pen\u003e\n```\n\n### Pass component attributes to Svelte.\n\n```html\n\u003csvelte-pen name=\"svelte\"\u003e\u003ctextarea\u003e\n  \u003cp\u003e\n    Hello {name}!\n  \u003c/p\u003e\n\n  \u003cscript\u003e\n    export let name\n  \u003c/script\u003e\n\u003c/textarea\u003e\u003c/svelte-pen\u003e\n```\n\n### Use different Svelte version.\n\nThe default version is `3.52.0` but you can specify a different version through `svelte:version` attribute.\n\n```html\n\u003csvelte-pen svelte:version=\"latest\"\u003e\n\n\u003c/svelte-pen\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuanchuan%2Fsvelte-pen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuanchuan%2Fsvelte-pen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuanchuan%2Fsvelte-pen/lists"}