# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Next AI Draw.io
spec:
    description: AI-Powered Diagram Creation Tool - Chat, Draw, Visualize with draw.io diagrams
    icon: https://raw.githubusercontent.com/DayuanJiang/next-ai-draw-io/refs/heads/main/app/favicon.ico
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: Domain for your Next AI Draw.io instance
        - key: ACCESS_CODE_LIST
          type: STRING
          name: Access Code (Optional)
          description: Optional password to protect your instance. After setting this, you need to enter the password in Settings to use the app.
    tags:
        - AI
        - Diagram
        - Visualization
        - Draw.io
    readme: |
        # Next AI Draw.io

        AI-powered diagram creation tool that integrates with draw.io. Create and modify diagrams through natural language commands.

        ## Features

        - **Natural Language Diagram Creation**: Create and edit draw.io diagrams using AI through chat interface
        - **Image Upload**: Upload existing diagrams or images for AI to replicate and enhance
        - **PDF & Text Support**: Extract content from documents to generate diagrams
        - **Cloud Architecture Diagrams**: Generate AWS, GCP, and Azure architecture diagrams with official icons
        - **Diagram History**: Track and restore previous versions
        - **Animated Connectors**: Create dynamic connections between elements

        ## Configuration

        After deployment:
        1. Open your deployed Next AI Draw.io instance
        2. Click the **Settings** button in the top-right corner
        3. If you set an **Access Code** during deployment, enter it in the settings first
        4. Configure your preferred AI Provider and API Key in the settings panel

        > **Note**: Access Code is optional but recommended to protect your instance from unauthorized access.

        ## Supported AI Providers

        - OpenAI (GPT-4o, GPT-4, etc.)
        - Anthropic Claude (Sonnet, Opus)
        - Google Gemini
        - Azure OpenAI
        - AWS Bedrock
        - Ollama (local models)
        - OpenRouter
        - DeepSeek
        - SiliconFlow

        ## Source

        [GitHub Repository](https://github.com/DayuanJiang/next-ai-draw-io)
    services:
        - name: next-ai-draw-io
          icon: https://raw.githubusercontent.com/DayuanJiang/next-ai-draw-io/refs/heads/main/app/favicon.ico
          template: PREBUILT
          spec:
            id: next-ai-draw-io
            source:
                image: ghcr.io/dayuanjiang/next-ai-draw-io:latest
            ports:
                - id: web
                  port: 3000
                  type: HTTP
            env:
                ACCESS_CODE_LIST:
                    default: ${ACCESS_CODE_LIST}
          domainKey: PUBLIC_DOMAIN
localization:
    zh-TW:
        description: AI 驅動的流程圖創建工具 - 透過對話、繪製、視覺化 draw.io 圖表
        variables:
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: 網域
              description: 你的 Next AI Draw.io 網域
            - key: ACCESS_CODE_LIST
              type: STRING
              name: 存取密碼（選填）
              description: 選填的密碼來保護你的實例。設定後需要在 Settings 中輸入密碼才能使用應用程式。
        readme: |
            # Next AI Draw.io

            AI 驅動的流程圖創建工具，整合 draw.io 功能。透過自然語言指令創建和修改圖表。

            ## 功能特色

            - **自然語言創建圖表**：透過對話介面使用 AI 創建和編輯 draw.io 圖表
            - **圖片上傳**：上傳現有圖表或圖片，讓 AI 複製和增強
            - **PDF 與文字支援**：從文件中提取內容生成圖表
            - **雲端架構圖表**：生成帶有官方圖示的 AWS、GCP、Azure 架構圖
            - **圖表歷史記錄**：追蹤並還原先前版本
            - **動態連接線**：創建元素之間的動態連接

            ## 設定方式

            部署完成後：
            1. 開啟你部署的 Next AI Draw.io 實例
            2. 點擊右上角的「**設定**」按鈕
            3. 如果你在部署時設定了「**存取密碼**」，請先在設定中輸入密碼
            4. 在設定面板中配置你偏好的 AI 提供商和 API 金鑰

            > **注意**：存取密碼為選填項目，但建議設定以保護你的實例免受未經授權的存取。

            ## 支援的 AI 提供商

            - OpenAI (GPT-4o, GPT-4 等)
            - Anthropic Claude (Sonnet, Opus)
            - Google Gemini
            - Azure OpenAI
            - AWS Bedrock
            - Ollama (本地模型)
            - OpenRouter
            - DeepSeek
            - SiliconFlow

            ## 原始碼

            [GitHub Repository](https://github.com/DayuanJiang/next-ai-draw-io)
