# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: github-profile-trophy
spec:
    description: A high-performance Go implementation of GitHub Profile Trophy - Generate beautiful trophy cards for your GitHub profile with 20+ themes and extensive customization options.
    icon: https://raw.githubusercontent.com/soulteary/github-profile-trophy/main/.github/assets/banner.png
    variables:
        - key: GITHUB_TOKEN1
          type: STRING
          name: GitHub Token
          description: GitHub Personal Access Token (required for API access). Get it from https://github.com/settings/tokens
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Service Domain
          description: The domain for your GitHub Profile Trophy service
    tags:
        - GitHub
        - Trophy
        - Profile
    readme: "# GitHub Profile Trophy (Go Implementation)\n\nA **100% compatible Go implementation** of the GitHub Profile Trophy project. Generate beautiful trophy cards for your GitHub profile with 20+ themes and extensive customization options.\n\n## ✨ Features\n\n- \U0001F3AF **100% API Compatible** with the original project\n- ⚡ **High Performance** - Built with Go for better performance\n- \U0001F4BE **Smart Caching** - Built-in memory cache for faster responses\n- \U0001F3A8 **20+ Beautiful Themes** - All original themes supported plus more\n- \U0001F3C6 **15+ Trophy Types** - Stars, Commits, Followers, Issues, PRs, and more\n\n## \U0001F680 Quick Start\n\nAfter deployment, you can use the service URL in your GitHub profile README:\n\n```markdown\n[![trophy](https://${PUBLIC_DOMAIN}.zeabur.app/?username=YOUR_GITHUB_USERNAME&theme=onedark)](https://github.com/ryo-ma/github-profile-trophy)\n```\n\n## \U0001F4D6 Configuration\n\n### GitHub Token\n\nYou **MUST** provide a GitHub Personal Access Token for the service to work:\n\n1. Go to https://github.com/settings/tokens\n2. Click \"Generate new token (classic)\"\n3. Select scopes: `read:user`, `public_repo`\n4. Generate and copy the token\n5. Paste it in the `GITHUB_TOKEN1` field\n\n## \U0001F3A8 Available Themes\n\n- `default`, `flat`, `onedark`, `gruvbox`, `dracula`, `monokai`, `chalk`\n- `nord`, `alduin`, `darkhub`, `juicyfresh`, `oldie`, `buddhism`\n- `radical`, `onestar`, `discord`, `algolia`, `gitdimmed`, `tokyonight`\n- `matrix`, `apprentice`, `dark_dimmed`, `dark_lover`, `kimbie_dark`, `aura`\n\n## \U0001F4CB API Parameters\n\n| Parameter | Description | Example |\n|-----------|-------------|---------|\n| `username` | GitHub username (required) | `?username=ryo-ma` |\n| `theme` | Theme name | `&theme=onedark` |\n| `title` | Filter by trophy titles | `&title=Stars,Followers` |\n| `rank` | Filter by ranks | `&rank=S,AAA` |\n| `column` | Maximum columns | `&column=7` |\n| `row` | Maximum rows | `&row=2` |\n| `margin-w` | Horizontal margin | `&margin-w=15` |\n| `margin-h` | Vertical margin | `&margin-h=15` |\n| `no-bg` | Transparent background | `&no-bg=true` |\n| `no-frame` | Hide frames | `&no-frame=true` |\n\n## \U0001F517 Links\n\n- [GitHub Repository](https://github.com/soulteary/github-profile-trophy)\n- [Original Project](https://github.com/ryo-ma/github-profile-trophy)\n- [Documentation](https://github.com/soulteary/github-profile-trophy#readme)\n"
    services:
        - name: github-profile-trophy
          icon: https://raw.githubusercontent.com/soulteary/github-profile-trophy/main/.github/assets/banner.png
          template: GIT
          spec:
            source:
                source: GITHUB
                repo: 1136619097
                branch: main
            ports:
                - id: web
                  port: 8080
                  type: HTTP
            env:
                GITHUB_TOKEN1:
                    default: ${GITHUB_TOKEN1}
                PORT:
                    default: "8080"
          domainKey: PUBLIC_DOMAIN
