# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Manyfold
spec:
    description: |
        Manyfold is a self-hosted digital asset manager for 3D models. Browse, organize, and preview your STL, OBJ, 3MF, and other 3D files through a clean web interface with built-in 3D viewer.
    coverImage: https://avatars.githubusercontent.com/u/108452637
    icon: https://avatars.githubusercontent.com/u/108452637
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access Manyfold
        - key: SECRET_KEY_BASE
          type: STRING
          name: Secret Key Base
          description: A secret key for signing cookies (128 hex chars)
    tags:
        - Tool
    readme: |
        # Manyfold

        A self-hosted digital asset manager for 3D printing models. Organize, browse, and preview your STL, OBJ, 3MF, and other 3D files through a modern web interface with built-in 3D model viewer.

        ## What You Can Do After Deployment

        1. **Visit your domain** — create an admin account on first access
        2. **Upload 3D models** — drag and drop STL, OBJ, 3MF, and other 3D files
        3. **Browse your library** — view models with thumbnails and built-in 3D previews
        4. **Organize with tags** — categorize models by project, material, or custom tags
        5. **Search your collection** — find models by name, tag, or creator

        ## Key Features

        - Built-in 3D model viewer (STL, OBJ, 3MF, PLY, and more)
        - Automatic thumbnail generation
        - Tag-based organization and search
        - Multi-user support with role-based permissions
        - Bulk import from folders or ZIP archives
        - Activity feeds and model versioning
        - Responsive design for mobile and desktop

        ## Storage

        The `/libraries` volume stores your 3D model files. The `/config` volume stores the SQLite database and application configuration. This template uses the `manyfold-solo` image which includes an embedded SQLite database, so no external database is needed.

        ## Configuration

        - `SECRET_KEY_BASE` — required secret for cookie signing (auto-generated)
        - `PUID` / `PGID` — user and group ID for file permissions

        ## License

        MIT — [GitHub](https://github.com/manyfold3d/manyfold)
    services:
        - name: manyfold
          icon: https://avatars.githubusercontent.com/u/108452637
          template: PREBUILT_V2
          spec:
            source:
                image: ghcr.io/manyfold3d/manyfold-solo:0.136.0
            ports:
                - id: web
                  port: 3214
                  type: HTTP
            volumes:
                - id: libraries
                  dir: /libraries
                - id: config
                  dir: /config
            env:
                PGID:
                    default: "1000"
                PUID:
                    default: "1000"
                SECRET_KEY_BASE:
                    default: ${SECRET_KEY_BASE}
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            Manyfold es un gestor de activos digitales autoalojado para modelos 3D. Navega, organiza y previsualiza archivos STL, OBJ, 3MF con visor 3D integrado.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a Manyfold
            - key: SECRET_KEY_BASE
              type: STRING
              name: Clave secreta
              description: Clave para firmar cookies (128 caracteres hexadecimales)
        readme: |
            # Manyfold

            Gestor de modelos 3D autoalojado. Organiza, navega y previsualiza archivos STL, OBJ, 3MF con interfaz moderna.

            ## Qué puedes hacer después del despliegue

            1. **Visita tu dominio** — crea cuenta admin en el primer acceso
            2. **Sube modelos 3D** — arrastra archivos STL, OBJ, 3MF
            3. **Navega tu biblioteca** — miniaturas y vista previa 3D
            4. **Organiza con etiquetas** — clasifica por proyecto o material
            5. **Busca** — por nombre, etiqueta o creador

            ## Características

            - Visor 3D integrado (STL, OBJ, 3MF, PLY)
            - Generación automática de miniaturas
            - Organización por etiquetas y búsqueda
            - Multiusuario con permisos por roles
            - Importación masiva

            ## Licencia

            MIT — [GitHub](https://github.com/manyfold3d/manyfold)
    id-ID:
        description: |
            Manyfold adalah manajer aset digital self-hosted untuk model 3D. Jelajahi, atur, dan pratinjau file STL, OBJ, 3MF dengan penampil 3D bawaan.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses Manyfold
            - key: SECRET_KEY_BASE
              type: STRING
              name: Kunci Rahasia
              description: Kunci untuk menandatangani cookie (128 karakter heksadesimal)
        readme: |
            # Manyfold

            Manajer model 3D self-hosted. Atur, jelajahi, dan pratinjau file STL, OBJ, 3MF dengan antarmuka modern.

            ## Apa yang bisa dilakukan setelah deploy

            1. **Buka domain** — buat akun admin pada akses pertama
            2. **Upload model 3D** — seret file STL, OBJ, 3MF
            3. **Jelajahi koleksi** — thumbnail dan pratinjau 3D
            4. **Atur dengan tag** — kategorikan per proyek atau material
            5. **Cari** — berdasarkan nama, tag, atau pembuat

            ## Fitur

            - Penampil 3D bawaan (STL, OBJ, 3MF, PLY)
            - Pembuatan thumbnail otomatis
            - Organisasi tag dan pencarian
            - Multi-user dengan peran
            - Impor massal

            ## Lisensi

            MIT — [GitHub](https://github.com/manyfold3d/manyfold)
    ja-JP:
        description: |
            Manyfoldはセルフホストの3Dモデル管理ツールです。STL、OBJ、3MFなどをWebインターフェースで閲覧・整理・プレビューできます。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: Manyfoldにアクセスするためのドメイン
            - key: SECRET_KEY_BASE
              type: STRING
              name: シークレットキー
              description: Cookie署名用の秘密鍵（128桁の16進数）
        readme: |
            # Manyfold

            3Dプリント用モデル管理ツール。STL、OBJ、3MFファイルをWebで閲覧・整理・プレビュー。

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

            1. **ドメインにアクセス** — 初回に管理者アカウント作成
            2. **3Dモデルをアップロード** — ドラッグ&ドロップでファイル追加
            3. **ライブラリを閲覧** — サムネイルと3Dプレビュー
            4. **タグで整理** — プロジェクト別、素材別に分類
            5. **検索** — 名前、タグ、作成者で検索

            ## 主な機能

            - 内蔵3Dビューア（STL、OBJ、3MF、PLY等）
            - 自動サムネイル生成
            - タグベースの整理・検索
            - マルチユーザー・ロール管理
            - 一括インポート

            ## ライセンス

            MIT — [GitHub](https://github.com/manyfold3d/manyfold)
    ko-KR:
        description: |
            Manyfold는 3D 모델용 셀프호스팅 디지털 에셋 매니저입니다. STL, OBJ, 3MF 파일을 웹에서 탐색, 정리, 미리보기할 수 있습니다.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: Manyfold에 접속할 도메인
            - key: SECRET_KEY_BASE
              type: STRING
              name: 비밀 키
              description: 쿠키 서명용 비밀 키 (128자리 16진수)
        readme: |
            # Manyfold

            3D 프린팅 모델 관리 도구. STL, OBJ, 3MF 파일을 웹에서 정리, 탐색, 미리보기.

            ## 배포 후 할 수 있는 것

            1. **도메인 접속** — 첫 접속 시 관리자 계정 생성
            2. **3D 모델 업로드** — 드래그 앤 드롭
            3. **라이브러리 탐색** — 썸네일과 3D 미리보기
            4. **태그로 정리** — 프로젝트, 소재별 분류
            5. **검색** — 이름, 태그, 제작자로 검색

            ## 주요 기능

            - 내장 3D 뷰어 (STL, OBJ, 3MF, PLY)
            - 자동 썸네일 생성
            - 태그 기반 정리 및 검색
            - 다중 사용자 역할 관리
            - 대량 가져오기

            ## 라이선스

            MIT — [GitHub](https://github.com/manyfold3d/manyfold)
    th-TH:
        description: |
            Manyfold คือตัวจัดการสินทรัพย์ดิจิทัล self-hosted สำหรับโมเดล 3D เรียกดู จัดระเบียบ และดูตัวอย่างไฟล์ STL, OBJ, 3MF ด้วยตัวดู 3D ในตัว
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง Manyfold
            - key: SECRET_KEY_BASE
              type: STRING
              name: คีย์ลับ
              description: คีย์สำหรับเซ็นคุกกี้ (128 ตัวอักษรฐาน 16)
        readme: |
            # Manyfold

            ตัวจัดการโมเดล 3D แบบ self-hosted จัดระเบียบ เรียกดู และดูตัวอย่างไฟล์ STL, OBJ, 3MF ด้วยอินเทอร์เฟซที่ทันสมัย

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

            1. **เข้าสู่โดเมน** — สร้างบัญชีผู้ดูแลในการเข้าถึงครั้งแรก
            2. **อัปโหลดโมเดล 3D** — ลากวางไฟล์ STL, OBJ, 3MF
            3. **เรียกดูคอลเลกชัน** — ภาพขนาดย่อและตัวอย่าง 3D
            4. **จัดระเบียบด้วยแท็ก** — จัดหมวดหมู่ตามโปรเจกต์หรือวัสดุ
            5. **ค้นหา** — ตามชื่อ แท็ก หรือผู้สร้าง

            ## ฟีเจอร์หลัก

            - ตัวดู 3D ในตัว (STL, OBJ, 3MF, PLY)
            - สร้างภาพขนาดย่ออัตโนมัติ
            - จัดระเบียบด้วยแท็กและค้นหา
            - รองรับหลายผู้ใช้พร้อมสิทธิ์ตามบทบาท
            - นำเข้าจำนวนมาก

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

            MIT — [GitHub](https://github.com/manyfold3d/manyfold)
    zh-CN:
        description: |
            Manyfold 是自托管的 3D 模型管理工具，通过网页界面浏览、整理并预览 STL、OBJ、3MF 等 3D 文件，内置 3D 查看器。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 Manyfold 的域名
            - key: SECRET_KEY_BASE
              type: STRING
              name: 密钥
              description: 用于签署 Cookie 的密钥（128 位十六进制）
        readme: |
            # Manyfold

            自托管的 3D 打印模型管理工具，通过现代化网页界面整理、浏览和预览 3D 文件。

            ## 部署后可以做什么

            1. **打开域名** — 首次访问时创建管理员账号
            2. **上传 3D 模型** — 拖放 STL、OBJ、3MF 等文件
            3. **浏览收藏** — 缩略图和内置 3D 预览
            4. **标签分类** — 按项目、材质或自定义标签分类
            5. **搜索** — 按名称、标签或作者查找

            ## 主要功能

            - 内置 3D 模型查看器
            - 自动生成缩略图
            - 标签式分类与搜索
            - 多用户角色权限
            - 批量导入
            - 响应式设计

            ## 授权

            MIT — [GitHub](https://github.com/manyfold3d/manyfold)
    zh-TW:
        description: |
            Manyfold 是自架的 3D 模型管理工具，透過網頁介面瀏覽、整理並預覽 STL、OBJ、3MF 等 3D 檔案，內建 3D 檢視器。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 Manyfold 的網域
            - key: SECRET_KEY_BASE
              type: STRING
              name: 密鑰
              description: 用於簽署 Cookie 的密鑰（128 位十六進位）
        readme: |
            # Manyfold

            自架的 3D 列印模型管理工具，透過現代化網頁介面整理、瀏覽並預覽 STL、OBJ、3MF 等 3D 檔案。

            ## 部署後可以做什麼

            1. **開啟網域** — 首次存取時建立管理員帳號
            2. **上傳 3D 模型** — 拖放 STL、OBJ、3MF 等檔案
            3. **瀏覽收藏** — 透過縮圖和內建 3D 預覽查看模型
            4. **標籤分類** — 依專案、材質或自訂標籤分類
            5. **搜尋** — 依名稱、標籤或作者搜尋模型

            ## 主要功能

            - 內建 3D 模型檢視器（STL、OBJ、3MF、PLY 等）
            - 自動生成縮圖
            - 標籤式分類與搜尋
            - 多使用者角色權限
            - 批量匯入
            - 響應式設計

            ## 授權

            MIT — [GitHub](https://github.com/manyfold3d/manyfold)
