# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: ttyd
spec:
    description: |
        ttyd is a simple command-line tool for sharing terminal over the web. Built on libuv and WebGL2 for speed, with full CJK/IME support, ZMODEM file transfer, Sixel image output, SSL support, and basic authentication.
    coverImage: https://github.com/tsl0922/ttyd/raw/main/screenshot.gif
    icon: https://raw.githubusercontent.com/tsl0922/ttyd/main/html/src/favicon.png
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access ttyd
    tags:
        - Tool
        - Development
    readme: |
        # ttyd

        A simple command-line tool for sharing terminal over the web. Access a full-featured terminal directly from your browser.

        ## What You Can Do After Deployment

        1. **Open your domain** — a web-based terminal is ready immediately
        2. **Run commands** — full terminal emulation with xterm.js
        3. **Transfer files** — ZMODEM and trzsz file transfer support built in
        4. **Share access** — send the URL to anyone who needs terminal access
        5. **Configure authentication** — set username/password via environment variables

        ## Key Features

        - Full-featured terminal with CJK and IME support
        - ZMODEM / trzsz file transfer
        - Sixel image output support
        - SSL support with OpenSSL / Mbed TLS
        - Basic authentication
        - Configurable max clients and read-only mode
        - Cross-platform: Linux, macOS, FreeBSD, Windows

        ## License

        MIT — [GitHub](https://github.com/tsl0922/ttyd)
    services:
        - name: ttyd
          icon: https://raw.githubusercontent.com/tsl0922/ttyd/main/html/src/favicon.png
          template: PREBUILT_V2
          spec:
            source:
                image: tsl0922/ttyd:1.7.8
            ports:
                - id: web
                  port: 7681
                  type: HTTP
            env:
                TTYD_OPTS:
                    default: -W
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            ttyd es una herramienta de línea de comandos para compartir terminal a través del navegador web. Basado en libuv y WebGL2, soporta CJK/IME, transferencia ZMODEM, salida Sixel, SSL y autenticación básica.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a ttyd
        readme: |
            # ttyd

            Herramienta de línea de comandos para compartir terminal por la web. Accede a un terminal completo directamente desde el navegador.

            ## Qué puedes hacer después del despliegue

            1. **Visita tu dominio** — terminal web listo al instante
            2. **Ejecuta comandos** — emulación completa de terminal con xterm.js
            3. **Transfiere archivos** — transferencia ZMODEM y trzsz integrada
            4. **Comparte acceso** — envía la URL a quien necesite acceso al terminal
            5. **Configura autenticación** — establece usuario y contraseña con variables de entorno

            ## Licencia

            MIT — [GitHub](https://github.com/tsl0922/ttyd)
    id-ID:
        description: |
            ttyd adalah alat baris perintah sederhana untuk berbagi terminal melalui browser web. Dibangun di atas libuv dan WebGL2, mendukung CJK/IME, transfer file ZMODEM, output gambar Sixel, SSL, dan autentikasi dasar.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses ttyd
        readme: |
            # ttyd

            Alat baris perintah sederhana untuk berbagi terminal melalui web. Akses terminal lengkap langsung dari browser.

            ## Apa yang bisa dilakukan setelah deploy

            1. **Buka domain** — terminal web langsung siap digunakan
            2. **Jalankan perintah** — emulasi terminal penuh dengan xterm.js
            3. **Transfer file** — transfer file ZMODEM dan trzsz bawaan
            4. **Bagikan akses** — kirim URL ke siapa saja yang butuh akses terminal
            5. **Atur autentikasi** — tetapkan username dan password via variabel lingkungan

            ## Lisensi

            MIT — [GitHub](https://github.com/tsl0922/ttyd)
    ja-JP:
        description: |
            ttyd はウェブブラウザでターミナルを共有するシンプルなコマンドラインツールです。libuv と WebGL2 ベースで高速、CJK/IME、ZMODEM ファイル転送、Sixel 画像出力、SSL、基本認証に対応。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: ttyd にアクセスするためのドメイン
        readme: |
            # ttyd

            ウェブでターミナルを共有するシンプルなコマンドラインツール。ブラウザから直接フル機能のターミナルを利用できます。

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

            1. **ドメインにアクセス** — ウェブターミナルがすぐに使えます
            2. **コマンドを実行** — xterm.js ベースの完全なターミナルエミュレーション
            3. **ファイルを転送** — ZMODEM と trzsz ファイル転送を内蔵
            4. **アクセスを共有** — URL を送るだけでターミナルを共有
            5. **認証を設定** — 環境変数でユーザー名とパスワードを設定

            ## ライセンス

            MIT — [GitHub](https://github.com/tsl0922/ttyd)
    ko-KR:
        description: |
            ttyd는 웹 브라우저로 터미널을 공유하는 간단한 명령줄 도구입니다. libuv와 WebGL2 기반으로 빠르며 CJK/IME, ZMODEM 파일 전송, Sixel 이미지 출력, SSL, 기본 인증을 지원합니다.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: ttyd에 접속할 도메인
        readme: |
            # ttyd

            웹으로 터미널을 공유하는 간단한 명령줄 도구. 브라우저에서 바로 전체 기능 터미널을 사용할 수 있습니다.

            ## 배포 후 할 수 있는 것

            1. **도메인 접속** — 웹 터미널이 즉시 사용 가능
            2. **명령 실행** — xterm.js 기반 완전한 터미널 에뮬레이션
            3. **파일 전송** — ZMODEM 및 trzsz 파일 전송 내장
            4. **접속 공유** — URL을 보내 터미널 접속 공유
            5. **인증 설정** — 환경 변수로 사용자 이름과 비밀번호 설정

            ## 라이선스

            MIT — [GitHub](https://github.com/tsl0922/ttyd)
    th-TH:
        description: |
            ttyd เป็นเครื่องมือบรรทัดคำสั่งสำหรับแชร์เทอร์มินัลผ่านเว็บเบราว์เซอร์ สร้างบน libuv และ WebGL2 รองรับ CJK/IME, ZMODEM, Sixel, SSL และการยืนยันตัวตนเบื้องต้น
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง ttyd
        readme: |
            # ttyd

            เครื่องมือบรรทัดคำสั่งสำหรับแชร์เทอร์มินัลผ่านเว็บ เข้าถึงเทอร์มินัลเต็มรูปแบบจากเบราว์เซอร์ได้โดยตรง

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

            1. **เข้าสู่โดเมน** — เว็บเทอร์มินัลพร้อมใช้ทันที
            2. **รันคำสั่ง** — จำลองเทอร์มินัลเต็มรูปแบบด้วย xterm.js
            3. **ถ่ายโอนไฟล์** — รองรับ ZMODEM และ trzsz ในตัว
            4. **แชร์การเข้าถึง** — ส่ง URL ให้ผู้ที่ต้องการเข้าถึงเทอร์มินัล
            5. **ตั้งค่าการยืนยันตัวตน** — กำหนดชื่อผู้ใช้และรหัสผ่านผ่านตัวแปรสภาพแวดล้อม

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

            MIT — [GitHub](https://github.com/tsl0922/ttyd)
    zh-CN:
        description: |
            ttyd 是一个简单的命令行工具，可通过网页浏览器共享终端。基于 libuv 和 WebGL2 构建，支持 CJK/IME、ZMODEM 文件传输、Sixel 图片输出、SSL 和基本认证。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 ttyd 的域名
        readme: |
            # ttyd

            简单的命令行工具，通过网页共享终端。直接在浏览器中使用全功能终端。

            ## 部署后可以做什么

            1. **打开域名** — 网页终端立即可用
            2. **执行命令** — 基于 xterm.js 的完整终端模拟
            3. **传输文件** — 内置 ZMODEM 和 trzsz 文件传输
            4. **分享访问** — 将 URL 发送给需要终端访问的人
            5. **配置认证** — 通过环境变量设置用户名密码

            ## 授权

            MIT — [GitHub](https://github.com/tsl0922/ttyd)
    zh-TW:
        description: |
            ttyd 是一個簡單的命令列工具，可透過網頁瀏覽器分享終端機。基於 libuv 和 WebGL2 打造，支援 CJK/IME、ZMODEM 檔案傳輸、Sixel 圖片輸出、SSL 和基本驗證。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 ttyd 的網域
        readme: |
            # ttyd

            簡單的命令列工具，透過網頁分享終端機。直接在瀏覽器中使用完整功能的終端機。

            ## 部署後可以做什麼

            1. **開啟網域** — 網頁終端機立即可用
            2. **執行命令** — 基於 xterm.js 的完整終端機模擬
            3. **傳輸檔案** — 內建 ZMODEM 和 trzsz 檔案傳輸
            4. **分享存取** — 將 URL 傳送給需要終端機存取的人
            5. **設定驗證** — 透過環境變數設定帳號密碼

            ## 授權

            MIT — [GitHub](https://github.com/tsl0922/ttyd)
