# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Damselfly
spec:
    description: |
        Damselfly is a server-based Digital Asset Management system for photos and videos. Features AI-powered face detection and recognition, keyword tagging, EXIF metadata browsing, powerful search, and bulk export. Designed for large photo libraries with fast indexing.
    coverImage: https://avatars.githubusercontent.com/u/26772988
    icon: https://avatars.githubusercontent.com/u/26772988
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access Damselfly
    tags:
        - Tool
        - Photography
    readme: |
        # Damselfly

        A server-based Digital Asset Management (DAM) system for organizing, searching, and managing large photo and video libraries. AI-powered face detection, keyword tagging, and fast full-text search.

        ## What You Can Do After Deployment

        Visit your domain to access the Damselfly web interface. Add photos to the `/pictures` volume and Damselfly will automatically index them.

        **Photo management:** Browse your entire photo library with thumbnail previews. Navigate by folder structure or use the timeline view sorted by date.

        **AI face detection:** Damselfly automatically detects and groups faces in your photos. Tag people by name and quickly find all photos of a specific person.

        **Search and filter:** Full-text search across filenames, keywords, EXIF metadata, and face tags. Filter by date range, camera model, lens, or location.

        **Tagging:** Add IPTC keywords to individual photos or in bulk. Tags are written back to the image files so they work with other tools.

        **Export:** Select multiple photos and export them in bulk with configurable resize options. Download originals or generate web-optimized versions.

        **Basket:** Collect photos into a selection basket for batch operations like tagging, exporting, or downloading.

        ## Configuration

        - **Photo directory:** Mount your photo library to `/pictures` — Damselfly will recursively scan and index all images
        - **Config storage:** Application settings and the SQLite database are stored in `/config`
        - **Thumbnail cache:** Thumbnails are generated on first access and cached for fast browsing

        ## License

        GPL-3.0 — [GitHub](https://github.com/Webreaper/Damselfly)
    services:
        - name: damselfly
          icon: https://avatars.githubusercontent.com/u/26772988
          template: PREBUILT_V2
          spec:
            source:
                image: webreaper/damselfly:4.5.3
            ports:
                - id: web
                  port: 6363
                  type: HTTP
            volumes:
                - id: pictures
                  dir: /pictures
                - id: config
                  dir: /config
            env: {}
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            Damselfly es un sistema de gestión de activos digitales basado en servidor para fotos y videos. Incluye detección facial con IA, etiquetado, búsqueda de metadatos EXIF y exportación masiva.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a Damselfly
        readme: |
            # Damselfly

            Sistema de gestión de activos digitales (DAM) basado en servidor para organizar, buscar y gestionar bibliotecas de fotos y videos. Detección facial con IA, etiquetado y búsqueda de texto completo.

            ## Qué puedes hacer después del despliegue

            Visita tu dominio para acceder a la interfaz web. Agrega fotos al volumen `/pictures` y Damselfly las indexará automáticamente.

            **Gestión de fotos:** Navega tu biblioteca con miniaturas. Vista por carpetas o línea de tiempo.

            **Detección facial IA:** Detecta y agrupa rostros automáticamente. Etiqueta nombres para encontrar fotos de personas específicas.

            **Búsqueda:** Búsqueda de texto completo en nombres de archivo, palabras clave, metadatos EXIF y etiquetas faciales.

            **Exportación:** Selecciona múltiples fotos y expórtalas en lote con opciones de redimensionado.

            ## Licencia

            GPL-3.0 — [GitHub](https://github.com/Webreaper/Damselfly)
    id-ID:
        description: |
            Damselfly adalah sistem manajemen aset digital berbasis server untuk foto dan video. Dilengkapi deteksi wajah AI, pemberian tag, pencarian metadata EXIF, dan ekspor massal.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses Damselfly
        readme: |
            # Damselfly

            Sistem manajemen aset digital (DAM) berbasis server untuk mengatur, mencari, dan mengelola koleksi foto dan video besar. Deteksi wajah AI, pemberian tag, dan pencarian teks lengkap.

            ## Apa yang bisa dilakukan setelah deploy

            Buka domain Anda untuk mengakses antarmuka web. Tambahkan foto ke volume `/pictures` dan Damselfly akan mengindeksnya secara otomatis.

            **Manajemen foto:** Jelajahi koleksi dengan thumbnail. Navigasi berdasarkan folder atau garis waktu.

            **Deteksi wajah AI:** Deteksi dan kelompokkan wajah secara otomatis. Tandai nama untuk menemukan foto orang tertentu.

            **Pencarian:** Pencarian teks lengkap di nama file, kata kunci, data EXIF, dan tag wajah.

            **Ekspor:** Pilih beberapa foto dan ekspor massal dengan opsi pengubahan ukuran.

            ## Lisensi

            GPL-3.0 — [GitHub](https://github.com/Webreaper/Damselfly)
    ja-JP:
        description: |
            Damselflyはサーバーベースの写真・動画デジタルアセット管理システムです。AI顔検出・認識、キーワードタグ、EXIFメタデータ閲覧、高速検索、一括エクスポート機能を搭載。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: Damselflyにアクセスするためのドメイン
        readme: |
            # Damselfly

            サーバーベースのデジタルアセット管理（DAM）システム。大規模な写真・動画ライブラリの整理、検索、管理が可能。AI顔検出、キーワードタグ、全文検索を搭載。

            ## デプロイ後にできること

            ドメインにアクセスしてDamselflyのWeb画面を開きます。`/pictures`ボリュームに写真を追加すると自動的にインデックスが作成されます。

            **写真管理：** サムネイルでライブラリ全体を閲覧。フォルダ構造やタイムラインで表示。

            **AI顔検出：** 写真内の顔を自動検出・グループ化。名前をタグ付けして特定の人物の写真を素早く検索。

            **検索：** ファイル名、キーワード、EXIFデータ、顔タグの全文検索。

            **エクスポート：** 複数写真を選択して一括エクスポート。リサイズオプション対応。

            ## ライセンス

            GPL-3.0 — [GitHub](https://github.com/Webreaper/Damselfly)
    ko-KR:
        description: |
            Damselfly는 사진과 동영상을 위한 서버 기반 디지털 자산 관리 시스템입니다. AI 얼굴 감지, 키워드 태그, EXIF 메타데이터 검색, 대량 내보내기 기능을 제공합니다.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: Damselfly에 접속할 도메인
        readme: |
            # Damselfly

            서버 기반 디지털 자산 관리(DAM) 시스템. 대규모 사진 및 동영상 라이브러리의 정리, 검색, 관리가 가능합니다. AI 얼굴 감지, 키워드 태그, 전체 텍스트 검색을 지원합니다.

            ## 배포 후 할 수 있는 것

            도메인에 접속하여 Damselfly 웹 인터페이스를 엽니다. `/pictures` 볼륨에 사진을 추가하면 자동으로 인덱싱됩니다.

            **사진 관리:** 썸네일로 전체 라이브러리를 탐색. 폴더 구조 또는 타임라인 뷰로 확인.

            **AI 얼굴 감지:** 사진 속 얼굴을 자동 감지하고 그룹화. 이름을 태그하여 특정 인물의 모든 사진을 빠르게 검색.

            **검색:** 파일명, 키워드, EXIF 데이터, 얼굴 태그에 대한 전체 텍스트 검색.

            **내보내기:** 여러 사진을 선택하여 일괄 내보내기. 리사이즈 옵션 지원.

            ## 라이선스

            GPL-3.0 — [GitHub](https://github.com/Webreaper/Damselfly)
    th-TH:
        description: |
            Damselfly คือระบบจัดการสินทรัพย์ดิจิทัลแบบเซิร์ฟเวอร์สำหรับรูปภาพและวิดีโอ มีฟีเจอร์ตรวจจับใบหน้าด้วย AI การแท็กคีย์เวิร์ด การค้นหาเมตาดาต้า EXIF และการส่งออกจำนวนมาก
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง Damselfly
        readme: |
            # Damselfly

            ระบบจัดการสินทรัพย์ดิจิทัล (DAM) แบบเซิร์ฟเวอร์ สำหรับจัดระเบียบ ค้นหา และจัดการคลังรูปภาพและวิดีโอขนาดใหญ่ รองรับการตรวจจับใบหน้าด้วย AI การแท็กคีย์เวิร์ด และการค้นหาแบบเต็มข้อความ

            ## สิ่งที่ทำได้หลังจากติดตั้ง

            เข้าสู่โดเมนเพื่อเปิดหน้าเว็บ Damselfly เพิ่มรูปภาพในโวลุ่ม `/pictures` แล้ว Damselfly จะสร้างดัชนีอัตโนมัติ

            **จัดการรูปภาพ:** เรียกดูคลังรูปด้วยภาพขนาดย่อ ดูตามโฟลเดอร์หรือไทม์ไลน์

            **ตรวจจับใบหน้า AI:** ตรวจจับและจัดกลุ่มใบหน้าอัตโนมัติ แท็กชื่อเพื่อค้นหารูปของบุคคลที่ต้องการ

            **ค้นหา:** ค้นหาเต็มข้อความในชื่อไฟล์ คีย์เวิร์ด ข้อมูล EXIF และแท็กใบหน้า

            **ส่งออก:** เลือกหลายรูปและส่งออกเป็นชุด พร้อมตัวเลือกปรับขนาด

            ## สัญญาอนุญาต

            GPL-3.0 — [GitHub](https://github.com/Webreaper/Damselfly)
    zh-CN:
        description: |
            Damselfly 是服务器架设的数字资产管理系统，适用于照片与视频。具备 AI 人脸检测与识别、关键字标签、EXIF 浏览、搜索及批量导出功能。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 Damselfly 的域名
        readme: |
            # Damselfly

            服务器架设的数字资产管理（DAM）系统，用于整理、搜索和管理大型照片与视频库。支持 AI 人脸检测、关键字标签与全文搜索。

            ## 部署后可以做什么

            打开域名进入 Damselfly 网页界面。将照片添加到 `/pictures` 卷，Damselfly 会自动建立索引。

            **照片管理：** 以缩略图浏览照片库，按文件夹或时间轴查看。

            **AI 人脸检测：** 自动检测并分组照片中的人脸，标记姓名后可快速查找特定人物的所有照片。

            **搜索：** 跨文件名、关键字、EXIF 数据和人脸标签的全文搜索。

            **标签：** 为照片添加 IPTC 关键字，标签回写至图片文件。

            **导出：** 批量导出照片，支持缩放选项。

            ## 授权

            GPL-3.0 — [GitHub](https://github.com/Webreaper/Damselfly)
    zh-TW:
        description: |
            Damselfly 是伺服器架設的數位資產管理系統，適用於照片與影片。具備 AI 人臉偵測與辨識、關鍵字標籤、EXIF 瀏覽、強大搜尋及批次匯出功能。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 Damselfly 的網域
        readme: |
            # Damselfly

            伺服器架設的數位資產管理（DAM）系統，用於整理、搜尋和管理大型照片與影片資料庫。支援 AI 人臉偵測、關鍵字標籤與全文搜尋。

            ## 部署後可以做什麼

            開啟網域即可進入 Damselfly 網頁介面。將照片加入 `/pictures` 磁碟區，Damselfly 會自動建立索引。

            **照片管理：** 以縮圖瀏覽整個照片庫，按資料夾結構或時間軸檢視。

            **AI 人臉偵測：** 自動偵測並分組照片中的人臉，標記姓名後可快速找到特定人物的所有照片。

            **搜尋與篩選：** 跨檔名、關鍵字、EXIF 資料和人臉標籤的全文搜尋。可依日期、相機型號或地點篩選。

            **標籤：** 為單張或批量照片新增 IPTC 關鍵字，標籤會回寫至圖片檔案。

            **匯出：** 選取多張照片進行批次匯出，可設定縮放選項。

            ## 授權

            GPL-3.0 — [GitHub](https://github.com/Webreaper/Damselfly)
