Skip to content

iiiris

pipeline status coverage report latest release license IIIF Image API container docs

A IIIF Image API 3.0 (and 2.x) compatible image server in Go, backed by libvips for image processing.

Status: 1.0 — stable. The IIIF API surface, the YAML config schema + IIIRIS_* env vars, and the CLI flags change incompatibly only in a major release (see docs/specs/releases.md "Versioning"). Full IIIF Image API 3.0 and 2.0 Level 2 surface works end-to-end against the libvips pipeline; comprehensive caching, three source backends, scriptable hooks, an operator admin UI, and a multi-arch container release pipeline ship in the box. See the documentation site at docs.iiiris.org (source in docs/) for feature reference and CHANGELOG.md for what's landed.

Vision

Our ambition is broad: to cover the full breadth of the IIIF APIs in a single, performant, easy-to-operate stack. The Image API is our grounding point — the foundation we're building first and building well — and the rest of the IIIF surface orients around it.

Two principles guide the work:

  • Performance-competitive. A first-class IIIF server should be fast and cheap to run. We benchmark iiiris head-to-head against established servers and treat parity-or-better on throughput and latency as a release gate, not an afterthought.
  • Highly feature-complete. We aim to cover each API's surface honestly — no advertised feature that the server won't actually serve.

Roadmap. With the Image API as the load-bearing core, we intend to grow iiiris outward across the full breadth of the IIIF APIs — Presentation, Content Search, Change Discovery, and the broader ecosystem — so a single performant Go binary can stand behind a complete IIIF deployment. See docs/ROADMAP.md for the phased plan and the road to a platform 1.0.

Quick start

The fastest way to try iiiris is the released container image. You only need Docker; nothing has to be built.

1. Start the server

docker run --rm -p 8080:8080 registry.gitlab.com/iiiris-org/iiiris:latest

2. Check it's running. Open these in a browser, or use curl:

  • http://localhost:8080/health returns ok
  • http://localhost:8080/iiif/3/sample.jpg/info.json describes the bundled sample image
  • http://localhost:8080/iiif/3/sample.jpg/full/400,/0/default.jpg is the sample, 400 px wide

3. Serve your own images. Mount a folder of images into the container and point iiiris at it:

docker run --rm -p 8080:8080 \
  -v /path/to/your/images:/srv/images:ro \
  -e IIIRIS_FS_ROOT=/srv/images \
  registry.gitlab.com/iiiris-org/iiiris:latest

An image at /path/to/your/images/photo.jpg is then available as http://localhost:8080/iiif/3/photo.jpg/info.json. Sub-folders become part of the identifier (a/b/photo.jpg).

4. View a folder as a book or gallery. iiiris turns each folder of images into a IIIF manifest and ships a viewer. Try it with the demo corpus in this repository:

docker run --rm -p 8080:8080 \
  -v "$PWD/examples/images:/srv/images:ro" \
  -e IIIRIS_FS_ROOT=/srv/images \
  registry.gitlab.com/iiiris-org/iiiris:latest

Then open http://localhost:8080/view/library/manuscript to page through it in Mirador. Add ?viewer=uv to use Universal Viewer instead.

5. Turn on the admin dashboard (optional). Add credentials and visit http://localhost:8080/admin/:

docker run --rm -p 8080:8080 \
  -e IIIRIS_ADMIN_USER=admin -e IIIRIS_ADMIN_PASS=choose-a-password \
  registry.gitlab.com/iiiris-org/iiiris:latest

Next steps: configuration covers every setting (YAML file or IIIRIS_* environment variables); sources covers serving from S3 or HTTP instead of a folder; deployment covers running in production, including the standalone Linux binaries and the Windows MSI attached to each release.

Building from source? See docs/building.md.

What you get

  • IIIF Image API 3.0 (Level 2) and 2.x. Crop, scale, rotate, and convert images on the fly. JPEG, PNG, TIFF, and WebP in and out, plus JPEG 2000 and HTJ2K input. See IIIF compliance.
  • IIIF Presentation API 3.0 (and 2.1). Serve your own manifests, or have iiiris build them from folders of images, with a bundled Mirador 4 / Universal Viewer at /view/{id}. See presentation.
  • IIIF Content State API 1.0. Shareable links that open the viewer at an exact page or region. See content state.
  • Web Annotation store (optional). Store annotations on your images with the W3C Web Annotation Protocol, load them in bulk from scripts, and draw and edit them in the bundled Mirador after signing in. See annotations.
  • IIIF Content Search 2.0 and 1.0 (optional). Search the text of stored annotations within a manifest, with autocomplete, from the viewer's search box. See content search.
  • IIIF Authorization Flow 2.0 (and Auth 1.0 for older viewers). Click-through, login, kiosk, and external patterns, with htpasswd, reverse-proxy header, signed-callback, or OIDC backends. See IIIF auth.
  • Images from anywhere. A local folder, an HTTP server, or S3. See sources.
  • Fast by default. Rendered images, info.json, and source files are cached in memory, on disk, in S3, or in Redis. See caches.
  • Scriptable. Hooks (JavaScript, templates, or a webhook) map IIIF identifiers to your storage, gate access, and add watermarks. See hooks.
  • Private and colour-correct. Derivatives strip EXIF/GPS metadata, convert to sRGB, and apply EXIF orientation by default.
  • An admin dashboard at /admin/: live traffic and cache stats, a config editor, cache purge, a file browser, and a zoomable viewer. See admin.

iiiris admin status dashboard

  • Ready to operate. /health and /ready probes, optional Prometheus metrics, Sentry error tracking, and OpenTelemetry tracing. Concurrency and size limits protect the server.
  • AI-agent access (optional). A read-only Model Context Protocol server at /mcp. See MCP.
  • Runs anywhere. A ~46 MB multi-arch container (linux/amd64 + arm64), Linux binaries, and a Windows MSI installer. With no configuration it starts and serves a sample image.

For contributors: docs/building.md (build and test), docs/architecture.md (package map and request flow), docs/specs/ (subsystem contracts), bench/ (the benchmark against Cantaloupe), and CLAUDE.md (working conventions).

License

iiiris is licensed under the Apache License 2.0. See NOTICE for required attributions and THIRD_PARTY_LICENSES.md for the full dependency inventory — every bundled or linked component is permissively licensed (MIT / BSD / Apache-2.0); the runtime dependency on libvips is LGPL-2.1-or-later and compatible with Apache-2.0 outbound licensing.