# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Open Notebook
spec:
    description: Open Notebook - A powerful AI-powered notebook application
    coverImage: https://raw.githubusercontent.com/lfnovo/open-notebook/main/docs/assets/asset_list.png
    icon: https://www.open-notebook.ai/hero.svg
    variables:
        - key: OPEN_NOTEBOOK_PASSWORD
          type: STRING
          name: Open Notebook Password
          description: Set a password to protect your Open Notebook. Leave empty if not needed.
        - key: ZEABUR_AI_HUB_API_ENDPOINT
          type: STRING
          name: Zeabur AI Hub API Endpoint
          description: Zeabur AI Hub API endpoint URL (e.g., https://sfo1.aihub.zeabur.ai/ or https://hnd1.aihub.zeabur.ai/)
        - key: ZEABUR_AI_HUB_API_KEY
          type: STRING
          name: Zeabur AI Hub API Key
          description: Your Zeabur AI Hub API key for AI features
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: What domain do you want to use for Open Notebook?
    tags:
        - Tool
        - Productivity
        - AI
    readme: "# Open Notebook\n\nA private, multi-model, 100% local, full-featured alternative to Notebook LM\n\nIn a world dominated by Artificial Intelligence, having the ability to think \U0001F9E0 and acquire new knowledge \U0001F4A1, is a skill that should not be a privilege for a few, nor restricted to a single provider.\n\nOpen Notebook empowers you to:\n- \U0001F512 Control your data - Keep your research private and secure\n- \U0001F916 Choose your AI models - Support for 16+ providers including OpenAI, Anthropic, Ollama, LM Studio, and more\n- \U0001F4DA Organize multi-modal content - PDFs, videos, audio, web pages, and more\n- \U0001F399️ Generate professional podcasts - Advanced multi-speaker podcast generation\n- \U0001F50D Search intelligently - Full-text and vector search across all your content\n- \U0001F4AC Chat with context - AI conversations powered by your research\n\n## Zeabur AI Hub\n\n**Zeabur AI Hub** is the recommended way to use Open Notebook. It provides access to OpenAI-compatible models through Zeabur's AI infrastructure.\n\nDuring deployment, you'll be asked to configure:\n- **Zeabur AI Hub API Endpoint** - Choose from available endpoints:\n  - `https://sfo1.aihub.zeabur.ai/` (San Francisco)\n  - `https://hnd1.aihub.zeabur.ai/` (Tokyo)\n- **Zeabur AI Hub API Key** - Your API key for authentication\n\nThese settings are automatically configured as environment variables (`OPENAI_COMPATIBLE_BASE_URL_LLM` and `OPENAI_COMPATIBLE_API_KEY`) to route API calls through Zeabur AI Hub, giving you access to a wide range of AI models.\n\n## Other AI Providers\n\nYou can also use other AI providers like OpenAI, Gemini, and more. If you want to use models from other providers, you can leave the Zeabur AI Hub fields empty during deployment and configure them later in environment setting after setup is complete.\n\nFor more AI provider environment variable configurations, please visit https://github.com/lfnovo/open-notebook/blob/main/docs/5-CONFIGURATION/ai-providers.md\n\nFor more information about Open Notebook, please visit https://www.open-notebook.ai"
    services:
        - name: Open Notebook
          icon: https://www.open-notebook.ai/hero.svg
          template: PREBUILT
          spec:
            id: open-notebook
            source:
                image: lfnovo/open_notebook:v1-latest-single
            ports:
                - id: web
                  port: 8502
                  type: HTTP
                - id: api
                  port: 5055
                  type: HTTP
            volumes:
                - id: notebook-data
                  dir: /app/data
                - id: surreal-data
                  dir: /mydata
            env:
                API_URL:
                    default: https://${PUBLIC_DOMAIN}.zeabur.app
                    expose: true
                OPEN_NOTEBOOK_PASSWORD:
                    default: ${OPEN_NOTEBOOK_PASSWORD}
                OPENAI_COMPATIBLE_API_KEY:
                    default: ${ZEABUR_AI_HUB_API_KEY}
                OPENAI_COMPATIBLE_BASE_URL_LLM:
                    default: ${ZEABUR_AI_HUB_API_ENDPOINT}
                SURREAL_DATABASE:
                    default: production
                SURREAL_NAMESPACE:
                    default: open_notebook
                SURREAL_PASSWORD:
                    default: root
                SURREAL_URL:
                    default: ws://localhost:8000/rpc
                SURREAL_USER:
                    default: root
          domainKey: PUBLIC_DOMAIN
localization:
    zh-TW:
        description: Open Notebook - 一個強大的 AI 驅動筆記應用程式
        variables:
            - key: OPEN_NOTEBOOK_PASSWORD
              type: STRING
              name: Open Notebook 密碼
              description: 設定密碼以保護您的 Open Notebook。如果不需要可以留空。
            - key: ZEABUR_AI_HUB_API_ENDPOINT
              type: STRING
              name: Zeabur AI Hub API 端點
              description: Zeabur AI Hub API 端點 URL（例如：https://sfo1.aihub.zeabur.ai/ 或 https://hnd1.aihub.zeabur.ai/）
            - key: ZEABUR_AI_HUB_API_KEY
              type: STRING
              name: Zeabur AI Hub API 金鑰
              description: 用於 AI 功能的 Zeabur AI Hub API 金鑰
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: 網域
              description: 你想將 Open Notebook 綁定在哪個網域上？
        readme: "# Open Notebook\n\n一個私密、多模型、100% 本地化、功能完整的 Notebook LM 替代方案\n\n在人工智慧主導的世界裡，擁有思考 \U0001F9E0 與獲取新知識 \U0001F4A1 的能力，不應該是少數人的特權，也不該被侷限於單一供應商。\n\nOpen Notebook 讓您能夠：\n\n- \U0001F512 掌控您的資料 — 保持研究內容的私密性與安全性\n- \U0001F916 自由選擇 AI 模型 — 支援超過 16 家服務商，包括 OpenAI、Anthropic、Ollama、LM Studio 等\n- \U0001F4DA 多模態內容管理 — 支援 PDF、影片、音訊、網頁等多種格式\n- \U0001F399️ 生成專業 Podcast — 具備進階多說話人 Podcast 生成功能\n- \U0001F50D 智慧搜尋 — 支援全文檢索與向量搜尋，涵蓋所有內容\n- \U0001F4AC 情境化對話 — 能根據您的研究內容進行 AI 對話\n\n## Zeabur AI Hub\n\n**Zeabur AI Hub** 是使用 Open Notebook 的推薦方式。它透過 Zeabur 的 AI 基礎設施提供 OpenAI 相容模型的存取。\n\n在部署時，您需要設定：\n- **Zeabur AI Hub API 端點** - 從可用的端點中選擇：\n  - `https://sfo1.aihub.zeabur.ai/`（舊金山）\n  - `https://hnd1.aihub.zeabur.ai/`（東京）\n- **Zeabur AI Hub API 金鑰** - 用於身份驗證的 API 金鑰\n\n這些設定會自動配置為環境變數（`OPENAI_COMPATIBLE_BASE_URL_LLM` 和 `OPENAI_COMPATIBLE_API_KEY`），讓 Open Notebook 透過 Zeabur AI Hub 路由 API 呼叫，讓您存取各種 AI 模型。\n\n## 其他 AI 供應商\n\n您也可以使用其他 AI 供應商，例如 OpenAI、Gemini 等。如果您想使用其他供應商的模型，可以在部署時留空 Zeabur AI Hub 欄位，並於部署完成後在環境變數中進行設定。\n\n查看更多模型環境變數設定，請造訪 https://github.com/lfnovo/open-notebook/blob/main/docs/5-CONFIGURATION/ai-providers.md\n\n了解更多項目資訊請造訪 https://www.open-notebook.ai"
