managarten/apps/picture/apps/backend
Till JS fc7d2942d0 feat(picture): add local image generation via mana-image-gen
Add LocalImageGenService that routes to the self-hosted FLUX.2 klein
model on the Mac Mini, eliminating Replicate API dependency for basic
image generation.

Changes:
- LocalImageGenService: wraps mana-image-gen HTTP API (/generate)
  with health checking, timeout handling, and GenerationResult compat
- GenerateService: routes to local or Replicate based on model config
  (replicateId starting with "local/" → LocalImageGenService)
- Local models always use sync mode (no webhooks needed, ~0.8s)
- Seed: add "FLUX.2 Klein (Lokal)" model with sortOrder -1 (shown first)
  - costPerGeneration: 0 (free, runs locally)
  - estimatedTimeSeconds: 1
- docker-compose: add IMAGE_GEN_SERVICE_URL env var for picture backend

Replicate remains available for premium models (Seedream, Nano Banana).
Local FLUX.2 klein becomes the default free option.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 10:38:30 +01:00
..
src feat(picture): add local image generation via mana-image-gen 2026-03-24 10:38:30 +01:00
.env.example chore: remove remaining Hetzner references across codebase 2026-03-23 10:30:26 +01:00
docker-compose.yml feat(picture): migrate from Supabase to NestJS backend API 2025-11-27 14:47:23 +01:00
docker-entrypoint.sh feat(picture): migrate from Supabase to NestJS backend API 2025-11-27 14:47:23 +01:00
Dockerfile fix(docker): add shared-nestjs-metrics to 5 backend Dockerfiles 2026-03-23 09:31:21 +01:00
drizzle.config.ts 🔧 chore: create @manacore/shared-drizzle-config and migrate 16 configs 2026-01-29 16:54:44 +01:00
eslint.config.mjs improve code quality 2025-12-03 23:42:37 +01:00
jest.config.js fix(chat,picture,mukke): production readiness audit fixes and tests 2026-03-19 14:46:29 +01:00
nest-cli.json style: auto-format codebase with Prettier 2025-11-27 18:33:16 +01:00
package.json feat(observability): add metrics and monitoring for all 15 backends 2026-03-23 09:09:04 +01:00
tsconfig.json 🐛 fix: resolve tsconfig issues across all NestJS backends 2026-02-01 03:47:17 +01:00