Skip to content

Text to vertical video in 100+ styles: AI codes each scene (HTML/SVG/WebGL), renders a 9:16 MP4 with music and English/Vietnamese voice. MCP, CLI and REST for AI agents.

24.2 KB
Raw Blame
<!doctype html>
<html lang="vi">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>LumReels: video dọc 9:16 dựng bằng code, theo mẫu phong cách</title>
<meta name="description" content="LumReels biến nội dung chữ thành video dọc 9:16. Chọn một mẫu phong cách, AI viết cảnh HTML/SVG/WebGL rồi render MP4. Nối được Claude, ChatGPT qua MCP. Sắp mở mã nguồn MIT.">
<link rel="canonical" href="{{SITE_URL}}/">
<meta name="theme-color" content="#F5F2EC" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#0F0E0D" media="(prefers-color-scheme: dark)">
<meta name="color-scheme" content="light dark">
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<meta property="og:type" content="website">
<meta property="og:site_name" content="LumReels">
<meta property="og:locale" content="vi_VN">
<meta property="og:url" content="{{SITE_URL}}/">
<meta property="og:title" content="LumReels: video dọc dựng bằng code">
<meta property="og:description" content="Đưa nội dung, chọn mẫu phong cách. AI viết cảnh, LumReels render MP4 1080×1920. Nối Claude, ChatGPT qua MCP.">
<meta property="og:image" content="{{SITE_URL}}/og.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="{{SITE_URL}}/og.jpg">
<link rel="preload" href="fonts/be-vietnam-pro-800.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="fonts/be-vietnam-pro-400.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="style.css">
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"SoftwareApplication","name":"LumReels","applicationCategory":"MultimediaApplication","operatingSystem":"Windows, macOS, Linux","url":"{{SITE_URL}}/","description":"Dựng video dọc 9:16 bằng code theo mẫu phong cách: AI viết cảnh HTML/SVG/WebGL, render MP4. Nối AI agent qua MCP, CLI, REST.","license":"https://opensource.org/licenses/MIT","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"publisher":{"@type":"Organization","name":"Lumtek"}}
</script>
</head>
<body>
<a class="skip" href="#mau">Bỏ qua, tới thư viện mẫu</a>

<header class="top">
  <div class="wrap top-in">
    <a class="logo" href="#" aria-label="LumReels, về đầu trang">
      <svg viewBox="0 0 32 32" aria-hidden="true"><rect x="7" y="2" width="18" height="28" rx="4" class="logo-frame"/><path d="M13 11v10l8-5z" class="logo-play"/></svg>
      <span>LumReels</span>
    </a>
    <nav class="nav" aria-label="Mục chính">
      <a href="#moi">Mới</a>
      <a href="#mau">Mẫu</a>
      <a href="#cach">Cách hoạt động</a>
      <a href="#agent">AI agent</a>
      <a href="#cai">Cài đặt</a>
    </nav>
    <a class="btn btn-ghost btn-sm gh" href="{{GITHUB}}" rel="noopener">
      <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2a10 10 0 0 0-3.16 19.49c.5.09.68-.22.68-.48v-1.7c-2.78.6-3.37-1.34-3.37-1.34-.45-1.16-1.11-1.47-1.11-1.47-.91-.62.07-.6.07-.6 1 .07 1.53 1.03 1.53 1.03.9 1.52 2.34 1.08 2.91.83.09-.65.35-1.09.63-1.34-2.22-.25-4.55-1.11-4.55-4.94 0-1.09.39-1.98 1.03-2.68-.1-.25-.45-1.27.1-2.65 0 0 .84-.27 2.75 1.02a9.6 9.6 0 0 1 5 0c1.91-1.29 2.75-1.02 2.75-1.02.55 1.38.2 2.4.1 2.65.64.7 1.03 1.59 1.03 2.68 0 3.84-2.34 4.68-4.57 4.93.36.31.68.92.68 1.85v2.74c0 .27.18.58.69.48A10 10 0 0 0 12 2z"/></svg>
      <span>GitHub</span>
    </a>
  </div>
