{"id":19521018,"url":"https://github.com/rodneylab/sveltekit-simple-image-gallery","last_synced_at":"2026-02-17T21:04:32.365Z","repository":{"id":59295549,"uuid":"422224109","full_name":"rodneylab/sveltekit-simple-image-gallery","owner":"rodneylab","description":"Simple Svelte responsive image gallery: create a ribbon gallery, using Svelte dimension bindings to maintain the aspect ratio of all images.","archived":false,"fork":false,"pushed_at":"2025-01-29T09:15:28.000Z","size":4728,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T10:04:51.328Z","etag":null,"topics":["image-gallery","lazyload-images","next-gen","responsive-images","responsive-layout","svelte","sveltekit","vite-imagetools"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rodneylab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-28T13:54:15.000Z","updated_at":"2025-01-29T09:14:56.000Z","dependencies_parsed_at":"2024-11-11T00:29:00.077Z","dependency_job_id":"c4597cb7-bffd-4ab2-a2fa-e0ab0da69907","html_url":"https://github.com/rodneylab/sveltekit-simple-image-gallery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodneylab%2Fsveltekit-simple-image-gallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodneylab%2Fsveltekit-simple-image-gallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodneylab%2Fsveltekit-simple-image-gallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodneylab%2Fsveltekit-simple-image-gallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodneylab","download_url":"https://codeload.github.com/rodneylab/sveltekit-simple-image-gallery/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250959523,"owners_count":21514283,"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":["image-gallery","lazyload-images","next-gen","responsive-images","responsive-layout","svelte","sveltekit","vite-imagetools"],"created_at":"2024-11-11T00:28:51.231Z","updated_at":"2026-02-17T21:04:32.359Z","avatar_url":"https://github.com/rodneylab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./images/rodneylab-github-sveltekit-simple-image-gallery.png\" alt=\"Rodney Lab sveltekit-simple-image-gallery Github banner\"\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca aria-label=\"Open Rodney Lab site\" href=\"https://rodneylab.com\" rel=\"nofollow noopener noreferrer\"\u003e\n    \u003cimg alt=\"Rodney Lab logo\" src=\"https://rodneylab.com/assets/icon.png\" width=\"60\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e\n  SvelteKit Simple Image Gallery\n\u003c/h1\u003e\n\n# sveltekit-simple-image-gallery\n\n[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/rodneylab/sveltekit-simple-image-gallery)\n\nDemo code for creating a simple responsive image gallery with Svelte. The code\naccompanies the\n\u003ca aria-label=\"Open Rodney Lab blog post on using vanilla extract with Svelte Kit\" href=\"https://rodneylab.com/simple-svelte-responsive-image-gallery/\"\u003epost\non creating a simple responsive image gallery SvelteKit\u003c/a\u003e. If you have any\nquestions, please drop a comment at the bottom of that page.\n\n## Building and previewing the site\n\nIf you're seeing this, you've probably already done this step. Congrats!\n\n```bash\ngit clone https://github.com/rodneylab/sveltekit-simple-image-gallery.git\ncd sveltekit-simple-image-gallery\npnpm install # or npm install\npnpm run dev\n```\n\n## Building\n\n```bash\npnpm run build\n```\n\n\u003e You can preview the built app with `pnpm run preview`, regardless of whether\n\u003e you installed an adapter. This should _not_ be used to serve your app in\n\u003e production.\n\n## Customising for your own images\n\n1. The project includes the raw images in the `src/lib/assets` folder. Add your\n   images there.\n2. `src/data/image.json` links the image files names with alt text and titles.\n   Update this manually or generate it based on an existing source for your\n   images.\n3. `src/data/generated` has a JavaScript file for each base image, each\n   containing data needed to create the responsive and next-gen image set from\n   the base images. I generated these files automatically using the\n   `generate-responsive-image-data.js` script in the project root directory. You\n   can update it to suit your needs, then run it with `node`. I prefer using\n   vite-node (which will also work with TypeScript projects):\n\n```shell\npnpm add -D vite-node\npnpm vite-node generate-responsive-image-data.js\n```\n\nHope that\u0026rsquo;s clear, but let me know if I can improve the explanation.\n\nFeel free to jump into the\n[Rodney Lab matrix chat room](https://matrix.to/#/%23rodney:matrix.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodneylab%2Fsveltekit-simple-image-gallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodneylab%2Fsveltekit-simple-image-gallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodneylab%2Fsveltekit-simple-image-gallery/lists"}