No description
  • TypeScript 96.2%
  • Python 1.6%
  • CSS 1.3%
  • JavaScript 0.5%
  • Dockerfile 0.3%
Find a file
Niels Franke ef353dfe71 Editor: flip between project images (Lightroom-style prev/next)
The editor knew only its own image + versions. Load the project's sibling
images (grid order) and add a prev/next control with a "Bild i / n" counter in
the top toolbar, plus Page-up/down shortcuts. Left/right still page the version
strip (the horizontal axis); a different photo is the other axis, so it gets the
Page keys + toolbar arrows. Each image has its own editor route, so navigation
is a plain router.push. Hidden when the project has a single image.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UU4agQDtNuX4nXFzj6BSAo
2026-06-22 00:02:31 +02:00
public Initial commit from Create Next App 2026-06-18 13:57:07 +02:00
server/ai/birefnet Local AI: run BiRefNet in-process, no URL or external service 2026-06-19 13:00:08 +02:00
src Editor: flip between project images (Lightroom-style prev/next) 2026-06-22 00:02:31 +02:00
.dockerignore Phase 1 / Session 1.4: Docker deployment (completes Phase 1) 2026-06-18 14:20:41 +02:00
.env.example Add first-run setup wizard (no invite code) 2026-06-18 18:31:20 +02:00
.gitignore chore: gitignore local agent/tooling config 2026-06-19 13:14:10 +02:00
AGENTS.md Initial commit from Create Next App 2026-06-18 13:57:07 +02:00
atly_build.md Phase 1 / Session 1.1: Next.js + Tailwind + shadcn/ui scaffolding 2026-06-18 13:58:51 +02:00
CLAUDE.md Surface image versions in projects + add local background removal 2026-06-18 23:12:13 +02:00
components.json Phase 1 / Session 1.1: Next.js + Tailwind + shadcn/ui scaffolding 2026-06-18 13:58:51 +02:00
docker-compose.yml Use port 4880 instead of the default 3000 2026-06-18 16:09:47 +02:00
Dockerfile Use port 4880 instead of the default 3000 2026-06-18 16:09:47 +02:00
eslint.config.mjs Phase 3.5: introduce AI provider abstraction (cloud + local) 2026-06-18 19:12:16 +02:00
next.config.ts Local AI: run BiRefNet in-process, no URL or external service 2026-06-19 13:00:08 +02:00
package-lock.json Local AI: run BiRefNet in-process, no URL or external service 2026-06-19 13:00:08 +02:00
package.json Local AI: run BiRefNet in-process, no URL or external service 2026-06-19 13:00:08 +02:00
postcss.config.mjs Initial commit from Create Next App 2026-06-18 13:57:07 +02:00
README.md Update README and CLAUDE.md for AI provider abstraction 2026-06-18 21:06:13 +02:00
tsconfig.json Initial commit from Create Next App 2026-06-18 13:57:07 +02:00

Atly

Selfhosted AI photo-editing studio. Upload images, edit them with AI, keep every version, and organize results into projects — no SaaS, no lock-in. AI runs through a pluggable provider layer: today via your own OpenRouter key (cloud), with a self-hosted local backend planned.

Name from Atelier. Built to run on a small home server; friends sign in and use it with their own OpenRouter key (bring-your-own-key, never set server-side).

Features

  • Projects & uploads — drag-and-drop multi-upload (JPG, PNG, WebP, AVIF, TIFF, HEIC), per-user storage quota, ZIP export.
  • AI editing — single and batch edits through a provider abstraction (OpenRouter cloud today; local self-hosted planned). Originals are never overwritten; every edit creates a new immutable version.
  • Inpainting — mask a region and edit only that area; brush size, undo, and an enable/disable toggle.
  • Model selection — live OpenRouter image-model catalogue with recommendations per edit type (fast/cheap for batch, high-quality for single & inpaint); choice is remembered.
  • Cost transparency — actual per-generation cost (from OpenRouter usage accounting) stored per version, a pre-generation estimate (empirical, with a pricing-based fallback for unused models), and the account credit balance in settings.
  • Compare & view — before/after slider, full-screen lightbox.
  • Gallery & favorites — star versions and browse them in a gallery, filterable by project and favorites.
  • Presets — reusable named prompts, optionally bound to a model; a set of curated standard presets one click away.
  • Prompt history, admin panel, and invite-code registration.

Tech stack

Next.js 16 (App Router) · React 19 · TypeScript · Tailwind CSS v4 · better-sqlite3 · sharp · OpenRouter. The UI is in German.

Getting started

npm install
cp .env.example .env.local   # optional: set ATLY_INVITE_CODE for extra accounts
npm run dev

Open http://localhost:4880. On first run you're taken to a setup wizard that creates the first account (the admin) — no invite code needed. Then add your OpenRouter key under Einstellungen. Additional users register with ATLY_INVITE_CODE.

npm run build && npm start    # production

Configuration

Environment variables (see .env.example):

Variable Description
ATLY_INVITE_CODE Invite code required to register additional accounts. The first account is created via the /setup wizard with no code; further self-registration is disabled while this is unset.
ATLY_DATA_DIR Directory for the SQLite DB and image storage. Default: <project>/data.
ATLY_INSECURE_COOKIES Set to true when serving over plain HTTP on a LAN, so the session cookie is stored without Secure.
ATLY_OPENROUTER_BASE_URL Override the OpenRouter API base URL (self-hosted proxy / testing).

The SQLite schema is created and migrated automatically on first run.

Docker

docker compose up -d

Persist ATLY_DATA_DIR (mounted as a volume) to keep the database and images across restarts.

How it works

  • Pluggable AI — every AI call goes through an AIProvider contract resolved per user by AIManager. OpenRouter (cloud) is the working backend; a local self-hosted provider is a skeleton for now. See src/lib/ai/README.md for the architecture.
  • BYO key — your OpenRouter key is used only for your own requests and is never applied server-side. Each user picks their provider in Einstellungen.
  • Versioning — the uploaded original (the images row) is never modified; AI edits accumulate as image_versions.
  • Storage — images live on the local filesystem under ATLY_DATA_DIR, referenced by path from SQLite.