{"id":19450955,"url":"https://github.com/rixo/playground-svelte","last_synced_at":"2025-10-18T08:48:23.466Z","repository":{"id":47372797,"uuid":"225126484","full_name":"rixo/playground-svelte","owner":"rixo","description":"A playground for Svelte experiments, demos \u0026 examples","archived":false,"fork":false,"pushed_at":"2022-12-11T15:30:46.000Z","size":3678,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T09:28:59.071Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rixo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-01T08:02:45.000Z","updated_at":"2020-12-12T11:53:26.000Z","dependencies_parsed_at":"2023-01-27T02:00:27.295Z","dependency_job_id":null,"html_url":"https://github.com/rixo/playground-svelte","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rixo/playground-svelte","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixo%2Fplayground-svelte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixo%2Fplayground-svelte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixo%2Fplayground-svelte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixo%2Fplayground-svelte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rixo","download_url":"https://codeload.github.com/rixo/playground-svelte/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixo%2Fplayground-svelte/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278289501,"owners_count":25962356,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-10T16:39:41.963Z","updated_at":"2025-10-04T08:59:34.826Z","avatar_url":"https://github.com/rixo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Svelte Template Hot\n\nThis is a copy of official [Svelte template](https://github.com/sveltejs/template) with added HMR support. It lives at https://github.com/rixo/svelte-template-hot.\n\nProgress of Svelte HMR support can be tracked in [this issue](https://github.com/sveltejs/svelte/issues/3632).\n\nThis template aims to remain as close to the official template as possible. Please refer to official docs for general usage. For HMR specific stuff, see bellow.\n\n**:warning: Experimental :warning:**\n\nThis HMR implementation relies on Svelte's private \u0026 non documented API. This means that it could stop working with any new version of Svelte.\n\n## Installation\n\nTo create a new project based on this template using [degit](https://github.com/Rich-Harris/degit):\n\n```bash\nnpx degit rixo/svelte-template-hot svelte-app\ncd svelte-app\nnpm install\n```\n\nRun the build script a first time, in order to avoid 404 errors about missing `bundle.css` in the browser:\n\n```bash\nnpm run build\n```\n\n## Quick start\n\n```bash\nnpm run dev\n```\n\nNavigate to [localhost:5000](http://localhost:5000). You should see your app running. Edit a component file in `src`, save it, and... Eyeball!\n\n## Usage\n\nHMR is supported both with [Nollup](https://github.com/PepsRyuu/nollup) or with Rollup itself with (very experimental) [rollup-plugin-hot](https://github.com/rixo/rollup-plugin-hot).\n\nNollup implements the shortest possible path from a file change to the module reload in the browser and is all in-memory. Said otherwise, it is insanely fast. Also, it has been around for some time so it is quite battle tested already.\n\nThe Rollup plugin on the other hand is still little more than a proof of concept by now, but it has better sourcemap support and error reporting.\n\nSupport for both Nollup and Rollup HMR is provided by (also pretty experimental) [rollup-plugin-svelte-hot](https://github.com/rixo/rollup-plugin-svelte-hot). Please report issues regarding HMR in [this plugin's tracker](https://github.com/rixo/rollup-plugin-svelte-hot/issues). Or [the current project](https://github.com/rixo/svelte-template-hot/issues) might make more sense. You be the judge.\n\n### Start HMR server with Nollup\n\n```bash\nnpm run dev:nollup\n```\n\n### Start Rollup with HMR support\n\n```bash\nnpm run dev:rollup\n```\n\n### Start with LiveReload (no HMR)\n\nThis is the default `dev` of official template.\n\n```bash\nnpm run dev:livereload\n```\n\n### Start with default method\n\nRollup HMR is also aliased as `dev` so you can simply run:\n\n```bash\nnpm run dev\n```\n\nYou can change the default `dev` script to your preferred method in the `scripts` section of `package.json`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frixo%2Fplayground-svelte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frixo%2Fplayground-svelte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frixo%2Fplayground-svelte/lists"}