localization:
    zh-CN:
        description: GitHub Profile Trophy 的高性能 Go 实现 - 为您的 GitHub 个人资料生成精美的奖杯卡片，支持 20+ 主题和丰富的自定义选项。
        variables:
            - key: GITHUB_TOKEN1
              type: STRING
              name: GitHub Token
              description: GitHub Personal Access Token（API 访问必需）。从 https://github.com/settings/tokens 获取
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: 服务域名
              description: GitHub Profile Trophy 服务的域名
        readme: "# GitHub Profile Trophy (Go 实现)\n\nGitHub Profile Trophy 项目的 **100% 兼容 Go 实现**。为您的 GitHub 个人资料生成精美的奖杯卡片，支持 20+ 主题和丰富的自定义选项。\n\n## ✨ 特色功能\n\n- \U0001F3AF **100% API 兼容** - 与原始项目完全兼容\n- ⚡ **高性能** - 使用 Go 构建，性能更优异\n- \U0001F4BE **智能缓存** - 内置内存缓存，响应更快速\n- \U0001F3A8 **20+ 精美主题** - 支持所有原始主题及更多\n- \U0001F3C6 **15+ 奖杯类型** - Stars、Commits、Followers、Issues、PRs 等\n\n## \U0001F680 快速开始\n\n部署后，您可以在 GitHub 个人资料 README 中使用服务网址：\n\n```markdown\n[![trophy](https://${PUBLIC_DOMAIN}.zeabur.app/?username=您的GitHub用户名&theme=onedark)](https://github.com/ryo-ma/github-profile-trophy)\n```\n\n## \U0001F4D6 配置\n\n### GitHub Token\n\n您**必须**提供一个 GitHub Personal Access Token 才能使用此服务：\n\n1. 前往 https://github.com/settings/tokens\n2. 点击「Generate new token (classic)」\n3. 选择权限：`read:user`、`public_repo`\n4. 生成并复制 token\n5. 粘贴到 `GITHUB_TOKEN1` 字段\n\n## \U0001F3A8 可用主题\n\n- `default`、`flat`、`onedark`、`gruvbox`、`dracula`、`monokai`、`chalk`\n- `nord`、`alduin`、`darkhub`、`juicyfresh`、`oldie`、`buddhism`\n- `radical`、`onestar`、`discord`、`algolia`、`gitdimmed`、`tokyonight`\n- `matrix`、`apprentice`、`dark_dimmed`、`dark_lover`、`kimbie_dark`、`aura`\n\n## \U0001F4CB API 参数\n\n| 参数 | 说明 | 示例 |\n|------|------|------|\n| `username` | GitHub 用户名（必填） | `?username=ryo-ma` |\n| `theme` | 主题名称 | `&theme=onedark` |\n| `title` | 按奖杯标题筛选 | `&title=Stars,Followers` |\n| `rank` | 按等级筛选 | `&rank=S,AAA` |\n| `column` | 最大列数 | `&column=7` |\n| `row` | 最大行数 | `&row=2` |\n| `margin-w` | 水平间距 | `&margin-w=15` |\n| `margin-h` | 垂直间距 | `&margin-h=15` |\n| `no-bg` | 透明背景 | `&no-bg=true` |\n| `no-frame` | 隐藏边框 | `&no-frame=true` |\n\n## \U0001F517 链接\n\n- [GitHub 仓库](https://github.com/soulteary/github-profile-trophy)\n- [原始项目](https://github.com/ryo-ma/github-profile-trophy)\n- [文档](https://github.com/soulteary/github-profile-trophy#readme)\n"
    zh-TW:
        description: GitHub Profile Trophy 的高效能 Go 實現 - 為您的 GitHub 個人檔案產生精美的獎盃卡片，支援 20+ 主題和豐富的自訂選項。
        variables:
            - key: GITHUB_TOKEN1
              type: STRING
              name: GitHub Token
              description: GitHub Personal Access Token（API 存取必需）。從 https://github.com/settings/tokens 取得
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: 服務網域
              description: GitHub Profile Trophy 服務的網域
        readme: "# GitHub Profile Trophy (Go 實現)\n\nGitHub Profile Trophy 專案的 **100% 相容 Go 實現**。為您的 GitHub 個人檔案產生精美的獎盃卡片，支援 20+ 主題和豐富的自訂選項。\n\n## ✨ 特色功能\n\n- \U0001F3AF **100% API 相容** - 與原始專案完全相容\n- ⚡ **高效能** - 使用 Go 建置，效能更優異\n- \U0001F4BE **智慧快取** - 內建記憶體快取，回應更快速\n- \U0001F3A8 **20+ 精美主題** - 支援所有原始主題及更多\n- \U0001F3C6 **15+ 獎盃類型** - Stars、Commits、Followers、Issues、PRs 等\n\n## \U0001F680 快速開始\n\n部署後，您可以在 GitHub 個人檔案 README 中使用服務網址：\n\n```markdown\n[![trophy](https://${PUBLIC_DOMAIN}.zeabur.app/?username=您的GitHub使用者名稱&theme=onedark)](https://github.com/ryo-ma/github-profile-trophy)\n```\n\n## \U0001F4D6 設定\n\n### GitHub Token\n\n您**必須**提供一個 GitHub Personal Access Token 才能使用此服務：\n\n1. 前往 https://github.com/settings/tokens\n2. 點擊「Generate new token (classic)」\n3. 選擇權限：`read:user`、`public_repo`\n4. 產生並複製 token\n5. 貼到 `GITHUB_TOKEN1` 欄位\n\n## \U0001F3A8 可用主題\n\n- `default`、`flat`、`onedark`、`gruvbox`、`dracula`、`monokai`、`chalk`\n- `nord`、`alduin`、`darkhub`、`juicyfresh`、`oldie`、`buddhism`\n- `radical`、`onestar`、`discord`、`algolia`、`gitdimmed`、`tokyonight`\n- `matrix`、`apprentice`、`dark_dimmed`、`dark_lover`、`kimbie_dark`、`aura`\n\n## \U0001F4CB API 參數\n\n| 參數 | 說明 | 範例 |\n|------|------|------|\n| `username` | GitHub 使用者名稱（必填） | `?username=ryo-ma` |\n| `theme` | 主題名稱 | `&theme=onedark` |\n| `title` | 依獎盃標題篩選 | `&title=Stars,Followers` |\n| `rank` | 依等級篩選 | `&rank=S,AAA` |\n| `column` | 最大欄數 | `&column=7` |\n| `row` | 最大列數 | `&row=2` |\n| `margin-w` | 水平間距 | `&margin-w=15` |\n| `margin-h` | 垂直間距 | `&margin-h=15` |\n| `no-bg` | 透明背景 | `&no-bg=true` |\n| `no-frame` | 隱藏邊框 | `&no-frame=true` |\n\n## \U0001F517 連結\n\n- [GitHub 儲存庫](https://github.com/soulteary/github-profile-trophy)\n- [原始專案](https://github.com/ryo-ma/github-profile-trophy)\n- [說明文件](https://github.com/soulteary/github-profile-trophy#readme)\n"
