{"id":17275141,"url":"https://github.com/daun/astro-swup-playground","last_synced_at":"2025-04-14T09:12:32.144Z","repository":{"id":231487495,"uuid":"670820115","full_name":"daun/astro-swup-playground","owner":"daun","description":"Playground for testing and prototyping swup features","archived":false,"fork":false,"pushed_at":"2024-11-17T22:05:59.000Z","size":9694,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T09:11:53.558Z","etag":null,"topics":["astro","playground","swup"],"latest_commit_sha":null,"homepage":"","language":"Astro","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/daun.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-25T23:16:26.000Z","updated_at":"2025-04-03T09:47:43.000Z","dependencies_parsed_at":"2024-11-15T18:27:26.070Z","dependency_job_id":"b08580d4-7605-4eaa-9f9d-4424dbecc9c6","html_url":"https://github.com/daun/astro-swup-playground","commit_stats":null,"previous_names":["daun/astro-swup-playground"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fastro-swup-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fastro-swup-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fastro-swup-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fastro-swup-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daun","download_url":"https://codeload.github.com/daun/astro-swup-playground/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248852181,"owners_count":21171842,"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":["astro","playground","swup"],"created_at":"2024-10-15T08:55:31.277Z","updated_at":"2025-04-14T09:12:32.105Z","avatar_url":"https://github.com/daun.png","language":"Astro","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Astro Swup Playground\n\nPlayground for testing and prototyping [swup](https://swup.js.org) features and plugins.\n\n![Swup Playground Screenshot](./assets/screenshot.png)\n\n## Testing swup features and plugins\n\n- Swup is initialised in `src/modules/router.ts`.\n- Transition styles are defined in `src/styles/transitions.css`\n- Feature checks are defined in `src/pages`\n\nFor simple tests, copy the `dist` module file of swup or any plugin into the `packages` folder and\nimport it instead of the official package. For more realistic tests, use\n[npm link](https://docs.npmjs.com/cli/v8/commands/npm-link) or\n[yalc](https://github.com/wclr/yalc/) and import as usual from the package.\n\n```sh\ncp ./preload-plugin/dist/index.module.js ./astro-swup-playground/src/packages/preload-plugin.js\n```\n\n```js\nimport SwupPreloadPlugin from '../packages/preload-plugin';\n```\n\n## Testing the @swup/astro integration\n\nThis project has the official swup integration installed, but disabled. To test the integration:\n\n1. In `Layout.astro`, comment the router script `\u003cscript src=\"/src/modules/router\"\u003e\u003c/script\u003e`\n2. In `astro.config.mjs`, uncomment the swup integration import and initilisation\n\n## Commands\n\n| Command                   | Action                                           |\n| :------------------------ | :----------------------------------------------- |\n| `npm install`             | Installs dependencies                            |\n| `npm run dev`             | Starts local dev server at `localhost:3000`      |\n| `npm run build`           | Build your production site to `./dist/`          |\n| `npm run preview`         | Preview your build locally, before deploying     |\n| `npm run astro ...`       | Run CLI commands like `astro add`, `astro check` |\n| `npm run astro -- --help` | Get help using the Astro CLI                     |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaun%2Fastro-swup-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaun%2Fastro-swup-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaun%2Fastro-swup-playground/lists"}