diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-07-13 20:26:15 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-07-13 20:26:15 +0530 |
| commit | 771b0424e5eef22ebbbb9945e96166c516ed54fb (patch) | |
| tree | ec666d0f176955380816e7b38aabd9756b1e0b63 | |
| parent | 14aec7af5337a99536a0c906262c3f6143f03030 (diff) | |
| download | galleryd-771b0424e5eef22ebbbb9945e96166c516ed54fb.tar.xz galleryd-771b0424e5eef22ebbbb9945e96166c516ed54fb.zip | |
chore(documentation): add readme
| -rw-r--r-- | README.md | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..3f14ab6 --- /dev/null +++ b/README.md @@ -0,0 +1,85 @@ +<div align="center"> + +# galleryd + + + + + +A fast, lightweight photo gallery backend written in Go. + +galleryd scans one or more image directories, extracts EXIF metadata, generates cached WebP thumbnails, and exposes a simple HTTP API for powering web, desktop, or mobile gallery applications. + +</div> + +## Features + +- Scan multiple gallery directories +- Extract EXIF metadata +- Stable photo IDs +- WebP thumbnail generation +- Disk-backed thumbnail cache +- In-memory gallery index +- HTTP API +- Configurable via command-line flags + +## Installation + +```bash +git clone ... +cd galleryd + +go build ./cmd/galleryd +``` + +## Usage + +```bash +galleryd \ + --dir ~/Pictures \ + --dir ~/Phone \ + --cache-dir ~/.cache/galleryd \ + --addr :8082 +``` + +## API + +| Method | Endpoint | Description | +| ------ | ----------- | --------------- | +| GET | /health | Health check | +| GET | /api/photos | List all photos | +| GET | /photo/{id} | Original image | +| GET | /thumb/{id} | Thumbnail | + +## Architecture + +``` +Scanner + +↓ + +Metadata Reader + +↓ + +Gallery Builder + +↓ + +Gallery Service + +↓ + +HTTP API +``` + +## Roadmap + +- Gallery reload +- Filesystem watching +- Search +- Frontend + +## License + +MIT |