</header>

<main id="top">
  <!-- HERO -->
  <section class="hero">
    <div class="wrap hero-in">
      <div class="hero-copy">
        <p class="kicker"><span class="dot" aria-hidden="true"></span>Mã nguồn mở MIT</p>
        <h1>Video dọc,<br><em>dựng bằng code.</em></h1>
        <p class="lead">Đưa nội dung. Chọn một mẫu phong cách. AI viết cảnh HTML, SVG, WebGL. LumReels render ra MP4 9:16.</p>
        <p class="lead-sub">Bạn tự làm, hoặc để Claude, ChatGPT làm giúp qua MCP.</p>
        <div class="cta">
          <a class="btn btn-primary" href="#mau">Xem {{COUNT}} video mẫu</a>
          <a class="btn btn-ghost" href="#agent">Nối với AI agent</a>
        </div>
        <dl class="facts">
          <div><dt>Khung</dt><dd>1080×1920</dd></div>
          <div><dt>Tốc độ</dt><dd>30 fps</dd></div>
          <div><dt>Một video 8 s</dt><dd>~30 s render</dd></div>
        </dl>
      </div>
      <figure class="hero-media">
        <div class="phone">
          <video id="hero-video" muted loop playsinline autoplay preload="auto" poster="media/{{HERO_ID}}.webp?v={{HERO_V}}" width="720" height="1280" aria-label="Video mẫu #{{HERO_ID}}: {{HERO_NAME}}">
            <source src="media/{{HERO_ID}}.mp4?v={{HERO_V}}" type="video/mp4">
          </video>
        </div>
        <figcaption>Mẫu #{{HERO_ID}} · {{HERO_NAME}}. Dựng hoàn toàn bằng code, không quay, không AI tạo ảnh.</figcaption>
      </figure>
    </div>
  </section>

  <!-- MỚI CẬP NHẬT -->
  <section class="sec sec-alt sec-new" id="moi" aria-labelledby="moi-h">
    <div class="wrap">
      <div class="sec-head">
        <p class="eyebrow">Mới cập nhật</p>
        <h2 id="moi-h">Sửa video trên timeline.<br>Làm mẫu từ video bạn thích.</h2>
        <p class="sec-lead">Năm thay đổi trong bản tháng 11/2026. Bấm ảnh để xem lớn.</p>
      </div>
      <ul class="news" aria-label="Tính năng mới">
        <li class="new">
          <a class="new-media" href="moi/studio.webp" target="_blank" rel="noopener"><img src="moi/studio.webp" width="720" height="900" loading="lazy" decoding="async" alt="Studio sửa video: khung xem trước, ô sửa phụ đề và timeline các track Video, Phụ đề, Zoom, Đồ hoạ, Nhạc"></a>
          <h3>Studio kiểu CapCut</h3>
          <p>Timeline nhiều track. Kéo mép phụ đề để đổi giờ, xem trước ngay rồi mới xuất. Reel đã dựng có nút <b>Sửa tiếp trong Studio</b>.</p>
        </li>
        <li class="new">
          <a class="new-media" href="moi/tao-mau.webp" target="_blank" rel="noopener"><img src="moi/tao-mau.webp" width="720" height="900" loading="lazy" decoding="async" alt="Tạo mẫu từ video: video gốc và các bản dựng thử theo cùng phong cách"></a>
          <h3>Tạo mẫu từ video</h3>
          <p>Tải lên một video bạn thích cách dựng. AI xem, viết hướng dẫn phong cách, dựng thử rồi lưu vào <b>Của tôi</b>.</p>
        </li>
        <li class="new">
          <a class="new-media" href="moi/goi-mau.webp" target="_blank" rel="noopener"><img src="moi/goi-mau.webp" width="720" height="900" loading="lazy" decoding="async" alt="Hộp thoại nhập gói mẫu .lumpack với tác giả, giấy phép, mã kiểm và cảnh báo chế độ khoá"></a>
          <h3>Gói mẫu .lumpack</h3>
          <p>Nhập, xuất, gửi mẫu cho người khác. Gói nhận về được xem trước rồi mới cài. Mẫu cộng đồng chạy ở chế độ khoá an toàn.</p>
        </li>
        <li class="new">
          <a class="new-media" href="moi/giong.webp" target="_blank" rel="noopener"><img src="moi/giong.webp" width="720" height="900" loading="lazy" decoding="async" alt="Danh sách Giọng của tôi với nút Thêm giọng, nghe thử, đổi tên, xoá"></a>
          <h3>Giọng của tôi</h3>
          <p>Thu âm hoặc tải giọng lên, đặt tên, chọn như giọng có sẵn. Chỉ dùng giọng của bạn hoặc của người đã đồng ý.</p>
        </li>
        <li class="new">
          <a class="new-media" href="moi/cach-dung.webp" target="_blank" rel="noopener"><img src="moi/cach-dung.webp" width="720" height="900" loading="lazy" decoding="async" alt="Lưới 14 cách dựng cho clip tự quay và nút chuyển giao diện Việt, Anh"></a>
          <h3>14 cách dựng</h3>
          <p>Clip tự quay có 14 cách dựng để chọn, từ review sản phẩm tới trích đoạn podcast. Giao diện có tiếng Việt và tiếng Anh.</p>
        </li>
      </ul>
    </div>
  </section>

  <!-- THƯ VIỆN -->
  <section class="sec" id="mau" aria-labelledby="mau-h">
    <div class="wrap">
      <div class="sec-head">
        <p class="eyebrow">Thư viện mẫu</p>
        <h2 id="mau-h">Mỗi mẫu là một phong cách.<br>Nội dung là của bạn.</h2>
        <p class="sec-lead">{{COUNT}} video dưới đây do LumReels tự dựng từ kịch bản ngắn. Rê chuột hoặc chạm để xem.</p>
      </div>

      <div class="filters" role="group" aria-label="Lọc mẫu">
        <div class="chips" data-filter="group">
          <button type="button" class="chip" aria-pressed="true" data-value="all">Tất cả <span>{{COUNT}}</span></button>
          <button type="button" class="chip" aria-pressed="false" data-value="faceless">Kể chuyện faceless <span>{{COUNT_FACELESS}}</span></button>
          <button type="button" class="chip" aria-pressed="false" data-value="ads">Quảng cáo ngành <span>{{COUNT_ADS}}</span></button>
          <button type="button" class="chip" aria-pressed="false" data-value="viet-nam">Việt Nam hoá <span>{{COUNT_VN}}</span></button>
        </div>
        <div class="chips" data-filter="tech">
          <button type="button" class="chip chip-sm" aria-pressed="true" data-value="all">Mọi kỹ thuật</button>
          <button type="button" class="chip chip-sm" aria-pressed="false" data-value="2d">2D <span>{{COUNT_2D}}</span></button>
          <button type="button" class="chip chip-sm" aria-pressed="false" data-value="3d">3D <span>{{COUNT_3D}}</span></button>
          <button type="button" class="chip chip-sm" aria-pressed="false" data-value="shader">Shader <span>{{COUNT_SHADER}}</span></button>
        </div>
      </div>

      <ul class="grid" id="grid">
{{GALLERY}}
      </ul>
      <p class="empty" id="empty" hidden>Chưa có mẫu nào khớp bộ lọc này. <button type="button" class="link" id="reset">Bỏ lọc</button></p>
      <p class="note">Thư viện lớn dần theo đợt dựng thử. Tên phong cách do LumReels đặt.</p>
    </div>
  </section>

  <!-- CÁCH HOẠT ĐỘNG -->
  <section class="sec sec-alt" id="cach" aria-labelledby="cach-h">
    <div class="wrap">
      <div class="sec-head">
        <p class="eyebrow">Cách hoạt động</p>
        <h2 id="cach-h">Từ một đoạn chữ<br>tới một file MP4.</h2>
      </div>

      <figure class="flow" aria-labelledby="flow-cap">
        <svg class="flow-h" viewBox="0 0 1120 200" role="img" aria-label="Nội dung, chọn mẫu, AI viết cảnh, render MP4, thư mục Drive">
          <defs><marker id="arr" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0 0 10 5 0 10z" class="f-arrowhead"/></marker></defs>
          <g class="f-line"><path d="M196 90H244" marker-end="url(#arr)"/><path d="M420 90H468" marker-end="url(#arr)"/><path d="M644 90H692" marker-end="url(#arr)"/><path d="M868 90H916" marker-end="url(#arr)"/></g>
          <!-- 1 nội dung -->
          <g transform="translate(20 20)"><rect class="f-box" width="176" height="140" rx="18"/>
            <g class="f-ico" transform="translate(68 22)"><path d="M4 0h28l10 10v34a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3z"/><path d="M10 18h22M10 26h22M10 34h14"/></g>
            <text class="f-t" x="88" y="100" text-anchor="middle">Nội dung</text><text class="f-s" x="88" y="122" text-anchor="middle">kịch bản, số liệu</text></g>
          <!-- 2 mẫu -->
          <g transform="translate(244 20)"><rect class="f-box" width="176" height="140" rx="18"/>
            <g class="f-ico" transform="translate(62 20)"><rect x="0" y="0" width="14" height="24" rx="3"/><rect x="19" y="0" width="14" height="24" rx="3" class="f-accent"/><rect x="38" y="0" width="14" height="24" rx="3"/><rect x="0" y="28" width="14" height="24" rx="3"/><rect x="19" y="28" width="14" height="24" rx="3"/><rect x="38" y="28" width="14" height="24" rx="3"/></g>
            <text class="f-t" x="88" y="100" text-anchor="middle">Chọn mẫu</text><text class="f-s" x="88" y="122" text-anchor="middle">phong cách, nhịp</text></g>
          <!-- 3 AI -->
          <g transform="translate(468 20)"><rect class="f-box f-box-hot" width="176" height="140" rx="18"/>
            <g class="f-ico f-ico-hot" transform="translate(58 26)"><path d="M16 0 2 20l14 20M44 0l14 20-14 20M36 -2 24 42"/></g>
            <text class="f-t f-t-hot" x="88" y="100" text-anchor="middle">AI viết cảnh</text><text class="f-s f-s-hot" x="88" y="122" text-anchor="middle">HTML · SVG · WebGL</text></g>
          <!-- 4 render -->
          <g transform="translate(692 20)"><rect class="f-box" width="176" height="140" rx="18"/>
            <g class="f-ico" transform="translate(70 18)"><rect x="0" y="0" width="36" height="56" rx="6"/><path d="M14 20v16l12-8z" class="f-fill"/></g>
            <text class="f-t" x="88" y="100" text-anchor="middle">Render MP4</text><text class="f-s" x="88" y="122" text-anchor="middle">1080×1920, 30 fps</text></g>
          <!-- 5 drive -->
          <g transform="translate(916 20)"><rect class="f-box" width="176" height="140" rx="18"/>
            <g class="f-ico" transform="translate(64 26)"><path d="M0 6a4 4 0 0 1 4-4h14l6 7h20a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z"/></g>
            <text class="f-t" x="88" y="100" text-anchor="middle">Thư mục Drive</text><text class="f-s" x="88" y="122" text-anchor="middle">tự chép khi xong</text></g>
          <path class="f-loop" d="M520 160c0 26 72 26 72 0" marker-end="url(#arr)"/>
          <text class="f-s" x="556" y="194" text-anchor="middle">tự xem 16 khung, tự sửa</text>
        </svg>
        <svg class="flow-v" viewBox="0 0 320 620" role="img" aria-label="Nội dung, chọn mẫu, AI viết cảnh, render MP4, thư mục Drive">
          <g class="f-line"><path d="M160 92V122" marker-end="url(#arr)"/><path d="M160 214V244" marker-end="url(#arr)"/><path d="M160 336V366" marker-end="url(#arr)"/><path d="M160 458V488" marker-end="url(#arr)"/></g>
          <g transform="translate(20 4)"><rect class="f-box" width="280" height="88" rx="16"/><g class="f-ico" transform="translate(24 20) scale(.85)"><path d="M4 0h28l10 10v34a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3z"/><path d="M10 18h22M10 26h22M10 34h14"/></g><text class="f-t" x="84" y="42">Nội dung</text><text class="f-s" x="84" y="64">kịch bản, số liệu</text></g>
          <g transform="translate(20 126)"><rect class="f-box" width="280" height="88" rx="16"/><g class="f-ico" transform="translate(22 20) scale(.85)"><rect width="14" height="24" rx="3"/><rect x="19" width="14" height="24" rx="3" class="f-accent"/><rect x="38" width="14" height="24" rx="3"/><rect y="28" width="14" height="24" rx="3"/><rect x="19" y="28" width="14" height="24" rx="3"/><rect x="38" y="28" width="14" height="24" rx="3"/></g><text class="f-t" x="84" y="42">Chọn mẫu</text><text class="f-s" x="84" y="64">phong cách, nhịp</text></g>
          <g transform="translate(20 248)"><rect class="f-box f-box-hot" width="280" height="88" rx="16"/><g class="f-ico f-ico-hot" transform="translate(20 24) scale(.8)"><path d="M16 0 2 20l14 20M44 0l14 20-14 20M36 -2 24 42"/></g><text class="f-t f-t-hot" x="84" y="42">AI viết cảnh</text><text class="f-s f-s-hot" x="84" y="64">HTML · SVG · WebGL</text></g>
          <g transform="translate(20 370)"><rect class="f-box" width="280" height="88" rx="16"/><g class="f-ico" transform="translate(30 18) scale(.9)"><rect width="36" height="56" rx="6"/><path d="M14 20v16l12-8z" class="f-fill"/></g><text class="f-t" x="84" y="42">Render MP4</text><text class="f-s" x="84" y="64">1080×1920, 30 fps</text></g>
          <g transform="translate(20 492)"><rect class="f-box" width="280" height="88" rx="16"/><g class="f-ico" transform="translate(22 26) scale(.85)"><path d="M0 6a4 4 0 0 1 4-4h14l6 7h20a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z"/></g><text class="f-t" x="84" y="42">Thư mục Drive</text><text class="f-s" x="84" y="64">tự chép khi xong</text></g>
          <text class="f-s" x="160" y="612" text-anchor="middle">AI tự xem 16 khung và tự sửa trước khi render</text>
        </svg>
        <figcaption id="flow-cap" class="sr">Sơ đồ luồng: nội dung, chọn mẫu, AI viết cảnh, render MP4, chép vào thư mục Drive.</figcaption>
      </figure>

      <ol class="steps">
        <li><span class="step-n">1</span><h3>Đưa nội dung</h3><p>Một đoạn kịch bản ngắn, vài con số. Bạn gõ vào giao diện, hoặc agent gửi qua MCP.</p></li>
        <li><span class="step-n">2</span><h3>Chọn mẫu</h3><p>Mẫu là bản hướng dẫn phong cách: bố cục, nhịp, màu, chữ. Không phải khuôn cứng.</p></li>
        <li><span class="step-n">3</span><h3>AI viết cảnh</h3><p>Một trang HTML mới, dùng SVG, Canvas, Three.js hoặc shader. AI tự xem lưới 16 khung rồi sửa.</p></li>
        <li><span class="step-n">4</span><h3>Render và giao</h3><p>Chụp từng khung, ra MP4 H.264. Đặt <code>OUTPUT_DIR</code> là thư mục Drive thì file tự vào đó.</p></li>
      </ol>

      <ul class="points">
        <li><strong>Tất định.</strong> Cảnh không dùng số ngẫu nhiên, không gọi mạng. Render lại ra đúng khung cũ.</li>
        <li><strong>Sửa được.</strong> Cảnh là code. Đổi một con số, render lại, xong.</li>
        <li><strong>Chạy trên máy bạn.</strong> Server chỉ mở ở 127.0.0.1.</li>
      </ul>
    </div>
  </section>

  <!-- AGENT -->
  <section class="sec" id="agent" aria-labelledby="agent-h">
    <div class="wrap">
      <div class="sec-head">
        <p class="eyebrow">Nối với AI agent</p>
        <h2 id="agent-h">Để agent của bạn<br>tự làm video.</h2>
        <p class="sec-lead">Một lõi, ba cửa: MCP, CLI, REST. Agent tìm mẫu, tạo job, tự viết cảnh hoặc để app tự sinh, rồi lấy MP4.</p>
      </div>

      <div class="tabs" data-tabs>
        <div class="tablist" role="tablist" aria-label="Cách nối">
          <button role="tab" id="t-cd" aria-controls="p-cd" aria-selected="true">Claude Desktop</button>
          <button role="tab" id="t-cc" aria-controls="p-cc" aria-selected="false" tabindex="-1">Claude Code</button>
          <button role="tab" id="t-cx" aria-controls="p-cx" aria-selected="false" tabindex="-1">Codex</button>
          <button role="tab" id="t-cli" aria-controls="p-cli" aria-selected="false" tabindex="-1">CLI</button>
          <button role="tab" id="t-api" aria-controls="p-api" aria-selected="false" tabindex="-1">REST</button>
        </div>

        <div role="tabpanel" id="p-cd" aria-labelledby="t-cd" class="panel">
          <p>Thêm vào <code>claude_desktop_config.json</code>, khởi động lại Claude Desktop:</p>
