Skip to content

meticoeus/svelte-photoviewer

 
 

Repository files navigation

svelte photo-viewer

Create a Google Photos-esque image gallery. This can be used with Vanilla JS, as well as within a Svelte project. This is an updated fork of https://github.com/psnszsn/svelte-photoviewer converted to Typescript and svelte 4 using Sveltekit to build the library instead of rollup.

Demo

https://meticoeus.github.io/svelte-photoviewer

Developing

Install dependencies with npm install, then start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Update the library in src/lib. Update the preview in src/routes.

Building

To build your library:

npm run package

To create a production version of your showcase app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

Publishing

To publish an update npm:

npm publish

Releases

No releases published

Packages

No packages published

Languages

  • Svelte 47.6%
  • TypeScript 43.2%
  • JavaScript 6.9%
  • HTML 1.7%
  • CSS 0.6%