# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Kutt
spec:
    description: |
        Kutt is a modern, open-source URL shortener with built-in analytics. Create short links, track clicks with detailed statistics, set custom domains, manage links with an API, and set expiration or password protection. Uses embedded SQLite — no external database needed.
    coverImage: https://avatars.githubusercontent.com/u/38507675
    icon: https://avatars.githubusercontent.com/u/38507675
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access Kutt
    tags:
        - Tool
        - Productivity
    readme: |
        # Kutt

        Modern URL shortener with analytics dashboard. Create short links, track clicks, and manage everything through a clean web interface or REST API.

        ## What You Can Do After Deployment

        1. **Open the dashboard** — visit your domain to access the Kutt interface
        2. **Create short links** — paste any URL and get a shortened link instantly
        3. **View analytics** — track clicks, referrers, browsers, and countries per link
        4. **Set custom slugs** — choose your own short URL path instead of random characters
        5. **Use the API** — programmatically create and manage links via REST API

        ## Key Features

        - Short link creation with custom slugs
        - Click analytics with referrer, browser, OS, and country data
        - Link expiration dates
        - Password-protected links
        - REST API for programmatic link management
        - Custom domain support
        - QR code generation
        - Built-in SQLite database — no external DB required

        ## License

        MIT — [GitHub](https://github.com/thedevs-network/kutt)
    services:
        - name: kutt
          icon: https://avatars.githubusercontent.com/u/38507675
          template: PREBUILT_V2
          spec:
            source:
                image: kutt/kutt:v3.2.3
            ports:
                - id: web
                  port: 3000
                  type: HTTP
            volumes:
                - id: data
                  dir: /var/lib/kutt
            env:
                DB_FILENAME:
                    default: /var/lib/kutt/data.sqlite
                DEFAULT_DOMAIN:
                    default: ${ZEABUR_WEB_URL}
                PORT:
                    default: "3000"
                SITE_NAME:
                    default: Kutt
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            Kutt es un acortador de URL moderno y de código abierto con analíticas integradas. Crea enlaces cortos, rastrea clics, configura dominios personalizados, gestiona enlaces por API, y establece expiración o protección con contraseña. Usa SQLite integrado.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a Kutt
        readme: |
            # Kutt

            Acortador de URL moderno con panel de analíticas. Crea enlaces cortos, rastrea clics y gestiona todo desde la interfaz web o la API REST.

            ## Qué puedes hacer después del despliegue

            1. **Abre el panel** — visita tu dominio para acceder a la interfaz de Kutt
            2. **Crea enlaces cortos** — pega cualquier URL y obtén un enlace acortado al instante
            3. **Ve las analíticas** — rastrea clics, referentes, navegadores y países por enlace
            4. **Configura slugs personalizados** — elige tu propia ruta de URL corta
            5. **Usa la API** — crea y gestiona enlaces programáticamente vía REST API

            ## Licencia

            MIT — [GitHub](https://github.com/thedevs-network/kutt)
    id-ID:
        description: |
            Kutt adalah pemendek URL modern dan open-source dengan analitik bawaan. Buat tautan pendek, lacak klik dengan statistik detail, atur domain kustom, kelola tautan via API, dan atur kedaluwarsa atau proteksi kata sandi. Menggunakan SQLite bawaan.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses Kutt
        readme: |
            # Kutt

            Pemendek URL modern dengan dashboard analitik. Buat tautan pendek, lacak klik, dan kelola semuanya melalui antarmuka web atau REST API.

            ## Apa yang bisa dilakukan setelah deploy

            1. **Buka dashboard** — kunjungi domain untuk mengakses antarmuka Kutt
            2. **Buat tautan pendek** — tempel URL apa pun dan dapatkan tautan pendek instan
            3. **Lihat analitik** — lacak klik, referrer, browser, dan negara per tautan
            4. **Atur slug kustom** — pilih path URL pendek Anda sendiri
            5. **Gunakan API** — buat dan kelola tautan secara programatik via REST API

            ## Lisensi

            MIT — [GitHub](https://github.com/thedevs-network/kutt)
    ja-JP:
        description: |
            Kutt はモダンなオープンソースURL短縮サービスです。短縮リンクの作成、クリック分析、カスタムドメイン、API管理、有効期限やパスワード保護に対応。内蔵SQLiteで外部DB不要。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: Kutt にアクセスするためのドメイン
        readme: |
            # Kutt

            分析ダッシュボード付きのモダンなURL短縮サービス。短縮リンクの作成、クリック追跡、WebインターフェースまたはREST APIで管理。

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

            1. **ダッシュボードを開く** — ドメインにアクセスしてKuttインターフェースを利用
            2. **短縮リンクを作成** — URLを貼り付けて即座に短縮リンクを取得
            3. **分析を確認** — リンクごとのクリック、参照元、ブラウザ、国を追跡
            4. **カスタムスラグを設定** — 独自の短縮URLパスを選択
            5. **APIを使用** — REST APIでリンクをプログラム的に作成・管理

            ## ライセンス

            MIT — [GitHub](https://github.com/thedevs-network/kutt)
    ko-KR:
        description: |
            Kutt는 분석 기능이 내장된 현대적인 오픈소스 URL 단축 서비스입니다. 단축 링크 생성, 클릭 추적, 커스텀 도메인, API 관리, 만료 및 비밀번호 보호를 지원합니다. 내장 SQLite 사용으로 외부 DB 불필요.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: Kutt에 접속할 도메인
        readme: |
            # Kutt

            분석 대시보드가 내장된 현대적인 URL 단축 서비스. 단축 링크를 만들고, 클릭을 추적하고, 깔끔한 웹 인터페이스 또는 REST API로 관리하세요.

            ## 배포 후 할 수 있는 것

            1. **대시보드 열기** — 도메인에 접속하여 Kutt 인터페이스 이용
            2. **단축 링크 만들기** — URL을 붙여넣고 즉시 단축 링크 받기
            3. **분석 보기** — 링크별 클릭, 리퍼러, 브라우저, 국가 추적
            4. **커스텀 슬러그 설정** — 원하는 단축 URL 경로 선택
            5. **API 사용** — REST API로 링크를 프로그래밍 방식으로 생성 및 관리

            ## 라이선스

            MIT — [GitHub](https://github.com/thedevs-network/kutt)
    th-TH:
        description: |
            Kutt เป็นตัวย่อ URL สมัยใหม่แบบ open-source พร้อมการวิเคราะห์ในตัว สร้างลิงก์สั้น ติดตามคลิก ตั้งโดเมนกำหนดเอง จัดการผ่าน API ตั้งเวลาหมดอายุหรือรหัสผ่าน ใช้ SQLite ในตัวไม่ต้องการ DB ภายนอก
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง Kutt
        readme: |
            # Kutt

            ตัวย่อ URL สมัยใหม่พร้อมแดชบอร์ดวิเคราะห์ สร้างลิงก์สั้น ติดตามคลิก จัดการทุกอย่างผ่านเว็บอินเตอร์เฟสหรือ REST API

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

            1. **เปิดแดชบอร์ด** — เข้าโดเมนเพื่อใช้อินเตอร์เฟสของ Kutt
            2. **สร้างลิงก์สั้น** — วาง URL ใดก็ได้แล้วรับลิงก์สั้นทันที
            3. **ดูการวิเคราะห์** — ติดตามคลิก แหล่งอ้างอิง เบราว์เซอร์ และประเทศต่อลิงก์
            4. **ตั้ง slug กำหนดเอง** — เลือก path URL สั้นของคุณเอง
            5. **ใช้ API** — สร้างและจัดการลิงก์ผ่าน REST API

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

            MIT — [GitHub](https://github.com/thedevs-network/kutt)
    zh-CN:
        description: |
            Kutt 是现代化的开源短网址服务，内置分析功能。创建短链接、追踪点击统计、设置自定义域名、通过 API 管理链接，还能设置过期时间或密码保护。使用内嵌 SQLite，无需外部数据库。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 Kutt 的域名
        readme: |
            # Kutt

            现代化的短网址服务，内置分析仪表板。创建短链接、追踪点击，通过简洁的网页界面或 REST API 管理一切。

            ## 部署后可以做什么

            1. **打开仪表板** — 浏览域名访问 Kutt 界面
            2. **创建短链接** — 粘贴任何 URL 立即获取缩短链接
            3. **查看分析** — 追踪每个链接的点击、来源、浏览器和国家
            4. **设置自定义短码** — 选择自己的短 URL 路径
            5. **使用 API** — 通过 REST API 程序化创建和管理链接

            ## 授权

            MIT — [GitHub](https://github.com/thedevs-network/kutt)
    zh-TW:
        description: |
            Kutt 是現代化的開源短網址服務，內建分析功能。建立短連結、追蹤點擊統計、設定自訂網域、透過 API 管理連結，還能設定到期時間或密碼保護。使用內嵌 SQLite，無需外部資料庫。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 Kutt 的網域
        readme: |
            # Kutt

            現代化的短網址服務，內建分析儀表板。建立短連結、追蹤點擊，透過簡潔的網頁介面或 REST API 管理一切。

            ## 部署後可以做什麼

            1. **開啟儀表板** — 瀏覽網域存取 Kutt 介面
            2. **建立短連結** — 貼上任何 URL 立即取得縮短連結
            3. **查看分析** — 追蹤每個連結的點擊、來源、瀏覽器和國家
            4. **設定自訂短碼** — 選擇自己的短 URL 路徑
            5. **使用 API** — 透過 REST API 程式化建立和管理連結

            ## 授權

            MIT — [GitHub](https://github.com/thedevs-network/kutt)