<pre><code>{
  "mcpServers": {
    "lumreels": {
      "command": "node",
      "args": ["/đường/dẫn/lumreels/mcp/server.mjs"]
    }
  }
}</code></pre>
        </div>
        <div role="tabpanel" id="p-cc" aria-labelledby="t-cc" class="panel" hidden>
          <p>Một lệnh:</p>
<pre><code>claude mcp add lumreels -- node /đường/dẫn/lumreels/mcp/server.mjs</code></pre>
        </div>
        <div role="tabpanel" id="p-cx" aria-labelledby="t-cx" class="panel" hidden>
          <p>Thêm vào <code>~/.codex/config.toml</code>:</p>
<pre><code>[mcp_servers.lumreels]
command = "node"
args = ["/đường/dẫn/lumreels/mcp/server.mjs"]</code></pre>
        </div>
        <div role="tabpanel" id="p-cli" aria-labelledby="t-cli" class="panel" hidden>
          <p>Cho người và cho agent chạy lệnh shell:</p>
<pre><code>node cli.mjs templates                      # mẫu nào sẵn sàng
node cli.mjs make --template 007 --content noi-dung.txt --mode auto
node cli.mjs make --template 007 --content noi-dung.txt   # manual: agent tự viết cảnh
node cli.mjs render &lt;jobId&gt;                 # preview.jpg + out.mp4
node cli.mjs make --template 017 --content nd.txt --at 2026-11-28T07:00   # hẹn giờ
node cli.mjs list</code></pre>
        </div>
        <div role="tabpanel" id="p-api" aria-labelledby="t-api" class="panel" hidden>
          <p>Bật <code>npm start</code>, API ở <code>http://127.0.0.1:4400</code>:</p>
