Zone5 Documentation

Build optimized image galleries for SvelteKit with automatic processing, lightbox, and EXIF metadata.


Getting Started

New to Zone5? Start here:

How-To Guides

Task-oriented guides for common needs:

Configuration

Reference

Complete API documentation:

Core

Plugins

Data

UI

Explanation

Understand the design and architecture:

Architecture

Design Decisions

Implementation

Installation

# Create a new project
npx zone5 create my-gallery --input ~/photos

# Or add to existing project
npm install zone5

Basic Usage

<script>
  import { Zone5, Zone5Provider, Zone5Lightbox } from 'zone5/components';
  import photo from './photo.jpg?z5';
</script>

<Zone5Provider>
  <Zone5 images={[photo]} />
  <Zone5Lightbox />
</Zone5Provider>

Configuration

# .zone5.toml
[processor]
widths = [640, 768, 1280, 1920, 2560]