- TypeScript 96.2%
- Python 1.6%
- CSS 1.3%
- JavaScript 0.5%
- Dockerfile 0.3%
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 |
||
|---|---|---|
| public | ||
| server/ai/birefnet | ||
| src | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| AGENTS.md | ||
| atly_build.md | ||
| CLAUDE.md | ||
| components.json | ||
| docker-compose.yml | ||
| Dockerfile | ||
| eslint.config.mjs | ||
| next.config.ts | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.mjs | ||
| README.md | ||
| tsconfig.json | ||
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
AIProvidercontract resolved per user byAIManager. OpenRouter (cloud) is the working backend; a local self-hosted provider is a skeleton for now. Seesrc/lib/ai/README.mdfor 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
imagesrow) is never modified; AI edits accumulate asimage_versions. - Storage — images live on the local filesystem under
ATLY_DATA_DIR, referenced by path from SQLite.