<pre><code>curl -X POST http://127.0.0.1:4400/api/jobs \
  -H "Content-Type: application/json" \
  -d '{"templateId":"007","content":"...","durationS":8,"mode":"auto"}'

curl http://127.0.0.1:4400/api/jobs/&lt;jobId&gt;      # trạng thái, link mp4
GET  /api/templates   ·   POST /api/jobs/&lt;jobId&gt;/render</code></pre>
        </div>
      </div>

      <div class="agent-grid">
        <div class="ask">
          <p class="ask-label">Ví dụ câu bạn nói với Claude hoặc ChatGPT</p>
          <blockquote>"Dùng LumReels, tìm mẫu kiểu truyện tin nhắn. Làm video 8 giây với đoạn này: <i>Mẹ lần đầu nhắn tin hỏi con tháng này tiêu hết bao nhiêu</i>. Render xong gửi mình file."</blockquote>
          <p class="ask-foot">Agent sẽ gọi <code>list_templates</code> → <code>create_video</code> → <code>get_job</code>.</p>
        </div>
        <div class="tools">
          <p class="ask-label">8 công cụ MCP</p>
          <dl>
            <div><dt><code>list_templates</code></dt><dd>Tìm mẫu theo nhóm, từ khoá</dd></div>
            <div><dt><code>get_template</code></dt><dd>Đọc hướng dẫn phong cách của mẫu</dd></div>
            <div><dt><code>create_video</code></dt><dd>Tạo job: <code>auto</code> hoặc <code>agent</code>, hẹn giờ được</dd></div>
            <div><dt><code>submit_scene</code></dt><dd>Agent nộp cảnh HTML tự viết</dd></div>
            <div><dt><code>preview_job</code></dt><dd>Trả ảnh lưới 16 khung để tự soát</dd></div>
            <div><dt><code>render_job</code></dt><dd>Render MP4, chép ra thư mục đích</dd></div>
            <div><dt><code>get_job</code></dt><dd>Trạng thái, lỗi, đường dẫn file</dd></div>
            <div><dt><code>list_jobs</code></dt><dd>Các job gần nhất</dd></div>
          </dl>
        </div>
      </div>
    </div>
  </section>

  <!-- CÀI ĐẶT -->
  <section class="sec sec-alt" id="cai" aria-labelledby="cai-h">
    <div class="wrap install">
      <div class="sec-head">
        <p class="eyebrow">Cài đặt nhanh</p>
        <h2 id="cai-h">Ba lệnh là chạy.</h2>
        <p class="sec-lead">Cần Node 22 trở lên, ffmpeg và Google Chrome. Đã chạy trên Windows 11.</p>
      </div>
      <div>
