# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: TrailBase
spec:
    description: |
        TrailBase is a blazingly fast, single-file, open-source application server built with Rust, SQLite, and V8. It provides auth, CRUD APIs, a real-time dashboard, and a JS/ES6 runtime — no external database required.
    coverImage: https://trailbase.io/_astro/screenshots.CNoytmVr_Z5QeBW.webp
    icon: https://avatars.githubusercontent.com/u/122234712?v=4
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access TrailBase
        - key: ADMIN_PASSWORD
          type: PASSWORD
          name: Admin Password
          description: The admin password for the TrailBase dashboard
    tags:
        - Backend
        - Developer Tools
    readme: |
        # TrailBase

        A blazingly fast, open-source application server with auth, CRUD APIs, a real-time admin dashboard, and JS/ES6 runtime — all in a single binary with embedded SQLite.

        ## First-Time Setup

        1. **Visit your domain** — open `/admin` to access the admin dashboard
        2. **Log in** — use the admin password you set during deployment
        3. **Create tables** — use the dashboard to define your data schema
        4. **Build APIs** — TrailBase auto-generates REST and record APIs for your tables

        ## Key Features

        - Auth system with email/password and OAuth
        - Auto-generated REST APIs for SQLite tables
        - Real-time admin dashboard
        - JS/ES6 runtime powered by V8 for custom server logic
        - File uploads and storage
        - Sub-millisecond latency on commodity hardware
        - Single binary, no external dependencies

        ## License

        Apache-2.0 — [GitHub](https://github.com/trailbase/trailbase)
    services:
        - name: trailbase
          icon: https://avatars.githubusercontent.com/u/122234712?v=4
          template: PREBUILT_V2
          spec:
            source:
                image: trailbase/trailbase:0.25.2
            ports:
                - id: web
                  port: 4000
                  type: HTTP
            volumes:
                - id: data
                  dir: /data
            env:
                TRAILBASE_ADMIN_PASSWORD:
                    default: ${ADMIN_PASSWORD}
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            TrailBase es un servidor de aplicaciones ultrarrápido de archivo único, construido con Rust, SQLite y V8. Ofrece autenticación, APIs CRUD, panel en tiempo real y runtime JS/ES6 — sin base de datos externa.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a TrailBase
            - key: ADMIN_PASSWORD
              type: STRING
              name: Contraseña de admin
              description: La contraseña de administrador del panel de TrailBase
        readme: |
            # TrailBase

            Servidor de aplicaciones ultrarrápido y de código abierto con autenticación, APIs CRUD, panel de administración en tiempo real y runtime JS/ES6 — todo en un solo binario con SQLite integrado.

            ## Configuración inicial

            1. **Visita tu dominio** — abre `/admin` para acceder al panel
            2. **Inicia sesión** — usa la contraseña de admin configurada durante el despliegue
            3. **Crea tablas** — define tu esquema de datos desde el panel
            4. **Crea APIs** — TrailBase genera automáticamente APIs REST para tus tablas

            ## Licencia

            Apache-2.0 — [GitHub](https://github.com/trailbase/trailbase)
    id-ID:
        description: |
            TrailBase adalah server aplikasi open-source super cepat dalam satu file, dibangun dengan Rust, SQLite, dan V8. Menyediakan auth, CRUD API, dashboard real-time, dan runtime JS/ES6 — tanpa database eksternal.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses TrailBase
            - key: ADMIN_PASSWORD
              type: STRING
              name: Password Admin
              description: Password admin untuk dashboard TrailBase
        readme: |
            # TrailBase

            Server aplikasi open-source super cepat dengan auth, CRUD API, dashboard admin real-time, dan runtime JS/ES6 — semua dalam satu binary dengan SQLite tertanam.

            ## Pengaturan Awal

            1. **Buka domain** — akses `/admin` untuk masuk ke dashboard admin
            2. **Login** — gunakan password admin yang diatur saat deploy
            3. **Buat tabel** — definisikan skema data melalui dashboard
            4. **Buat API** — TrailBase otomatis membuat REST API untuk tabel Anda

            ## Lisensi

            Apache-2.0 — [GitHub](https://github.com/trailbase/trailbase)
    ja-JP:
        description: |
            TrailBase は Rust、SQLite、V8 で構築された超高速シングルバイナリのオープンソースアプリケーションサーバーです。認証、CRUD API、リアルタイムダッシュボード、JS/ES6 ランタイムを提供します。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: TrailBase にアクセスするためのドメイン
            - key: ADMIN_PASSWORD
              type: STRING
              name: 管理者パスワード
              description: TrailBase ダッシュボードの管理者パスワード
        readme: |
            # TrailBase

            超高速のオープンソースアプリケーションサーバー。認証、CRUD API、リアルタイム管理ダッシュボード、JS/ES6 ランタイムを搭載。SQLite 内蔵のシングルバイナリ。

            ## 初回セットアップ

            1. **ドメインにアクセス** — `/admin` で管理ダッシュボードを開く
            2. **ログイン** — デプロイ時に設定した管理者パスワードを使用
            3. **テーブルを作成** — ダッシュボードでデータスキーマを定義
            4. **API を作成** — TrailBase がテーブルの REST/レコード API を自動生成

            ## ライセンス

            Apache-2.0 — [GitHub](https://github.com/trailbase/trailbase)
    ko-KR:
        description: |
            TrailBase는 Rust, SQLite, V8로 구축된 초고속 싱글 바이너리 오픈소스 애플리케이션 서버입니다. 인증, CRUD API, 실시간 대시보드, JS/ES6 런타임을 제공합니다.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: TrailBase에 접속할 도메인
            - key: ADMIN_PASSWORD
              type: STRING
              name: 관리자 비밀번호
              description: TrailBase 대시보드의 관리자 비밀번호
        readme: |
            # TrailBase

            초고속 오픈소스 애플리케이션 서버. 인증, CRUD API, 실시간 관리 대시보드, JS/ES6 런타임 내장. SQLite 포함 싱글 바이너리.

            ## 첫 설정

            1. **도메인 접속** — `/admin`에서 관리 대시보드 열기
            2. **로그인** — 배포 시 설정한 관리자 비밀번호 사용
            3. **테이블 생성** — 대시보드에서 데이터 스키마 정의
            4. **API 생성** — TrailBase가 테이블의 REST/레코드 API를 자동 생성

            ## 라이선스

            Apache-2.0 — [GitHub](https://github.com/trailbase/trailbase)
    th-TH:
        description: |
            TrailBase เป็นเซิร์ฟเวอร์แอปพลิเคชันโอเพนซอร์สไฟล์เดียวที่เร็วมาก สร้างด้วย Rust, SQLite และ V8 มี auth, CRUD API, แดชบอร์ดเรียลไทม์ และ JS/ES6 runtime — ไม่ต้องใช้ฐานข้อมูลภายนอก
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง TrailBase
            - key: ADMIN_PASSWORD
              type: STRING
              name: รหัสผ่านแอดมิน
              description: รหัสผ่านแอดมินสำหรับแดชบอร์ด TrailBase
        readme: |
            # TrailBase

            เซิร์ฟเวอร์แอปพลิเคชันโอเพนซอร์สที่เร็วมาก พร้อม auth, CRUD API, แดชบอร์ดแอดมินเรียลไทม์ และ JS/ES6 runtime — ทั้งหมดในไบนารีเดียวพร้อม SQLite ในตัว

            ## การตั้งค่าครั้งแรก

            1. **เข้าสู่โดเมน** — เปิด `/admin` เพื่อเข้าแดชบอร์ดแอดมิน
            2. **เข้าสู่ระบบ** — ใช้รหัสผ่านแอดมินที่ตั้งไว้ตอนติดตั้ง
            3. **สร้างตาราง** — กำหนดโครงสร้างข้อมูลผ่านแดชบอร์ด
            4. **สร้าง API** — TrailBase สร้าง REST API สำหรับตารางอัตโนมัติ

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

            Apache-2.0 — [GitHub](https://github.com/trailbase/trailbase)
    zh-CN:
        description: |
            TrailBase 是极速的单文件开源应用服务器，使用 Rust、SQLite 和 V8 构建。提供认证、CRUD API、实时仪表板和 JS/ES6 运行时 — 无需外部数据库。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 TrailBase 的域名
            - key: ADMIN_PASSWORD
              type: STRING
              name: 管理员密码
              description: TrailBase 仪表板的管理员密码
        readme: |
            # TrailBase

            极速的开源应用服务器，内置认证、CRUD API、实时管理仪表板和 JS/ES6 运行时 — 单一可执行文件搭配嵌入式 SQLite。

            ## 首次设置

            1. **打开域名** — 访问 `/admin` 进入管理仪表板
            2. **登录** — 使用部署时设置的管理员密码
            3. **创建数据表** — 通过仪表板定义数据结构
            4. **创建 API** — TrailBase 自动为数据表生成 REST 和记录 API

            ## 授权

            Apache-2.0 — [GitHub](https://github.com/trailbase/trailbase)
    zh-TW:
        description: |
            TrailBase 是極速的單檔開源應用伺服器，使用 Rust、SQLite 和 V8 打造。提供驗證、CRUD API、即時儀表板和 JS/ES6 執行環境 — 無需外部資料庫。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 TrailBase 的網域
            - key: ADMIN_PASSWORD
              type: STRING
              name: 管理員密碼
              description: TrailBase 儀表板的管理員密碼
        readme: |
            # TrailBase

            極速的開源應用伺服器，內建驗證、CRUD API、即時管理儀表板和 JS/ES6 執行環境 — 單一執行檔搭配嵌入式 SQLite。

            ## 首次設定

            1. **開啟網域** — 造訪 `/admin` 進入管理儀表板
            2. **登入** — 使用部署時設定的管理員密碼
            3. **建立資料表** — 透過儀表板定義資料結構
            4. **建立 API** — TrailBase 自動為資料表產生 REST 和記錄 API

            ## 授權

            Apache-2.0 — [GitHub](https://github.com/trailbase/trailbase)