<pre class="pre-lg"><code>git clone {{GITHUB}}
cd lumreels
npm install
npm start          # mở http://127.0.0.1:4400</code></pre>
        <ul class="env">
          <li><code>ANTHROPIC_API_KEY</code> trong <code>.env</code>: app tự sinh cảnh. Không có thì dùng Claude Code hoặc để agent tự viết.</li>
          <li><code>OUTPUT_DIR</code>: thư mục nhận MP4, ví dụ thư mục Google Drive trên máy.</li>
        </ul>
        <div class="cta">
          <a class="btn btn-primary" href="{{GITHUB}}" rel="noopener">Xem mã nguồn trên GitHub</a>
          <a class="btn btn-ghost" href="#mau">Xem lại các mẫu</a>
        </div>
      </div>
    </div>
  </section>
</main>

<footer class="foot">
  <div class="wrap foot-in">
    <p><strong>LumReels</strong> · © 2026 Lumtek · Giấy phép MIT</p>
    <p class="foot-sub">Font Be Vietnam Pro (<a href="fonts/OFL-be-vietnam-pro.txt">OFL</a>). Cập nhật {{BUILD_DATE}}.</p>
  </div>
</footer>

<dialog class="sheet" id="sheet" aria-labelledby="sheet-title">
  <div class="sheet-in">
    <div class="sheet-media"><video id="sheet-video" muted loop playsinline controls preload="none" width="720" height="1280"></video></div>
    <div class="sheet-body">
      <p class="card-id" id="sheet-id"></p>
      <h3 id="sheet-title"></h3>
      <p class="sheet-tags" id="sheet-tags"></p>
      <p class="ask-label">Nội dung đưa vào</p>
      <blockquote id="sheet-script"></blockquote>
      <p class="sheet-note">Chỉ chừng đó chữ. Phần còn lại AI tự dựng theo mẫu.</p>
    </div>
    <button class="sheet-close" type="button" id="sheet-close" aria-label="Đóng"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6 6 18"/></svg></button>
  </div>
</dialog>

<script type="application/json" id="data">{{DATA}}</script>
<script src="app.js" defer></script>
</body>
</html>