umer-wasim commited on
Commit
4e82195
·
verified ·
1 Parent(s): 14111d2

0.1.1: marketing page (warm light), detected-system install in hero, app source 0.1.1

Browse files
.gitattributes CHANGED
@@ -34,3 +34,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  app/build/icon.png filter=lfs diff=lfs merge=lfs -text
 
 
 
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  app/build/icon.png filter=lfs diff=lfs merge=lfs -text
37
+ site/assets/hero-juice.mp4 filter=lfs diff=lfs merge=lfs -text
38
+ site/assets/hero-juice.png filter=lfs diff=lfs merge=lfs -text
NOTICE CHANGED
@@ -10,6 +10,9 @@ stable-diffusion.cpp and ggml (sd-cli engine, bundled)
10
  mp4-muxer and webm-muxer (bundled in the app's renderer)
11
  https://github.com/Vanilagy/mp4-muxer, https://github.com/Vanilagy/webm-muxer — MIT License, Copyright (c) Vanilagy
12
 
 
 
 
13
  Wan2.1 T2V 1.3B and Wan2.2 TI2V 5B (downloaded on first run)
14
  https://huggingface.co/Wan-AI — Apache License 2.0, Copyright Alibaba / Wan team
15
  GGUF conversions: samuelchristlie/Wan2.1-T2V-1.3B-GGUF, QuantStack/Wan2.2-TI2V-5B-GGUF (Apache-2.0)
 
10
  mp4-muxer and webm-muxer (bundled in the app's renderer)
11
  https://github.com/Vanilagy/mp4-muxer, https://github.com/Vanilagy/webm-muxer — MIT License, Copyright (c) Vanilagy
12
 
13
+ Space Grotesk font (bundled in the app, headings)
14
+ https://github.com/floriankarsten/space-grotesk — SIL Open Font License 1.1 (app/renderer/fonts/OFL.txt)
15
+
16
  Wan2.1 T2V 1.3B and Wan2.2 TI2V 5B (downloaded on first run)
17
  https://huggingface.co/Wan-AI — Apache License 2.0, Copyright Alibaba / Wan team
18
  GGUF conversions: samuelchristlie/Wan2.1-T2V-1.3B-GGUF, QuantStack/Wan2.2-TI2V-5B-GGUF (Apache-2.0)
README.md CHANGED
@@ -19,6 +19,8 @@ Ora is a desktop app that makes short videos from text prompts **on your own com
19
  | Wan2.2 TI2V 5B (Quality) | 1280×704, 24 fps, 2–5 s (480p on CPU-only computers) | 3.8 GB (Q5_K_M GGUF) + 1.4 GB VAE |
20
  | umT5-XXL prompt reader (shared) | — | 4.7 GB (Q6_K GGUF) |
21
 
 
 
22
  Nothing is uploaded and no account is needed. The app downloads the models once (pinned revisions, SHA-256 checked) and then works offline.
23
 
24
  ## Install
 
19
  | Wan2.2 TI2V 5B (Quality) | 1280×704, 24 fps, 2–5 s (480p on CPU-only computers) | 3.8 GB (Q5_K_M GGUF) + 1.4 GB VAE |
20
  | umT5-XXL prompt reader (shared) | — | 4.7 GB (Q6_K GGUF) |
21
 
22
+ In the app you choose where it runs (Automatic, Graphics or Processor only), see the expected time for your computer before you start, stop a run at any time, and clear the prompt history.
23
+
24
  Nothing is uploaded and no account is needed. The app downloads the models once (pinned revisions, SHA-256 checked) and then works offline.
25
 
26
  ## Install
app/core.cjs CHANGED
@@ -14,25 +14,40 @@ function frameCount(fps, seconds) {
14
  // GPU vendor ids from Chromium's app.getGPUInfo('complete').
15
  const VENDOR = { 0x10de: 'NVIDIA', 0x1002: 'AMD', 0x8086: 'Intel', 0x106b: 'Apple', 0x5143: 'Qualcomm' };
16
 
 
 
 
 
 
 
 
 
 
17
  function describeGpus(gpuInfo) {
18
  const devices = (gpuInfo && gpuInfo.gpuDevice) || [];
19
  return devices.map(d => ({
20
  vendor: VENDOR[d.vendorId] || `0x${(d.vendorId || 0).toString(16)}`,
21
- name: d.deviceString || d.driverVendor || '',
22
  active: !!d.active,
23
  }));
24
  }
25
 
26
- // Which bundled engine to run. Apple Silicon uses Metal. Intel Macs run on the CPU: Metal on Intel graphics is
27
- // slow and has crashed the window server in our tests. Windows and Linux use Vulkan only with an NVIDIA or AMD GPU;
28
- // integrated Intel graphics share memory with the CPU and gain little.
29
- function pickEngine(platform, arch, gpus, override) {
 
 
30
  const os = platform === 'darwin' ? 'mac' : platform === 'win32' ? 'win' : 'linux';
31
- if (os === 'mac') return { id: arch === 'arm64' ? 'mac-arm64' : 'mac-x64', gpu: arch === 'arm64' };
32
- if (override === 'cpu') return { id: `${os}-cpu`, gpu: false };
33
- if (override === 'gpu') return { id: `${os}-vulkan`, gpu: true };
 
 
 
 
34
  const strong = gpus.some(g => g.vendor === 'NVIDIA' || g.vendor === 'AMD');
35
- return strong ? { id: `${os}-vulkan`, gpu: true } : { id: `${os}-cpu`, gpu: false };
36
  }
37
 
38
  function sizeFor(model, shape, gpu, quality) {
@@ -79,6 +94,7 @@ function buildArgs(manifest, job, paths, engine) {
79
  '-o', paths.outPattern,
80
  '-v',
81
  ];
 
82
  // flash attention and weight placement (GPU, RAM) are automatic in sd-cli (--flash-attn auto, --auto-fit on)
83
  if (job.threads) args.push('-t', String(job.threads));
84
  return { args, decoder, width: w, height: h, frames, fps: model.fps, steps, seconds: preview ? model.preview.seconds : job.seconds };
@@ -145,4 +161,4 @@ function validateProject(p) {
145
  return errors;
146
  }
147
 
148
- module.exports = { decoderFor, phaseChange, MAX_SHOTS, folderName, validateProject, LENGTHS, SHAPES, QUALITIES, frameCount, describeGpus, pickEngine, sizeFor, buildArgs, parseProgress, parseStage, validateJob, slug };
 
14
  // GPU vendor ids from Chromium's app.getGPUInfo('complete').
15
  const VENDOR = { 0x10de: 'NVIDIA', 0x1002: 'AMD', 0x8086: 'Intel', 0x106b: 'Apple', 0x5143: 'Qualcomm' };
16
 
17
+ // Chromium reports e.g. "ANGLE (Intel, ANGLE Metal Renderer: Intel(R) Iris(TM) Plus Graphics, Version 26.7.1 (…))";
18
+ // keep the readable part: "Intel Iris Plus Graphics".
19
+ function cleanGpuName(raw) {
20
+ let n = String(raw);
21
+ const m = /Renderer:\s*([^,]+)/.exec(n) || /^ANGLE \([^,]+,\s*([^,(]+)/.exec(n);
22
+ if (m) n = m[1];
23
+ return n.replace(/\((R|TM)\)/gi, '').replace(/\s+/g, ' ').trim();
24
+ }
25
+
26
  function describeGpus(gpuInfo) {
27
  const devices = (gpuInfo && gpuInfo.gpuDevice) || [];
28
  return devices.map(d => ({
29
  vendor: VENDOR[d.vendorId] || `0x${(d.vendorId || 0).toString(16)}`,
30
+ name: cleanGpuName(d.deviceString || d.driverVendor || ''),
31
  active: !!d.active,
32
  }));
33
  }
34
 
35
+ // Which bundled engine to run, from the user's "Run on" choice (auto | gpu | cpu).
36
+ // Apple Silicon: Metal, or the same engine kept on the CPU with --backend cpu. Intel Macs: CPU only (Metal on Intel
37
+ // graphics is slow and crashed the window server in our tests, so that build has no Metal). Windows and Linux: the
38
+ // Vulkan build for a graphics card, the CPU build otherwise; "auto" picks Vulkan only for an NVIDIA or AMD GPU,
39
+ // since integrated Intel graphics share memory with the CPU and gain little.
40
+ function pickEngine(platform, arch, gpus, choice) {
41
  const os = platform === 'darwin' ? 'mac' : platform === 'win32' ? 'win' : 'linux';
42
+ const want = choice === 'gpu' || choice === 'cpu' ? choice : 'auto';
43
+ if (os === 'mac' && arch === 'arm64') {
44
+ return want === 'cpu' ? { id: 'mac-arm64', gpu: false, args: ['--backend', 'cpu'], choice: want } : { id: 'mac-arm64', gpu: true, args: [], choice: want };
45
+ }
46
+ if (os === 'mac') return { id: 'mac-x64', gpu: false, args: [], choice: want, gpuUnavailable: 'Intel Macs run Ora on the processor: their graphics are too slow for this and crashed the display in testing.' };
47
+ if (want === 'cpu') return { id: `${os}-cpu`, gpu: false, args: [], choice: want };
48
+ if (want === 'gpu') return { id: `${os}-vulkan`, gpu: true, args: [], choice: want };
49
  const strong = gpus.some(g => g.vendor === 'NVIDIA' || g.vendor === 'AMD');
50
+ return strong ? { id: `${os}-vulkan`, gpu: true, args: [], choice: want } : { id: `${os}-cpu`, gpu: false, args: [], choice: want };
51
  }
52
 
53
  function sizeFor(model, shape, gpu, quality) {
 
94
  '-o', paths.outPattern,
95
  '-v',
96
  ];
97
+ if (engine.args && engine.args.length) args.push(...engine.args);
98
  // flash attention and weight placement (GPU, RAM) are automatic in sd-cli (--flash-attn auto, --auto-fit on)
99
  if (job.threads) args.push('-t', String(job.threads));
100
  return { args, decoder, width: w, height: h, frames, fps: model.fps, steps, seconds: preview ? model.preview.seconds : job.seconds };
 
161
  return errors;
162
  }
163
 
164
+ module.exports = { cleanGpuName, decoderFor, phaseChange, MAX_SHOTS, folderName, validateProject, LENGTHS, SHAPES, QUALITIES, frameCount, describeGpus, pickEngine, sizeFor, buildArgs, parseProgress, parseStage, validateJob, slug };
app/main.cjs CHANGED
@@ -14,12 +14,15 @@ const { spawn } = require('node:child_process');
14
  const { pathToFileURL } = require('node:url');
15
  const core = require('./core.cjs');
16
 
 
 
17
  const manifest = JSON.parse(fs.readFileSync(path.join(__dirname, 'models.json'), 'utf8'));
18
  const DATA = app.getPath('userData');
19
  const MODELS = path.join(DATA, 'models');
20
  const VIDEOS = path.join(DATA, 'videos');
21
  const SETTINGS = path.join(DATA, 'settings.json');
22
- const SAVE_DIR = path.join(app.getPath('videos'), 'Ora');
 
23
 
24
  let win = null;
25
  let download = null; // { abort() } while models download
@@ -302,8 +305,8 @@ async function saveEncoded(id, bytes, ext) {
302
 
303
  function createWindow() {
304
  win = new BrowserWindow({
305
- width: 1180, height: 820, minWidth: 900, minHeight: 640, title: 'Ora', backgroundColor: '#0d0d10',
306
- webPreferences: { preload: path.join(__dirname, 'preload.cjs'), contextIsolation: true, nodeIntegration: false, sandbox: true },
307
  });
308
  win.removeMenu();
309
  win.loadFile(path.join(__dirname, 'renderer', 'index.html'));
@@ -318,12 +321,17 @@ function createWindow() {
318
  fs.writeFileSync(path.join(process.env.ORA_SMOKE, 'smoke.json'), JSON.stringify(out, null, 2));
319
  await new Promise(r => setTimeout(r, Number(process.env.ORA_SMOKE_WAIT || 800)));
320
  }
 
 
321
  const img = await win.webContents.capturePage();
322
  fs.writeFileSync(path.join(process.env.ORA_SMOKE, 'screen.png'), img.toPNG());
323
  // ORA_SMOKE_SHOTS=ms,ms,…: more screenshots at these times after the first one, then quit
324
  const times = (process.env.ORA_SMOKE_SHOTS || '').split(',').filter(Boolean).map(Number);
325
  for (const [i, t] of times.entries()) {
326
  await new Promise(r => setTimeout(r, t - (times[i - 1] || 0)));
 
 
 
327
  fs.writeFileSync(path.join(process.env.ORA_SMOKE, `screen-${i + 1}.png`), (await win.webContents.capturePage()).toPNG());
328
  }
329
  if (!process.env.ORA_SMOKE_STAY) app.quit();
@@ -371,6 +379,13 @@ app.whenReady().then(() => {
371
  return true;
372
  });
373
  ipcMain.handle('video:delete', async (_e, id) => { await fsp.rm(insideVideos(id), { recursive: true, force: true }); return true; });
 
 
 
 
 
 
 
374
  ipcMain.handle('video:reveal', (_e, p) => {
375
  const real = path.resolve(String(p));
376
  if (real.startsWith(path.resolve(SAVE_DIR) + path.sep) && fs.existsSync(real)) {
@@ -389,7 +404,7 @@ app.whenReady().then(() => {
389
  });
390
  ipcMain.handle('settings:set', (_e, patch) => {
391
  const allowed = {};
392
- if ('engine' in patch && ['auto', 'cpu', 'gpu'].includes(patch.engine)) allowed.engine = patch.engine === 'auto' ? undefined : patch.engine;
393
  return writeSettings(allowed);
394
  });
395
  ipcMain.handle('open:models', () => shell.openPath(MODELS));
 
14
  const { pathToFileURL } = require('node:url');
15
  const core = require('./core.cjs');
16
 
17
+ // ORA_USER_DATA (development only): a separate app folder, so a test copy can run beside an installed Ora
18
+ if (!app.isPackaged && process.env.ORA_USER_DATA) app.setPath('userData', process.env.ORA_USER_DATA);
19
  const manifest = JSON.parse(fs.readFileSync(path.join(__dirname, 'models.json'), 'utf8'));
20
  const DATA = app.getPath('userData');
21
  const MODELS = path.join(DATA, 'models');
22
  const VIDEOS = path.join(DATA, 'videos');
23
  const SETTINGS = path.join(DATA, 'settings.json');
24
+ // ORA_SAVE_DIR (development only): where test runs save their MP4s instead of the user's Videos folder
25
+ const SAVE_DIR = (!app.isPackaged && process.env.ORA_SAVE_DIR) || path.join(app.getPath('videos'), 'Ora');
26
 
27
  let win = null;
28
  let download = null; // { abort() } while models download
 
305
 
306
  function createWindow() {
307
  win = new BrowserWindow({
308
+ width: 1180, height: 820, minWidth: 900, minHeight: 640, title: 'Ora', backgroundColor: '#fbf7f2',
309
+ webPreferences: { preload: path.join(__dirname, 'preload.cjs'), contextIsolation: true, nodeIntegration: false, sandbox: true, backgroundThrottling: !process.env.ORA_SMOKE },
310
  });
311
  win.removeMenu();
312
  win.loadFile(path.join(__dirname, 'renderer', 'index.html'));
 
321
  fs.writeFileSync(path.join(process.env.ORA_SMOKE, 'smoke.json'), JSON.stringify(out, null, 2));
322
  await new Promise(r => setTimeout(r, Number(process.env.ORA_SMOKE_WAIT || 800)));
323
  }
324
+ win.webContents.invalidate();
325
+ await new Promise(r => setTimeout(r, 300));
326
  const img = await win.webContents.capturePage();
327
  fs.writeFileSync(path.join(process.env.ORA_SMOKE, 'screen.png'), img.toPNG());
328
  // ORA_SMOKE_SHOTS=ms,ms,…: more screenshots at these times after the first one, then quit
329
  const times = (process.env.ORA_SMOKE_SHOTS || '').split(',').filter(Boolean).map(Number);
330
  for (const [i, t] of times.entries()) {
331
  await new Promise(r => setTimeout(r, t - (times[i - 1] || 0)));
332
+ if (process.env.ORA_SMOKE_STEP_JS) await win.webContents.executeJavaScript(process.env.ORA_SMOKE_STEP_JS.split('||')[i] || '0').catch(() => { });
333
+ win.webContents.invalidate();
334
+ await new Promise(r => setTimeout(r, 400));
335
  fs.writeFileSync(path.join(process.env.ORA_SMOKE, `screen-${i + 1}.png`), (await win.webContents.capturePage()).toPNG());
336
  }
337
  if (!process.env.ORA_SMOKE_STAY) app.quit();
 
379
  return true;
380
  });
381
  ipcMain.handle('video:delete', async (_e, id) => { await fsp.rm(insideVideos(id), { recursive: true, force: true }); return true; });
382
+ // Clear history: Ora's own records of past videos (prompts, posters, its copy of each MP4). The MP4s saved in
383
+ // Movies/Ora or Videos/Ora are the user's files and are not touched.
384
+ ipcMain.handle('history:clear', async () => {
385
+ if (job) throw new Error('Stop the video that is being made first.');
386
+ await fsp.rm(VIDEOS, { recursive: true, force: true });
387
+ return true;
388
+ });
389
  ipcMain.handle('video:reveal', (_e, p) => {
390
  const real = path.resolve(String(p));
391
  if (real.startsWith(path.resolve(SAVE_DIR) + path.sep) && fs.existsSync(real)) {
 
404
  });
405
  ipcMain.handle('settings:set', (_e, patch) => {
406
  const allowed = {};
407
+ if ('engine' in patch && ['auto', 'cpu', 'gpu'].includes(patch.engine)) allowed.engine = patch.engine;
408
  return writeSettings(allowed);
409
  });
410
  ipcMain.handle('open:models', () => shell.openPath(MODELS));
app/package.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "name": "devseis-ora",
3
  "productName": "Ora",
4
- "version": "0.1.0",
5
  "description": "Make videos from a prompt on your own computer with Wan2.1 1.3B and Wan2.2 5B.",
6
  "author": {
7
  "name": "Devseis",
 
1
  {
2
  "name": "devseis-ora",
3
  "productName": "Ora",
4
+ "version": "0.1.1",
5
  "description": "Make videos from a prompt on your own computer with Wan2.1 1.3B and Wan2.2 5B.",
6
  "author": {
7
  "name": "Devseis",
app/preload.cjs CHANGED
@@ -18,6 +18,7 @@ contextBridge.exposeInMainWorld('ora', {
18
  save: (id, bytes, ext) => ipcRenderer.invoke('video:save', id, bytes, ext),
19
  fail: (id, message) => ipcRenderer.invoke('video:fail', id, message),
20
  remove: id => ipcRenderer.invoke('video:delete', id),
 
21
  reveal: p => ipcRenderer.invoke('video:reveal', p),
22
  saveAs: id => ipcRenderer.invoke('video:saveAs', id),
23
  setSettings: patch => ipcRenderer.invoke('settings:set', patch),
 
18
  save: (id, bytes, ext) => ipcRenderer.invoke('video:save', id, bytes, ext),
19
  fail: (id, message) => ipcRenderer.invoke('video:fail', id, message),
20
  remove: id => ipcRenderer.invoke('video:delete', id),
21
+ clearHistory: () => ipcRenderer.invoke('history:clear'),
22
  reveal: p => ipcRenderer.invoke('video:reveal', p),
23
  saveAs: id => ipcRenderer.invoke('video:saveAs', id),
24
  setSettings: patch => ipcRenderer.invoke('settings:set', patch),
app/renderer/app.js CHANGED
@@ -81,11 +81,11 @@ function workFor(f) {
81
  const m = S.manifest.models[jobModel(f)];
82
  if (isPreview(f)) {
83
  const [w, h] = m.preview.sizes[f.shape];
84
- return { w, h, frames: frames(m.fps, m.preview.seconds), steps: m.preview.steps, fps: m.fps, preview: true };
85
  }
86
  const table = (!S.hardware.engine.gpu && m.lowSizes) ? m.lowSizes : m.sizes;
87
  const [w, h] = table[f.shape];
88
- return { w, h, frames: frames(m.fps, f.seconds), steps: m.steps[f.quality], fps: m.fps };
89
  }
90
  // seconds per step measured on this computer, per model and engine, scaled by pixels x frames
91
  function speedKey(f) {
@@ -93,19 +93,59 @@ function speedKey(f) {
93
  const tae = q === 'preview' || (q === 'draft' && !S.hardware.engine.gpu);
94
  return `ora.speed.${S.hardware.engine.id}.${jobModel(f)}.${tae ? 'tae' : 'vae'}`;
95
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  function estimate() {
97
  if (!S) return;
98
  const w = workFor(form);
 
99
  const label = `${w.preview ? 'Preview: 1 s, ' : ''}${w.w}×${w.h}, ${w.frames} frames at ${w.fps} fps, ${w.steps} steps`;
100
- const rec = store(speedKey(form));
101
- if (rec && rec.secPerStep) {
102
- const scale = (w.w * w.h * w.frames) / rec.work;
103
- const total = (rec.prepSec || 0) + rec.secPerStep * scale * w.steps + (rec.decodeSec != null ? rec.decodeSec * scale : (rec.overhead || 0) * scale);
104
- const n = shots.length;
105
- $('estimate').textContent = `${label}. About ${MIN(total)} per shot${n > 1 ? `, ${MIN(total * n)} for all ${n}` : ''} on this computer.`;
106
- } else {
107
- $('estimate').textContent = `${label}. ${S.hardware.engine.gpu ? 'The first video shows how fast this computer is.' : 'Running on the processor only: expect a long wait (often 30 min or more). The first video measures the real time.'}`;
108
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  }
110
  function remember(meta, t) {
111
  // seconds measured on this computer: reading the prompt, one frame step, decoding (for this much work)
@@ -181,6 +221,7 @@ function showStudio() {
181
  seg($('lengthSeg'), LENGTHS.map(([v, l]) => [v, l]), 'seconds');
182
  seg($('qualitySeg'), QUALITY, 'quality');
183
  if (!modelReady(jobModel(form))) form.model = modelReady('fast') ? 'fast' : 'quality';
 
184
  sync();
185
  renderGrid();
186
  }
@@ -270,6 +311,7 @@ function renderGrid() {
270
  const g = $('grid');
271
  g.innerHTML = '';
272
  $('gridEmpty').hidden = S.videos.length > 0;
 
273
  for (const meta of S.videos) {
274
  const c = document.createElement('div');
275
  c.className = 'card'; c.tabIndex = 0; c.setAttribute('role', 'button');
@@ -295,9 +337,20 @@ function renderGrid() {
295
  function formError(msg) { $('formError').hidden = !msg; $('formError').textContent = msg || ''; if (msg) $('formError').scrollIntoView({ block: 'center', behavior: 'smooth' }); }
296
 
297
  function setRunning(on) {
298
- $('goBtn').disabled = on;
299
  const n = shots.length;
300
- $('goBtn').textContent = on ? 'Making video…' : n > 1 ? `Make ${n} videos` : 'Make video';
 
 
 
 
 
 
 
 
 
 
 
 
301
  }
302
 
303
  async function submit(e) {
@@ -309,7 +362,8 @@ async function submit(e) {
309
  const seedText = $('seed').value.trim();
310
  if (seedText && !/^\d{1,10}$/.test(seedText)) return formError('The seed must be a whole number.');
311
  const n = shots.length;
312
- if (!S.hardware.engine.gpu && form.model === 'quality' && !confirm(`The Quality model on the processor only can take hours for one video${n > 1 ? `, and you asked for ${n}` : ''}. Start anyway?`)) return;
 
313
  const name = $('projectName').value.trim() || shots[0].trim().split(/\s+/).slice(0, 6).join(' ');
314
  const folder = await window.ora.createProject(name);
315
  const base = { ...form, model: jobModel(form), quality: jobQuality(form), negative: $('negative').value.trim() || undefined, seed: seedText ? Math.min(+seedText, 2 ** 31 - 1) : undefined };
@@ -589,8 +643,7 @@ function renderDevice() {
589
  if (h.ram < 15 * 2 ** 30) notes.push('Ora needs about 16 GB of memory. With less, videos may fail or be very slow.');
590
  if (h.platform === 'darwin' && h.arch === 'x64') notes.push('On Intel Macs Ora uses the processor: the built-in graphics are slower and unstable for this work.');
591
  $('deviceNote').textContent = notes.join(' ');
592
- $('engineField').hidden = h.platform === 'darwin';
593
- $('engineSel').value = S.settings.engine || 'auto';
594
  }
595
 
596
  // --- start -----------------------------------------------------------------------------------------------------
@@ -645,13 +698,53 @@ $('addShot').addEventListener('click', () => {
645
  });
646
  $('scene').addEventListener('input', saveDraft);
647
  $('projectName').addEventListener('input', saveDraft);
648
- $('cancelBtn').addEventListener('click', () => {
649
- const rest = queue && queue.jobs.length - queue.index - 1;
650
- if (rest > 0 && !confirm(`Stop this shot and the ${rest} after it? Finished shots stay saved.`)) return;
651
- if (queue) queue.cancelled = true;
652
- $('runStage').textContent = 'Stopping…';
653
- window.ora.cancel();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
654
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
655
  $('revealBtn').addEventListener('click', () => current && window.ora.reveal(current.savedTo));
656
  $('saveAsBtn').addEventListener('click', () => current && window.ora.saveAs(current.id));
657
  $('reuseBtn').addEventListener('click', () => {
@@ -667,10 +760,6 @@ $('openSaveDir').addEventListener('click', () => window.ora.openSaveDir());
667
  $('deviceChip').addEventListener('click', () => $('deviceDlg').showModal());
668
  $('closeDevice').addEventListener('click', () => $('deviceDlg').close());
669
  $('openModels').addEventListener('click', () => window.ora.openModels());
670
- $('engineSel').addEventListener('change', async () => {
671
- S.settings = await window.ora.setSettings({ engine: $('engineSel').value });
672
- S = { ...S, ...(await window.ora.state()) };
673
- renderDevice(); estimate();
674
- });
675
 
676
  init();
 
81
  const m = S.manifest.models[jobModel(f)];
82
  if (isPreview(f)) {
83
  const [w, h] = m.preview.sizes[f.shape];
84
+ return { w, h, frames: frames(m.fps, m.preview.seconds), steps: m.preview.steps, fps: m.fps, preview: true, model: jobModel(f), tae: true };
85
  }
86
  const table = (!S.hardware.engine.gpu && m.lowSizes) ? m.lowSizes : m.sizes;
87
  const [w, h] = table[f.shape];
88
+ return { w, h, frames: frames(m.fps, f.seconds), steps: m.steps[f.quality], fps: m.fps, model: jobModel(f), tae: f.quality === 'draft' && !S.hardware.engine.gpu };
89
  }
90
  // seconds per step measured on this computer, per model and engine, scaled by pixels x frames
91
  function speedKey(f) {
 
93
  const tae = q === 'preview' || (q === 'draft' && !S.hardware.engine.gpu);
94
  return `ora.speed.${S.hardware.engine.id}.${jobModel(f)}.${tae ? 'tae' : 'vae'}`;
95
  }
96
+ // Rough time on a processor before this computer has a measurement of its own, from runs on a 4-core Intel i7
97
+ // (8 threads): 1.3B at 512x288x17 frames = 158 s per step, of which ~24% is attention (grows with tokens squared).
98
+ // The 5B model has ~3.8x the weights and 2x the attention width but packs 2x2 more pixels per token.
99
+ function roughCpu(w) {
100
+ const isQ = w.model === 'quality';
101
+ const lat = (w.frames - 1) / 4 + 1;
102
+ const tokens = (w.w / (isQ ? 32 : 16)) * (w.h / (isQ ? 32 : 16)) * lat;
103
+ const x = tokens / 2880;
104
+ const cores = Math.max(2, Math.min(32, S.hardware.cores || 8));
105
+ const perStep = 158 * (0.76 * x * (isQ ? 3.8 : 1) + 0.24 * x * x * (isQ ? 2 : 1)) * (8 / cores);
106
+ const px = w.w * w.h * w.frames;
107
+ const decode = w.tae ? px * 1.1e-5 : px * 4.3e-4 * (isQ ? 1.5 : 1);
108
+ return 70 + perStep * w.steps + decode;
109
+ }
110
+ // Seconds for one shot on this computer, and how it was worked out: measured here, rough, or unknown (GPU, no run yet).
111
+ function shotSeconds(f) {
112
+ const w = workFor(f);
113
+ const rec = store(speedKey(f));
114
+ if (rec && rec.secPerStep) {
115
+ const scale = (w.w * w.h * w.frames) / rec.work;
116
+ // attention grows faster than the pixel count: scale steps a little more than linearly when going bigger
117
+ const stepScale = scale > 1 ? scale * (0.76 + 0.24 * scale) : scale;
118
+ return { sec: (rec.prepSec || 0) + rec.secPerStep * stepScale * w.steps + (rec.decodeSec != null ? rec.decodeSec * scale : (rec.overhead || 0) * scale), basis: 'measured' };
119
+ }
120
+ if (!S.hardware.engine.gpu) return { sec: roughCpu(w), basis: 'rough' };
121
+ return { sec: null, basis: 'unknown' };
122
+ }
123
  function estimate() {
124
  if (!S) return;
125
  const w = workFor(form);
126
+ const n = shots.length;
127
  const label = `${w.preview ? 'Preview: 1 s, ' : ''}${w.w}×${w.h}, ${w.frames} frames at ${w.fps} fps, ${w.steps} steps`;
128
+ const { sec, basis } = shotSeconds(form);
129
+ const box = $('estimateBox');
130
+ if (sec == null) {
131
+ $('estTime').textContent = 'Time: measured on the first video';
132
+ $('estimate').textContent = `${label}. On a graphics card a shot usually takes minutes; Ora times the first one and estimates from then on.`;
133
+ box.classList.remove('warn');
134
+ return;
 
135
  }
136
+ const total = sec * n;
137
+ $('estTime').textContent = `About ${MIN(sec)}${n > 1 ? ` per shot · ${MIN(total)} for ${n}` : ''}`;
138
+ const how = basis === 'measured' ? 'Based on your last video with this model on this computer.' : 'Rough estimate for this processor; the first video measures the real time.';
139
+ const slow = total > 2 * 3600;
140
+ const tips = [];
141
+ if (!isPreview(form)) tips.push('Preview');
142
+ if (!isPreview(form) && form.seconds > 2) tips.push('a shorter length');
143
+ if (!isPreview(form) && form.quality !== 'draft') tips.push('Draft');
144
+ if (form.shape === 'square' && !isPreview(form)) tips.push('16:9 or 9:16 (fewer pixels than 1:1)');
145
+ if (!isPreview(form) && S.hardware.engine.gpuUnavailable == null && !S.hardware.engine.gpu) tips.push('Graphics under Run on');
146
+ const tip = slow ? ` This is a long run${tips.length ? `: try ${tips.join(', ')} first` : ''}.` : '';
147
+ $('estimate').textContent = `${label}. ${how}${tip}`;
148
+ box.classList.toggle('warn', slow);
149
  }
150
  function remember(meta, t) {
151
  // seconds measured on this computer: reading the prompt, one frame step, decoding (for this much work)
 
221
  seg($('lengthSeg'), LENGTHS.map(([v, l]) => [v, l]), 'seconds');
222
  seg($('qualitySeg'), QUALITY, 'quality');
223
  if (!modelReady(jobModel(form))) form.model = modelReady('fast') ? 'fast' : 'quality';
224
+ renderRunOn();
225
  sync();
226
  renderGrid();
227
  }
 
311
  const g = $('grid');
312
  g.innerHTML = '';
313
  $('gridEmpty').hidden = S.videos.length > 0;
314
+ $('clearHistoryBtn').hidden = S.videos.length === 0;
315
  for (const meta of S.videos) {
316
  const c = document.createElement('div');
317
  c.className = 'card'; c.tabIndex = 0; c.setAttribute('role', 'button');
 
337
  function formError(msg) { $('formError').hidden = !msg; $('formError').textContent = msg || ''; if (msg) $('formError').scrollIntoView({ block: 'center', behavior: 'smooth' }); }
338
 
339
  function setRunning(on) {
 
340
  const n = shots.length;
341
+ $('goBtn').hidden = on;
342
+ $('stopBtn').hidden = !on;
343
+ $('goBtn').textContent = n > 1 ? `Make ${n} videos` : 'Make video';
344
+ $('clearHistoryBtn').disabled = on;
345
+ $('clearPromptsBtn').disabled = on;
346
+ }
347
+ function stopRun() {
348
+ if (!queue) return;
349
+ const rest = queue.jobs.length - queue.index - 1;
350
+ if (!confirm(rest > 0 ? `Stop this shot and the ${rest} after it? Finished shots stay saved.` : 'Stop making this video?')) return;
351
+ queue.cancelled = true;
352
+ $('runStage').textContent = 'Stopping…';
353
+ window.ora.cancel();
354
  }
355
 
356
  async function submit(e) {
 
362
  const seedText = $('seed').value.trim();
363
  if (seedText && !/^\d{1,10}$/.test(seedText)) return formError('The seed must be a whole number.');
364
  const n = shots.length;
365
+ const est = shotSeconds(form);
366
+ if (est.sec != null && est.sec * n > 2 * 3600 && !confirm(`This will take about ${MIN(est.sec * n)} on this computer${n > 1 ? ` (${n} shots)` : ''}. You can stop it at any time. Start anyway?`)) return;
367
  const name = $('projectName').value.trim() || shots[0].trim().split(/\s+/).slice(0, 6).join(' ');
368
  const folder = await window.ora.createProject(name);
369
  const base = { ...form, model: jobModel(form), quality: jobQuality(form), negative: $('negative').value.trim() || undefined, seed: seedText ? Math.min(+seedText, 2 ** 31 - 1) : undefined };
 
643
  if (h.ram < 15 * 2 ** 30) notes.push('Ora needs about 16 GB of memory. With less, videos may fail or be very slow.');
644
  if (h.platform === 'darwin' && h.arch === 'x64') notes.push('On Intel Macs Ora uses the processor: the built-in graphics are slower and unstable for this work.');
645
  $('deviceNote').textContent = notes.join(' ');
646
+
 
647
  }
648
 
649
  // --- start -----------------------------------------------------------------------------------------------------
 
698
  });
699
  $('scene').addEventListener('input', saveDraft);
700
  $('projectName').addEventListener('input', saveDraft);
701
+ $('cancelBtn').addEventListener('click', stopRun);
702
+ $('stopBtn').addEventListener('click', stopRun);
703
+ document.addEventListener('keydown', e => { if (e.key === 'Escape' && queue && !document.querySelector('dialog[open]')) stopRun(); });
704
+
705
+ // ---- clear prompts / clear history ----
706
+ function clearPrompts() {
707
+ shots = [''];
708
+ $('scene').value = ''; $('projectName').value = ''; $('seed').value = ''; $('negative').value = '';
709
+ styles = [];
710
+ try { localStorage.removeItem('ora.draft'); localStorage.removeItem('ora.prompt'); } catch { }
711
+ renderShots(); renderStyles(); setRunning(false); estimate();
712
+ }
713
+ $('clearPromptsBtn').addEventListener('click', () => { if (confirm('Clear the shots, scene, style and project name in the form?')) clearPrompts(); });
714
+ $('clearHistoryBtn').addEventListener('click', () => { $('clearSaveDir').textContent = S.saveDir; $('clearDlg').showModal(); });
715
+ $('clearCancel').addEventListener('click', () => $('clearDlg').close());
716
+ $('clearConfirm').addEventListener('click', async () => {
717
+ try { await window.ora.clearHistory(); } catch (e) { $('clearDlg').close(); return formError(String(e.message || e).replace(/^Error invoking remote method '[^']+': (Error: )?/, '')); }
718
+ if ($('clearAlsoPrompts').checked) clearPrompts();
719
+ S.videos = []; current = null;
720
+ $('clearDlg').close();
721
+ showStage('empty'); renderGrid();
722
  });
723
+
724
+ // ---- run on: automatic / graphics / processor ----
725
+ function renderRunOn() {
726
+ const h = S.hardware, e = h.engine;
727
+ const opts = [['auto', 'Automatic'], ['gpu', 'Graphics'], ['cpu', 'Processor']];
728
+ const el = $('runOnSeg');
729
+ el.innerHTML = ''; el.setAttribute('role', 'radiogroup');
730
+ const choice = S.settings.engine || 'auto';
731
+ for (const [v, l] of opts) {
732
+ const b = document.createElement('button');
733
+ b.type = 'button'; b.setAttribute('role', 'radio'); b.dataset.value = v; b.textContent = l;
734
+ b.setAttribute('aria-checked', String(choice === v));
735
+ if (v === 'gpu' && e.gpuUnavailable) { b.disabled = true; b.title = e.gpuUnavailable; }
736
+ b.addEventListener('click', async () => {
737
+ S.settings = await window.ora.setSettings({ engine: v });
738
+ S = { ...S, ...(await window.ora.state()) };
739
+ renderDevice(); renderRunOn(); estimate();
740
+ });
741
+ el.appendChild(b);
742
+ }
743
+ const gpuName = (h.gpus || []).filter(g => g.vendor !== 'Apple' || h.platform === 'darwin').map(g => `${g.vendor} ${g.name}`.trim()).join(', ');
744
+ $('runOnNote').textContent = e.gpuUnavailable
745
+ ? `Now: processor. ${e.gpuUnavailable}`
746
+ : `Now: ${e.gpu ? `graphics${gpuName ? ` (${gpuName})` : ''}` : 'processor only'}.${choice === 'auto' && !e.gpu && h.platform !== 'darwin' ? ' No NVIDIA or AMD graphics card was found; choose Graphics to try your graphics anyway.' : ''}`;
747
+ }
748
  $('revealBtn').addEventListener('click', () => current && window.ora.reveal(current.savedTo));
749
  $('saveAsBtn').addEventListener('click', () => current && window.ora.saveAs(current.id));
750
  $('reuseBtn').addEventListener('click', () => {
 
760
  $('deviceChip').addEventListener('click', () => $('deviceDlg').showModal());
761
  $('closeDevice').addEventListener('click', () => $('deviceDlg').close());
762
  $('openModels').addEventListener('click', () => window.ora.openModels());
763
+
 
 
 
 
764
 
765
  init();
app/renderer/fonts/OFL.txt ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright 2020 The Space Grotesk Project Authors (https://github.com/floriankarsten/space-grotesk)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
app/renderer/fonts/SpaceGrotesk-latin.woff2 ADDED
Binary file (22.3 kB). View file
 
app/renderer/index.html CHANGED
@@ -1,5 +1,5 @@
1
  <!doctype html>
2
- <html lang="en">
3
  <head>
4
  <meta charset="utf-8">
5
  <meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src 'self' ora: data: blob:; media-src 'self' ora: blob:; connect-src 'self' ora:; style-src 'self'; script-src 'self'">
@@ -36,6 +36,10 @@
36
  <!-- studio -->
37
  <section id="studio" class="studio" hidden>
38
  <form id="form" class="panel" autocomplete="off">
 
 
 
 
39
  <div class="field">
40
  <span class="label">Shots <small class="muted">(1 to 5, one video each)</small></span>
41
  <ol class="shots" id="shots"></ol>
@@ -72,6 +76,11 @@
72
  <span class="label">Quality</span>
73
  <div class="seg" id="qualitySeg"></div>
74
  </div>
 
 
 
 
 
75
  <p class="muted small" id="previewNote" hidden>Preview always makes 1 second at a small size, so length and quality are fixed. When you like the idea, make it with Fast or Quality. The full video is made at a larger size, so it will not match the preview frame for frame.</p>
76
 
77
  <details class="advanced">
@@ -80,14 +89,16 @@
80
  <input id="seed" inputmode="numeric" pattern="[0-9]*" placeholder="random"></label>
81
  <label class="field"><span class="label">Avoid <small class="muted">(negative prompt; empty = Wan's default list)</small></span>
82
  <textarea id="negative" rows="2" maxlength="1000" placeholder="blurry, text, watermark, distorted hands"></textarea></label>
83
- <label class="field" id="engineField"><span class="label">Run on</span>
84
- <select id="engineSel"><option value="auto">Automatic</option><option value="gpu">Graphics card (Vulkan)</option><option value="cpu">Processor only</option></select></label>
85
  </details>
86
 
87
  <p class="muted small" id="dlNote" hidden></p>
88
- <p class="estimate" id="estimate"></p>
 
 
 
89
  <p class="error" id="formError" role="alert" hidden></p>
90
  <button class="primary wide" id="goBtn" type="submit">Make video</button>
 
91
  </form>
92
 
93
  <div class="right">
@@ -106,7 +117,7 @@
106
  <div class="muted" id="runDetail"></div>
107
  <div class="muted small" id="runPrompt"></div>
108
  </div>
109
- <button class="ghost" id="cancelBtn" type="button">Cancel</button>
110
  </div>
111
  <div class="run-body">
112
  <section class="run-config" aria-labelledby="cfgTitle">
@@ -134,7 +145,7 @@
134
  </div>
135
 
136
  <div class="history">
137
- <div class="history-head"><h2>Your videos</h2><span class="muted small" id="saveDirText"></span></div>
138
  <div class="grid" id="grid"></div>
139
  <p class="muted small" id="gridEmpty">Videos you make are listed here and saved to your Videos folder.</p>
140
  </div>
@@ -149,6 +160,14 @@
149
  <div class="dlg-actions"><button class="ghost" id="openModels" type="button">Open models folder</button><button class="primary" id="closeDevice" type="button">Close</button></div>
150
  </dialog>
151
 
 
 
 
 
 
 
 
 
152
  <script src="vendor/mp4-muxer.js"></script>
153
  <script src="vendor/webm-muxer.js"></script>
154
  <script src="app.js"></script>
 
1
  <!doctype html>
2
+ <html lang="en" data-theme="light">
3
  <head>
4
  <meta charset="utf-8">
5
  <meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src 'self' ora: data: blob:; media-src 'self' ora: blob:; connect-src 'self' ora:; style-src 'self'; script-src 'self'">
 
36
  <!-- studio -->
37
  <section id="studio" class="studio" hidden>
38
  <form id="form" class="panel" autocomplete="off">
39
+ <div class="form-head">
40
+ <h2>New project</h2>
41
+ <button class="link" id="clearPromptsBtn" type="button">Clear prompts</button>
42
+ </div>
43
  <div class="field">
44
  <span class="label">Shots <small class="muted">(1 to 5, one video each)</small></span>
45
  <ol class="shots" id="shots"></ol>
 
76
  <span class="label">Quality</span>
77
  <div class="seg" id="qualitySeg"></div>
78
  </div>
79
+ <div class="field">
80
+ <span class="label">Run on</span>
81
+ <div class="seg" id="runOnSeg"></div>
82
+ <p class="muted small" id="runOnNote"></p>
83
+ </div>
84
  <p class="muted small" id="previewNote" hidden>Preview always makes 1 second at a small size, so length and quality are fixed. When you like the idea, make it with Fast or Quality. The full video is made at a larger size, so it will not match the preview frame for frame.</p>
85
 
86
  <details class="advanced">
 
89
  <input id="seed" inputmode="numeric" pattern="[0-9]*" placeholder="random"></label>
90
  <label class="field"><span class="label">Avoid <small class="muted">(negative prompt; empty = Wan's default list)</small></span>
91
  <textarea id="negative" rows="2" maxlength="1000" placeholder="blurry, text, watermark, distorted hands"></textarea></label>
 
 
92
  </details>
93
 
94
  <p class="muted small" id="dlNote" hidden></p>
95
+ <div class="estimate" id="estimateBox">
96
+ <div class="est-time" id="estTime"></div>
97
+ <div class="est-text" id="estimate"></div>
98
+ </div>
99
  <p class="error" id="formError" role="alert" hidden></p>
100
  <button class="primary wide" id="goBtn" type="submit">Make video</button>
101
+ <button class="stop wide" id="stopBtn" type="button" hidden>Stop <small>(Esc)</small></button>
102
  </form>
103
 
104
  <div class="right">
 
117
  <div class="muted" id="runDetail"></div>
118
  <div class="muted small" id="runPrompt"></div>
119
  </div>
120
+ <button class="stop" id="cancelBtn" type="button">Stop</button>
121
  </div>
122
  <div class="run-body">
123
  <section class="run-config" aria-labelledby="cfgTitle">
 
145
  </div>
146
 
147
  <div class="history">
148
+ <div class="history-head"><h2>Your videos</h2><span class="muted small" id="saveDirText"></span><span class="spacer"></span><button class="link" id="clearHistoryBtn" type="button" hidden>Clear history</button></div>
149
  <div class="grid" id="grid"></div>
150
  <p class="muted small" id="gridEmpty">Videos you make are listed here and saved to your Videos folder.</p>
151
  </div>
 
160
  <div class="dlg-actions"><button class="ghost" id="openModels" type="button">Open models folder</button><button class="primary" id="closeDevice" type="button">Close</button></div>
161
  </dialog>
162
 
163
+ <dialog id="clearDlg">
164
+ <h2>Clear history</h2>
165
+ <p>This removes Ora's list of past videos and the prompts saved with them.</p>
166
+ <label class="check"><input type="checkbox" id="clearAlsoPrompts" checked> Also clear the prompts in the form</label>
167
+ <p class="muted small">Your MP4 files in <span id="clearSaveDir"></span> are not deleted.</p>
168
+ <div class="dlg-actions"><button class="ghost" id="clearCancel" type="button">Cancel</button><button class="primary" id="clearConfirm" type="button">Clear history</button></div>
169
+ </dialog>
170
+
171
  <script src="vendor/mp4-muxer.js"></script>
172
  <script src="vendor/webm-muxer.js"></script>
173
  <script src="app.js"></script>
app/renderer/styles.css CHANGED
@@ -1,18 +1,27 @@
 
 
 
1
  :root {
2
- --bg: #0d0d10;
3
- --panel: #16161b;
4
- --panel-2: #1d1d24;
5
- --line: #2a2a33;
6
- --text: #ececf1;
7
- --muted: #9b9ba8;
 
 
8
  --accent-1: #f5a524;
9
  --accent-2: #ff5e62;
10
  --accent-3: #8b5cf6;
11
- --grad: linear-gradient(120deg, var(--accent-1), var(--accent-2) 50%, var(--accent-3));
12
- --ok: #34d399;
13
- --err: #f87171;
14
- --radius: 14px;
15
- color-scheme: dark;
 
 
 
 
16
  }
17
  * { box-sizing: border-box; }
18
  html, body { margin: 0; height: 100%; }
@@ -20,122 +29,146 @@ body {
20
  background: var(--bg); color: var(--text);
21
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
22
  display: flex; flex-direction: column;
 
23
  }
24
  [hidden] { display: none !important; }
25
  button, input, select, textarea { font: inherit; color: inherit; }
26
- h1 { font-size: 26px; margin: 0 0 8px; letter-spacing: -0.01em; }
27
- h2 { font-size: 15px; margin: 0; }
 
28
  .muted { color: var(--muted); }
29
  .small { font-size: 12px; }
30
- .big { font-size: 17px; font-weight: 600; }
31
  .spacer { flex: 1; }
32
 
33
  /* top bar */
34
- .top { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); -webkit-app-region: drag; }
35
  .top button { -webkit-app-region: no-drag; }
36
- .brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: 0.02em; }
37
- .brand small { color: var(--muted); font-weight: 400; font-size: 11px; }
38
- .mark { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); box-shadow: inset 0 0 0 5px var(--bg); outline: 2px solid transparent; display: inline-block; }
39
- .big-mark { width: 54px; height: 54px; box-shadow: inset 0 0 0 12px var(--panel); }
40
- .chip { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 12px; color: var(--muted); cursor: pointer; }
41
  .chip:hover { color: var(--text); }
42
 
43
  /* buttons */
44
- .primary { background: var(--grad); color: #160b05; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 700; cursor: pointer; }
45
- .primary:disabled { opacity: .45; cursor: not-allowed; }
46
- .primary.wide { width: 100%; padding: 13px; font-size: 15px; }
47
- .ghost { background: transparent; border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; cursor: pointer; color: var(--text); }
 
 
 
 
48
  .ghost:hover { background: var(--panel-2); }
 
 
49
  button:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
50
 
51
  main { flex: 1; overflow: auto; }
52
- .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
53
 
54
  /* setup */
55
- .setup { max-width: 860px; margin: 40px auto; padding: 0 24px; }
56
- .lead { color: var(--muted); max-width: 640px; margin: 0 0 24px; }
57
- .model-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
58
- .mcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
59
- .mcard h3 { margin: 0 0 4px; font-size: 15px; }
60
  .mcard .size { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; margin-top: 10px; }
61
- .mcard .bar { height: 4px; background: var(--panel-2); border-radius: 4px; margin-top: 8px; overflow: hidden; }
62
  .mcard .bar div { height: 100%; background: var(--grad); width: 0; transition: width .3s; }
63
- .mcard.ready { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
64
- .mcard.ready .size::after { content: " · ready"; color: var(--ok); }
65
- .setup-bar { display: flex; align-items: center; gap: 16px; margin: 22px 0 10px; }
66
- .progress { height: 6px; background: var(--panel-2); border-radius: 6px; overflow: hidden; }
67
  .progress div { height: 100%; width: 0; background: var(--grad); transition: width .3s; }
68
 
69
  /* studio */
70
- .studio { display: grid; grid-template-columns: minmax(330px, 400px) 1fr; gap: 18px; padding: 18px 20px 28px; align-items: start; }
71
- #form { padding: 18px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; }
 
 
72
  .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
73
- .label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
74
  .label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
75
- textarea, input, select { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: vertical; width: 100%; }
76
- textarea:focus, input:focus, select:focus { border-color: #4a4a57; outline: none; }
 
77
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
78
- .styles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
79
- .styles button { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--muted); cursor: pointer; }
80
- .styles button:hover, .styles button[aria-pressed="true"] { color: var(--text); border-color: #55556a; }
81
- .seg { display: flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
82
- .seg button { flex: 1; border: 0; background: transparent; border-radius: 7px; padding: 7px 6px; cursor: pointer; color: var(--muted); font-size: 13px; }
83
- .seg button[aria-checked="true"] { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px #3a3a46; }
 
 
84
  .seg-models { flex-direction: column; }
85
- .seg-models button { text-align: left; padding: 9px 10px; }
86
- .seg-models b { display: block; color: var(--text); font-size: 13px; }
87
- .seg-models span { font-size: 11px; }
 
 
88
  .advanced summary { cursor: pointer; color: var(--muted); font-size: 13px; }
89
  .advanced[open] summary { margin-bottom: 10px; }
90
  .advanced .field { margin-bottom: 10px; }
91
- .estimate { margin: 0; font-size: 12.5px; color: var(--muted); }
92
- .error { margin: 0; color: var(--err); font-size: 13px; }
 
 
 
 
93
 
94
- .right { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
95
- .stage { min-height: 380px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
96
- .stage-empty { text-align: center; padding: 40px; }
97
- .stage-run { display: flex; flex-direction: column; gap: 20px; padding: 28px; width: 100%; max-width: 860px; }
 
98
  .run-head { display: flex; align-items: center; gap: 22px; }
99
  .run-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
100
- .run-config, .run-phases { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
101
- .run-config h3, .run-phases h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
102
  .run-config dl { margin: 0; grid-template-columns: max-content 1fr; gap: 5px 14px; font-size: 13px; }
103
- .run-phases ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
104
- .phase { display: grid; grid-template-columns: 18px 1fr auto; gap: 4px 10px; align-items: center; font-size: 13px; }
105
- .phase .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
106
- .phase.active .dot { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 35%, transparent); }
107
  .phase.done .dot { border-color: var(--ok); background: var(--ok); }
108
  .phase .t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
109
  .phase.waiting .name { color: var(--muted); }
110
- .phase .pbar { grid-column: 2 / 4; height: 4px; background: var(--bg); border-radius: 4px; overflow: hidden; }
111
  .phase .pbar div { height: 100%; width: 0; background: var(--grad); transition: width .4s; }
112
  @media (max-width: 1100px) { .run-body { grid-template-columns: 1fr; } }
113
  .run-text { flex: 1; min-width: 0; }
114
  .run-text #runPrompt { margin-top: 8px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
115
- .ring { --p: 0; width: 86px; height: 86px; border-radius: 50%; position: relative; flex: none;
116
  background: conic-gradient(var(--accent-2) calc(var(--p) * 1%), var(--panel-2) 0); display: grid; place-items: center; }
117
- .ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--panel); }
118
- .ring span { position: relative; font-weight: 700; font-variant-numeric: tabular-nums; }
119
  .stage-video { width: 100%; display: flex; flex-direction: column; }
120
- .stage-video video { width: 100%; max-height: 62vh; background: #000; display: block; }
121
- .video-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; flex-wrap: wrap; }
122
 
123
- .history-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
124
- .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
125
- .card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; display: flex; flex-direction: column; }
126
- .card:hover { border-color: #3d3d4a; }
127
- .card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; display: block; }
128
- .card .meta { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; }
 
129
  .card .p { font-size: 12.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
130
  .card .s { font-size: 11px; color: var(--muted); }
131
- .card .del { align-self: flex-end; margin: -2px 6px 6px; font-size: 11px; padding: 2px 8px; }
132
 
133
- dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; max-width: 520px; width: calc(100% - 40px); }
134
- dialog::backdrop { background: rgba(0, 0, 0, .55); }
 
135
  dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0; }
136
  dt { color: var(--muted); }
137
  dd { margin: 0; }
138
- .dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
 
 
139
 
140
  @media (max-width: 980px) {
141
  .studio { grid-template-columns: 1fr; }
@@ -143,19 +176,18 @@ dd { margin: 0; }
143
  .model-cards { grid-template-columns: 1fr; }
144
  }
145
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
146
- .seg button:disabled { opacity: .4; cursor: not-allowed; }
147
 
148
  /* shots */
149
- .shots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: shot; }
150
- .shot { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
151
- .shot .num { width: 26px; height: 26px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 8px; }
152
  .shot textarea { min-height: 64px; }
153
  .shot .tools { grid-column: 2; display: flex; gap: 4px; justify-content: flex-end; margin-top: -2px; }
154
  .shot .tools button { background: transparent; border: 0; color: var(--muted); font-size: 12px; padding: 2px 6px; border-radius: 6px; cursor: pointer; }
155
  .shot .tools button:hover:not(:disabled) { color: var(--text); background: var(--panel-2); }
156
  .shot .tools button:disabled { opacity: .35; cursor: default; }
157
- .shot.state-done .num { background: color-mix(in srgb, var(--ok) 25%, var(--panel-2)); border-color: var(--ok); }
158
- .shot.state-running .num { border-color: var(--accent-2); color: var(--accent-2); }
159
  .add-shot { align-self: flex-start; font-size: 13px; }
160
- .run-queue { color: var(--accent-1); font-weight: 600; letter-spacing: .02em; margin-bottom: 2px; }
161
- .project-done { width: 100%; margin: 0; color: var(--ok); }
 
1
+ /* Ora app: warm light theme, matching the website (huggingface.co/spaces/Devseis/Ora). */
2
+ @font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-latin.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
3
+
4
  :root {
5
+ --bg: #fbf7f2;
6
+ --panel: #ffffff;
7
+ --panel-2: #f6f0e9;
8
+ --ink: 40 24 60;
9
+ --line: rgb(var(--ink) / .10);
10
+ --line-2: rgb(var(--ink) / .18);
11
+ --text: #1c1530;
12
+ --muted: #5d566e;
13
  --accent-1: #f5a524;
14
  --accent-2: #ff5e62;
15
  --accent-3: #8b5cf6;
16
+ --grad: linear-gradient(115deg, var(--accent-1), var(--accent-2) 50%, var(--accent-3));
17
+ --ok: #0f8a5f;
18
+ --err: #c62f35;
19
+ --warn-bg: #fff1e6;
20
+ --warn: #a14a00;
21
+ --radius: 16px;
22
+ --shadow: 0 12px 34px -22px rgba(60, 30, 80, .35);
23
+ --head: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
24
+ color-scheme: light;
25
  }
26
  * { box-sizing: border-box; }
27
  html, body { margin: 0; height: 100%; }
 
29
  background: var(--bg); color: var(--text);
30
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
31
  display: flex; flex-direction: column;
32
+ background-image: radial-gradient(60% 50% at 100% 0%, rgba(255, 94, 98, .10), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(139, 92, 246, .08), transparent 70%);
33
  }
34
  [hidden] { display: none !important; }
35
  button, input, select, textarea { font: inherit; color: inherit; }
36
+ h1, h2, h3 { font-family: var(--head); letter-spacing: -0.015em; }
37
+ h1 { font-size: 30px; margin: 0 0 8px; }
38
+ h2 { font-size: 17px; margin: 0; }
39
  .muted { color: var(--muted); }
40
  .small { font-size: 12px; }
41
+ .big { font-size: 18px; font-weight: 600; font-family: var(--head); }
42
  .spacer { flex: 1; }
43
 
44
  /* top bar */
45
+ .top { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .6); backdrop-filter: blur(12px); -webkit-app-region: drag; }
46
  .top button { -webkit-app-region: no-drag; }
47
+ .brand { display: flex; align-items: center; gap: 9px; font: 700 19px var(--head); letter-spacing: .01em; }
48
+ .brand small { color: var(--muted); font: 400 11px -apple-system, sans-serif; }
49
+ .mark { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); box-shadow: inset 0 0 0 6px var(--bg); display: inline-block; flex: none; }
50
+ .big-mark { width: 58px; height: 58px; box-shadow: inset 0 0 0 13px var(--panel); }
51
+ .chip { background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 13px; font-size: 12px; color: var(--muted); cursor: pointer; }
52
  .chip:hover { color: var(--text); }
53
 
54
  /* buttons */
55
+ .primary { background: var(--grad); color: #1b0b04; border: 0; border-radius: 11px; padding: 10px 18px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(255, 94, 98, .7); }
56
+ .primary:hover { filter: brightness(1.03); }
57
+ .primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
58
+ .primary.wide, .stop.wide { width: 100%; padding: 14px; font-size: 15px; }
59
+ .stop { background: #2a1f3d; color: #fff; border: 0; border-radius: 11px; padding: 9px 18px; font-weight: 700; cursor: pointer; }
60
+ .stop:hover { background: #3a2b52; }
61
+ .stop small { font-weight: 400; opacity: .7; }
62
+ .ghost { background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 12px; cursor: pointer; color: var(--text); }
63
  .ghost:hover { background: var(--panel-2); }
64
+ .link { background: none; border: 0; color: var(--muted); font-size: 12.5px; cursor: pointer; padding: 4px 6px; border-radius: 6px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(var(--ink) / .25); }
65
+ .link:hover { color: var(--text); }
66
  button:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
67
 
68
  main { flex: 1; overflow: auto; }
69
+ .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
70
 
71
  /* setup */
72
+ .setup { max-width: 900px; margin: 44px auto; padding: 0 24px; }
73
+ .lead { color: var(--muted); max-width: 640px; margin: 0 0 26px; font-size: 15px; }
74
+ .model-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
75
+ .mcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
76
+ .mcard h3 { margin: 0 0 4px; font-size: 16px; }
77
  .mcard .size { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; margin-top: 10px; }
78
+ .mcard .bar { height: 5px; background: var(--panel-2); border-radius: 5px; margin-top: 8px; overflow: hidden; }
79
  .mcard .bar div { height: 100%; background: var(--grad); width: 0; transition: width .3s; }
80
+ .mcard.ready { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
81
+ .mcard.ready .size::after { content: " · ready"; color: var(--ok); font-weight: 600; }
82
+ .setup-bar { display: flex; align-items: center; gap: 16px; margin: 24px 0 10px; }
83
+ .progress { height: 7px; background: var(--panel-2); border-radius: 7px; overflow: hidden; }
84
  .progress div { height: 100%; width: 0; background: var(--grad); transition: width .3s; }
85
 
86
  /* studio */
87
+ .studio { display: grid; grid-template-columns: minmax(340px, 410px) 1fr; gap: 20px; padding: 20px 22px 30px; align-items: start; }
88
+ #form { padding: 20px; display: flex; flex-direction: column; gap: 15px; position: sticky; top: 0; }
89
+ .form-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: -2px; }
90
+ .form-head h2 { font-size: 19px; }
91
  .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
92
+ .label { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
93
  .label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
94
+ textarea, input, select { background: var(--panel-2); border: 1px solid transparent; border-radius: 11px; padding: 10px 12px; resize: vertical; width: 100%; }
95
+ textarea:focus, input:focus, select:focus { border-color: var(--line-2); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(255, 94, 98, .12); }
96
+ ::placeholder { color: #9a92a8; }
97
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
98
+ .styles { display: flex; flex-wrap: wrap; gap: 6px; }
99
+ .styles button { background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 11px; font-size: 12px; color: var(--muted); cursor: pointer; }
100
+ .styles button:hover { color: var(--text); }
101
+ .styles button[aria-pressed="true"] { color: #1b0b04; border-color: transparent; background: linear-gradient(115deg, rgba(245,165,36,.30), rgba(255,94,98,.30) 50%, rgba(139,92,246,.30)); font-weight: 600; }
102
+ .seg { display: flex; background: var(--panel-2); border-radius: 12px; padding: 4px; gap: 4px; }
103
+ .seg button { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 7px 6px; cursor: pointer; color: var(--muted); font-size: 13px; }
104
+ .seg button[aria-checked="true"] { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 2px 8px -3px rgba(60, 30, 80, .3); }
105
+ .seg button:disabled { opacity: .4; cursor: not-allowed; }
106
  .seg-models { flex-direction: column; }
107
+ .seg-models button { text-align: left; padding: 10px 12px; }
108
+ .seg-models button[aria-checked="true"] { box-shadow: 0 0 0 1.5px var(--accent-2), 0 4px 14px -6px rgba(255, 94, 98, .45); }
109
+ .seg-models b { display: block; color: var(--text); font-size: 13.5px; }
110
+ .seg-models span { font-size: 11.5px; font-weight: 400; }
111
+ #runOnNote { margin: 2px 0 0; }
112
  .advanced summary { cursor: pointer; color: var(--muted); font-size: 13px; }
113
  .advanced[open] summary { margin-bottom: 10px; }
114
  .advanced .field { margin-bottom: 10px; }
115
+ .estimate { background: var(--panel-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
116
+ .est-time { font: 700 18px var(--head); }
117
+ .est-text { font-size: 12.5px; color: var(--muted); }
118
+ .estimate.warn { background: var(--warn-bg); }
119
+ .estimate.warn .est-time { color: var(--warn); }
120
+ .error { margin: 0; color: var(--err); font-size: 13px; white-space: pre-wrap; }
121
 
122
+ .right { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
123
+ .stage { min-height: 400px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
124
+ .stage-empty { text-align: center; padding: 44px; }
125
+ .stage-empty p:first-of-type { font: 600 17px var(--head); margin: 16px 0 6px; }
126
+ .stage-run { display: flex; flex-direction: column; gap: 20px; padding: 28px; width: 100%; max-width: 900px; }
127
  .run-head { display: flex; align-items: center; gap: 22px; }
128
  .run-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
129
+ .run-config, .run-phases { background: var(--panel-2); border-radius: 14px; padding: 15px 17px; }
130
+ .run-config h3, .run-phases h3 { margin: 0 0 9px; font: 700 11.5px -apple-system, sans-serif; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
131
  .run-config dl { margin: 0; grid-template-columns: max-content 1fr; gap: 5px 14px; font-size: 13px; }
132
+ .run-phases ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
133
+ .phase { display: grid; grid-template-columns: 18px 1fr auto; gap: 5px 10px; align-items: center; font-size: 13px; }
134
+ .phase .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); }
135
+ .phase.active .dot { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 30%, transparent); }
136
  .phase.done .dot { border-color: var(--ok); background: var(--ok); }
137
  .phase .t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
138
  .phase.waiting .name { color: var(--muted); }
139
+ .phase .pbar { grid-column: 2 / 4; height: 5px; background: #fff; border-radius: 5px; overflow: hidden; }
140
  .phase .pbar div { height: 100%; width: 0; background: var(--grad); transition: width .4s; }
141
  @media (max-width: 1100px) { .run-body { grid-template-columns: 1fr; } }
142
  .run-text { flex: 1; min-width: 0; }
143
  .run-text #runPrompt { margin-top: 8px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
144
+ .ring { --p: 0; width: 90px; height: 90px; border-radius: 50%; position: relative; flex: none;
145
  background: conic-gradient(var(--accent-2) calc(var(--p) * 1%), var(--panel-2) 0); display: grid; place-items: center; }
146
+ .ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--panel); }
147
+ .ring span { position: relative; font: 700 17px var(--head); font-variant-numeric: tabular-nums; }
148
  .stage-video { width: 100%; display: flex; flex-direction: column; }
149
+ .stage-video video { width: 100%; max-height: 62vh; background: #120d1c; display: block; }
150
+ .video-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; flex-wrap: wrap; }
151
 
152
+ .history-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
153
+ .history-head h2 { font-size: 19px; }
154
+ .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
155
+ .card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
156
+ .card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -22px rgba(60, 30, 80, .45); }
157
+ .card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #120d1c; display: block; }
158
+ .card .meta { padding: 9px 11px 10px; display: flex; flex-direction: column; gap: 3px; }
159
  .card .p { font-size: 12.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
160
  .card .s { font-size: 11px; color: var(--muted); }
161
+ .card .del { align-self: flex-end; margin: -2px 8px 8px; font-size: 11px; padding: 2px 8px; }
162
 
163
+ dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; max-width: 520px; width: calc(100% - 40px); box-shadow: 0 30px 80px -30px rgba(40, 20, 60, .5); }
164
+ dialog::backdrop { background: rgba(28, 21, 48, .35); backdrop-filter: blur(2px); }
165
+ dialog h2 { font-size: 20px; }
166
  dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0; }
167
  dt { color: var(--muted); }
168
  dd { margin: 0; }
169
+ .dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
170
+ .check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 10px 0; }
171
+ .check input { width: auto; }
172
 
173
  @media (max-width: 980px) {
174
  .studio { grid-template-columns: 1fr; }
 
176
  .model-cards { grid-template-columns: 1fr; }
177
  }
178
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
 
179
 
180
  /* shots */
181
+ .shots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
182
+ .shot { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; }
183
+ .shot .num { width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; font: 700 12px var(--head); margin-top: 7px; }
184
  .shot textarea { min-height: 64px; }
185
  .shot .tools { grid-column: 2; display: flex; gap: 4px; justify-content: flex-end; margin-top: -2px; }
186
  .shot .tools button { background: transparent; border: 0; color: var(--muted); font-size: 12px; padding: 2px 6px; border-radius: 6px; cursor: pointer; }
187
  .shot .tools button:hover:not(:disabled) { color: var(--text); background: var(--panel-2); }
188
  .shot .tools button:disabled { opacity: .35; cursor: default; }
189
+ .shot.state-done .num { background: color-mix(in srgb, var(--ok) 18%, #fff); color: var(--ok); }
190
+ .shot.state-running .num { background: var(--grad); color: #1b0b04; }
191
  .add-shot { align-self: flex-start; font-size: 13px; }
192
+ .run-queue { color: var(--accent-2); font-weight: 700; letter-spacing: .02em; margin-bottom: 2px; }
193
+ .project-done { width: 100%; margin: 0; color: var(--ok); font-weight: 600; }
app/test/core.test.cjs CHANGED
@@ -10,13 +10,19 @@ for (const [fps, s, want] of [[16, 2, 33], [16, 3, 49], [16, 5, 81], [24, 2, 49]
10
  }
11
 
12
  // engine choice
13
- assert.deepEqual(core.pickEngine('darwin', 'arm64', []), { id: 'mac-arm64', gpu: true });
14
- assert.deepEqual(core.pickEngine('darwin', 'x64', [{ vendor: 'AMD' }]), { id: 'mac-x64', gpu: false });
15
- assert.deepEqual(core.pickEngine('win32', 'x64', [{ vendor: 'Intel' }]), { id: 'win-cpu', gpu: false });
16
- assert.deepEqual(core.pickEngine('win32', 'x64', [{ vendor: 'Intel' }, { vendor: 'NVIDIA' }]), { id: 'win-vulkan', gpu: true });
17
- assert.deepEqual(core.pickEngine('linux', 'x64', [{ vendor: 'AMD' }], 'cpu'), { id: 'linux-cpu', gpu: false });
18
- assert.deepEqual(core.pickEngine('linux', 'x64', [], 'gpu'), { id: 'linux-vulkan', gpu: true });
 
 
 
 
19
  assert.deepEqual(core.describeGpus({ gpuDevice: [{ vendorId: 0x10de, deviceString: 'RTX 4070', active: true }] }), [{ vendor: 'NVIDIA', name: 'RTX 4070', active: true }]);
 
 
20
 
21
  // arguments
22
  const job = { prompt: 'a red car', model: 'quality', shape: 'portrait', seconds: 2, quality: 'draft', seed: 7 };
@@ -94,3 +100,8 @@ assert.equal(pa.indexOf('--tae'), -1); assert.equal(pa[pa.indexOf('--vae') + 1],
94
  pa = core.buildArgs(manifest, { ...job, model: 'fast', quality: 'best' }, tp, { gpu: false }).args;
95
  assert.equal(pa.indexOf('--tae'), -1);
96
  console.log('decoder tests passed');
 
 
 
 
 
 
10
  }
11
 
12
  // engine choice
13
+ const E = (...a) => { const e = core.pickEngine(...a); return [e.id, e.gpu, (e.args || []).join(' ')]; };
14
+ assert.deepEqual(E('darwin', 'arm64', []), ['mac-arm64', true, '']);
15
+ assert.deepEqual(E('darwin', 'arm64', [], 'cpu'), ['mac-arm64', false, '--backend cpu']);
16
+ assert.deepEqual(E('darwin', 'x64', [{ vendor: 'AMD' }], 'gpu'), ['mac-x64', false, '']);
17
+ assert.ok(core.pickEngine('darwin', 'x64', []).gpuUnavailable);
18
+ assert.deepEqual(E('win32', 'x64', [{ vendor: 'Intel' }]), ['win-cpu', false, '']);
19
+ assert.deepEqual(E('win32', 'x64', [{ vendor: 'Intel' }, { vendor: 'NVIDIA' }]), ['win-vulkan', true, '']);
20
+ assert.deepEqual(E('win32', 'x64', [{ vendor: 'NVIDIA' }], 'cpu'), ['win-cpu', false, '']);
21
+ assert.deepEqual(E('linux', 'x64', [{ vendor: 'AMD' }], 'cpu'), ['linux-cpu', false, '']);
22
+ assert.deepEqual(E('linux', 'x64', [], 'gpu'), ['linux-vulkan', true, '']);
23
  assert.deepEqual(core.describeGpus({ gpuDevice: [{ vendorId: 0x10de, deviceString: 'RTX 4070', active: true }] }), [{ vendor: 'NVIDIA', name: 'RTX 4070', active: true }]);
24
+ const cpuArgs = core.buildArgs(manifest, { prompt: 'a red car', model: 'fast', shape: 'landscape', seconds: 2, quality: 'draft', seed: 1 }, { diffusion: 'd', vae: 'v', t5: 't', outPattern: 'o' }, core.pickEngine('darwin', 'arm64', [], 'cpu')).args;
25
+ assert.equal(cpuArgs[cpuArgs.indexOf('--backend') + 1], 'cpu');
26
 
27
  // arguments
28
  const job = { prompt: 'a red car', model: 'quality', shape: 'portrait', seconds: 2, quality: 'draft', seed: 7 };
 
100
  pa = core.buildArgs(manifest, { ...job, model: 'fast', quality: 'best' }, tp, { gpu: false }).args;
101
  assert.equal(pa.indexOf('--tae'), -1);
102
  console.log('decoder tests passed');
103
+
104
+ assert.equal(core.cleanGpuName('ANGLE (Intel, ANGLE Metal Renderer: Intel(R) Iris(TM) Plus Graphics, Version 26.7.1 (Build 25G241))'), 'Intel Iris Plus Graphics');
105
+ assert.equal(core.cleanGpuName('ANGLE (NVIDIA, NVIDIA GeForce RTX 4070 (0x00002786) Direct3D11 vs_5_0 ps_5_0, D3D11)'), 'NVIDIA GeForce RTX 4070');
106
+ assert.equal(core.cleanGpuName('Apple M2'), 'Apple M2');
107
+ console.log('gpu name tests passed');
index.html CHANGED
@@ -1,106 +1,235 @@
1
  <!doctype html>
2
- <html lang="en">
3
  <head>
4
  <meta charset="utf-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>Ora · Video from a prompt</title>
7
- <meta name="description" content="Ora makes videos from a text prompt on your own computer with the open Wan2.1 1.3B and Wan2.2 5B models. Free, private, works offline. macOS, Windows and Linux.">
8
- <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f5a524'/%3E%3Cstop offset='.5' stop-color='%23ff5e62'/%3E%3Cstop offset='1' stop-color='%238b5cf6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='13' fill='none' stroke='url(%23g)' stroke-width='6'/%3E%3C/svg%3E">
 
 
 
 
 
 
 
9
  <link rel="stylesheet" href="site/site.css">
10
  </head>
11
  <body>
 
 
 
12
  <header class="nav">
13
  <a class="brand" href="#top"><span class="mark" aria-hidden="true"></span>Ora</a>
14
  <nav>
15
- <a href="#how">How it works</a>
 
16
  <a href="#models">Models</a>
17
  <a href="#needs">Your computer</a>
18
  <a href="#faq">FAQ</a>
19
  </nav>
 
20
  </header>
21
 
22
  <main id="top">
 
23
  <section class="hero">
24
- <p class="eyebrow">Free · open models · runs on your computer</p>
25
- <h1>Make video from a prompt,<br><span class="grad">on your own computer.</span></h1>
26
- <p class="sub">Write up to five shots and Ora turns each one into a short video clip with the open <b>Wan2.1 1.3B</b> and <b>Wan2.2 5B</b> models, ready for your video editor. Nothing is uploaded and there is no account. Once the models are downloaded, it works offline.</p>
27
-
28
- <div class="install" id="install">
29
- <div class="tabs" role="tablist" aria-label="Your system">
30
- <button role="tab" data-os="mac" aria-selected="true">macOS</button>
31
- <button role="tab" data-os="windows" aria-selected="false">Windows</button>
32
- <button role="tab" data-os="linux" aria-selected="false">Linux</button>
 
 
 
33
  </div>
34
- <p class="how" id="howText">Open <b>Terminal</b>, paste this line and press Return:</p>
35
- <div class="cmd">
36
- <code id="cmd">curl -fsSL https://devseis-ora.static.hf.space/install.sh | bash</code>
37
- <button class="copy" id="copyBtn" type="button">Copy</button>
38
  </div>
39
- <p class="fine" id="fineText">The installer downloads Ora from Hugging Face, checks its SHA-256 checksum and opens it. Ora then downloads the models once (about 12 GB).</p>
 
 
 
 
 
 
40
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  </section>
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  <section class="section" id="how">
44
- <h2>How it works</h2>
 
45
  <div class="steps">
46
- <div class="step"><span class="n">1</span><h3>Install with one line</h3><p>Paste the command for your system. Ora installs for your user only. On macOS no "unidentified developer" warning appears, because the file is not downloaded through a browser.</p></div>
47
- <div class="step"><span class="n">2</span><h3>Download the models once</h3><p>The app downloads both video models and the prompt reader: about 12 GB in total. You can pause and resume, and every file is checked against its published checksum.</p></div>
48
- <div class="step"><span class="n">3</span><h3>Write your shots, then make them</h3><p>Describe 1 to 5 shots, add a scene and a style for all of them (cinematic, product ad, studio light…), and choose a model, a shape (16:9, 9:16 for phones, 1:1) and a length of 2, 3 or 5 seconds. Each shot is saved as its own MP4, numbered in order (01, 02…) in a project folder, ready to edit together.</p></div>
49
  </div>
50
  </section>
51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  <section class="section" id="models">
53
- <h2>Two models, plus a quick preview</h2>
54
- <div class="cards">
55
- <div class="card">
56
- <div class="tag">Fast</div>
 
 
 
 
 
 
 
57
  <h3>Wan2.1 T2V 1.3B</h3>
58
- <p>480p (832×480) at 16 frames a second. The quickest option, good for drafts, social clips and testing ideas.</p>
59
- <ul><li>1.5 GB model (8-bit GGUF)</li><li>2, 3 or 5 seconds</li><li>Apache-2.0: commercial use allowed</li></ul>
60
- </div>
61
- <div class="card">
62
- <div class="tag tag-q">Quality</div>
63
  <h3>Wan2.2 TI2V 5B</h3>
64
- <p>720p (1280×704) at 24 frames a second, with sharper detail and smoother motion. Best with a graphics card. On the processor alone Ora drops it to 480p.</p>
65
- <ul><li>3.8 GB model (5-bit GGUF)</li><li>2, 3 or 5 seconds</li><li>Apache-2.0: commercial use allowed</li></ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  </div>
 
67
  </div>
68
- <p class="note"><b>Preview</b> uses the 1.3B model to make a 1-second clip at a small size (512×288) with a fast decoder. It is meant for checking a prompt and looks fine on a phone screen. Then make the full shot with Fast or Quality.</p>
69
- <p class="note">Both models share one prompt reader (umT5-XXL, 4.7 GB). Videos are made by <a href="https://github.com/leejet/stable-diffusion.cpp" rel="noopener">stable-diffusion.cpp</a>, which runs on Apple graphics (Metal), NVIDIA and AMD graphics cards (Vulkan), or the processor.</p>
70
  </section>
71
 
 
72
  <section class="section" id="needs">
73
- <h2>What your computer needs</h2>
74
- <div class="table-wrap">
75
- <table>
76
- <thead><tr><th>Computer</th><th>Runs on</th><th>What to expect</th></tr></thead>
77
- <tbody>
78
- <tr><td>Mac with Apple Silicon (M1–M4)</td><td>Apple graphics (Metal)</td><td>Good. Use 16 GB of memory or more for the Quality model.</td></tr>
79
- <tr><td>Windows or Linux with an NVIDIA or AMD graphics card</td><td>Graphics card (Vulkan)</td><td>The fastest. 8 GB of graphics memory or more is best for Quality.</td></tr>
80
- <tr><td>Intel Mac, or a PC without a graphics card</td><td>Processor only</td><td>Works, but slowly. Measured on a 4-core Intel Core i7 (2020): a 1-second Preview takes about 25 minutes, and a full 2-second Fast clip takes a few hours. Use Preview first.</td></tr>
81
- </tbody>
82
- </table>
83
  </div>
84
- <p class="note" id="measured">All computers need about <b>16 GB of memory</b> and <b>15 GB of free disk space</b>, on 64-bit macOS 12+, Windows 10/11 or Linux (x86_64). Ora shows an estimate for your own computer after your first video.</p>
85
  </section>
86
 
 
87
  <section class="section" id="faq">
 
88
  <h2>Questions</h2>
89
- <details><summary>Is anything uploaded?</summary><p>No. The prompt, the frames and the video stay on your computer. Ora only connects to Hugging Face to download itself and the models.</p></details>
90
- <details><summary>Can I use the videos in commercial work?</summary><p>The Wan models and the umT5 prompt reader are released under Apache-2.0, which allows commercial use. You are responsible for what you make: do not create content that is unlawful or misleading, or that uses other people's likeness, brands or rights without permission.</p></details>
91
- <details><summary>Will it look like a TV commercial?</summary><p>Each shot is short (up to 5 seconds) and comes from open models of 1.3 and 5 billion parameters. They work well for social posts, concept drafts, mood films and B-roll. For a finished advert, make up to five related shots in one project, then cut them together in your video editor and add titles, music and a voice-over.</p></details>
92
- <details><summary>Why only 5 seconds per shot?</summary><p>Both Wan models were trained on clips of about 5 seconds. Asked for more in one go, the motion repeats or falls apart. Longer videos are built from several shots, which is also how adverts are normally made.</p></details>
93
- <details><summary>Will the product look the same in every shot?</summary><p>Close, not identical. The scene and style you set are added to every shot, which keeps the look and setting alike, but a model working from text alone will vary details such as a label or a face from shot to shot.</p></details>
94
- <details><summary>Why is it slow on my computer?</summary><p>Video models need a lot of computing. Without a supported graphics card, the processor does all of it. Use the Fast model, 2 seconds and Draft quality first. The estimate in the app is based on your computer's real speed.</p></details>
95
- <details><summary>Where are my videos and the models?</summary><p>Videos are saved as MP4 in <b>Movies/Ora</b> (Mac) or <b>Videos/Ora</b> (Windows, Linux). The models are in Ora's app folder: on Mac <code>~/Library/Application Support/Ora</code>, on Windows <code>%APPDATA%\Ora</code>, on Linux <code>~/.config/Ora</code>.</p></details>
96
- <details><summary>How do I uninstall?</summary><p>macOS and Linux: <code>curl -fsSL https://devseis-ora.static.hf.space/install.sh | bash -s -- --uninstall --purge</code> (leave out <code>--purge</code> to keep the 12 GB of models). Windows: Settings › Apps › Installed apps › Ora › Uninstall, then delete <code>%APPDATA%\Ora</code> to remove the models.</p></details>
97
- <details><summary>Is the app signed?</summary><p>Not yet with an Apple or Microsoft certificate. The one-line installer checks every download against the SHA-256 checksums published with each <a href="https://huggingface.co/datasets/Devseis/ora-releases" rel="noopener">release</a>, and the source is in this Space.</p></details>
 
 
 
 
 
 
 
 
98
  </section>
99
  </main>
100
 
101
  <footer>
102
- <span>Ora by <a href="https://huggingface.co/Devseis" rel="noopener">Devseis</a> · Apache-2.0</span>
103
- <span>Built on Wan (Alibaba), umT5 (Google) and stable-diffusion.cpp. See <a href="NOTICE">NOTICE</a>.</span>
104
  </footer>
105
  <div class="toast" id="toast" role="status" aria-live="polite"></div>
106
  <script src="site/site.js"></script>
 
1
  <!doctype html>
2
+ <html lang="en" data-theme="light">
3
  <head>
4
  <meta charset="utf-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="theme-color" content="#fbf7f2">
7
+ <title>Ora · Turn words into video</title>
8
+ <meta name="description" content="Ora turns your words into short video shots for ads, reels and product films, on your own computer with the open Wan2.1 and Wan2.2 models. Free, private, no account. macOS, Windows and Linux.">
9
+ <meta property="og:title" content="Ora · Turn words into video">
10
+ <meta property="og:description" content="Write up to five shots. Ora makes each one into a video clip on your own computer. Free and private.">
11
+ <meta property="og:image" content="site/assets/hero-juice.png">
12
+ <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f5a524'/%3E%3Cstop offset='.5' stop-color='%23ff5e62'/%3E%3Cstop offset='1' stop-color='%238b5cf6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='url(%23g)' stroke-width='6'/%3E%3C/svg%3E">
13
+ <link rel="preconnect" href="https://fonts.googleapis.com">
14
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
15
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap" rel="stylesheet">
16
  <link rel="stylesheet" href="site/site.css">
17
  </head>
18
  <body>
19
+ <div class="glow g1" aria-hidden="true"></div>
20
+ <div class="glow g2" aria-hidden="true"></div>
21
+
22
  <header class="nav">
23
  <a class="brand" href="#top"><span class="mark" aria-hidden="true"></span>Ora</a>
24
  <nav>
25
+ <a href="#uses">Use cases</a>
26
+ <a href="#shots">Shots</a>
27
  <a href="#models">Models</a>
28
  <a href="#needs">Your computer</a>
29
  <a href="#faq">FAQ</a>
30
  </nav>
31
+ <a class="btn btn-sm" href="#install">Install free</a>
32
  </header>
33
 
34
  <main id="top">
35
+ <!-- hero -->
36
  <section class="hero">
37
+ <div class="hero-copy">
38
+ <a class="pill" href="#models"><span class="dot"></span>Open models · Wan2.1 1.3B and Wan2.2 5B</a>
39
+ <h1>Turn words into <span class="grad">scroll-stopping</span> video.</h1>
40
+ <p class="sub">Write up to five shots. Ora turns each one into a video clip for your ad, reel or product film, right on your own computer. No account, no upload, no monthly fee.</p>
41
+ <div class="hero-install" id="heroInstall">
42
+ <div class="device"><span class="dev-ico" id="devIco" aria-hidden="true"></span><span><span class="dev-label">Your computer</span> <b id="devName">macOS</b></span></div>
43
+ <p class="hero-where" id="heroWhere">Open <b>Terminal</b>, paste this line and press Return:</p>
44
+ <div class="cmd cmd-hero">
45
+ <code id="heroCmd">curl -fsSL https://devseis-ora.static.hf.space/install.sh | bash</code>
46
+ <button class="copy" type="button" data-copy="hero">Copy</button>
47
+ </div>
48
+ <p class="hero-other">Not your system? <button type="button" class="os-link" data-os="mac">macOS</button> · <button type="button" class="os-link" data-os="windows">Windows</button> · <button type="button" class="os-link" data-os="linux">Linux</button> · <a href="#how">How it works</a></p>
49
  </div>
50
+ <div class="phone-note" id="phoneNote" hidden>
51
+ <b>Ora runs on computers.</b> Open this page on your Mac, Windows or Linux computer to install it.
52
+ <button class="btn btn-sm" id="copyLink" type="button">Copy link</button>
 
53
  </div>
54
+ <p class="hero-meta" id="heroMeta">Free · open source</p>
55
+ <ul class="trust">
56
+ <li><span class="tick"></span>Free and open source</li>
57
+ <li><span class="tick"></span>Runs offline</li>
58
+ <li><span class="tick"></span>Commercial use allowed</li>
59
+ <li><span class="tick"></span>macOS · Windows · Linux</li>
60
+ </ul>
61
  </div>
62
+
63
+ <div class="hero-visual">
64
+ <div class="window">
65
+ <div class="win-bar"><span></span><span></span><span></span><b>Ora</b></div>
66
+ <div class="win-body">
67
+ <div class="prompt-chip"><span class="num">1</span>Glass bottle of orange juice on wet stone, droplets running down, slow push-in</div>
68
+ <div class="player">
69
+ <video src="site/assets/hero-juice.mp4" poster="site/assets/hero-juice.png" autoplay muted loop playsinline aria-label="A video made by Ora: an orange juice bottle on wet stone in warm light"></video>
70
+ <span class="badge">Made with Ora on a laptop</span>
71
+ </div>
72
+ <div class="win-tags"><span>Product ad</span><span>Cinematic</span><span>16:9</span><span>Preview · 1.3B</span></div>
73
+ <div class="win-progress"><div></div></div>
74
+ </div>
75
+ </div>
76
+ <div class="float f1"><b>5</b><span>shots per project</span></div>
77
+ <div class="float f2"><b>0</b><span>uploads, ever</span></div>
78
+ </div>
79
+ </section>
80
+
81
+ <!-- stats -->
82
+ <section class="stats" aria-label="Ora in numbers">
83
+ <div><b>720p</b><span>with the Quality model</span></div>
84
+ <div><b>2–5 s</b><span>per shot</span></div>
85
+ <div><b>1–5</b><span>shots per project</span></div>
86
+ <div><b>9:16</b><span>for reels and stories</span></div>
87
+ <div><b>$0</b><span>no credits, no plan</span></div>
88
  </section>
89
 
90
+ <!-- use cases -->
91
+ <section class="section" id="uses">
92
+ <p class="kicker">Use cases</p>
93
+ <h2>Video for every part of your marketing</h2>
94
+ <div class="uses">
95
+ <article class="use">
96
+ <span class="ico" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M6 3h12l-1 5H7zM7 8h10l-1.5 13h-7z"/></svg></span>
97
+ <h3>Product ads</h3>
98
+ <p>Hero shots, pours, spins and close-ups of your product in a clean studio or a real setting.</p>
99
+ </article>
100
+ <article class="use">
101
+ <span class="ico" aria-hidden="true"><svg viewBox="0 0 24 24"><rect x="7" y="2" width="10" height="20" rx="2"/><path d="M11 18h2"/></svg></span>
102
+ <h3>Reels and stories</h3>
103
+ <p>Portrait 9:16 clips for Instagram, TikTok and YouTube Shorts, ready to add text and music.</p>
104
+ </article>
105
+ <article class="use">
106
+ <span class="ico" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M3 7h13v10H3zM16 10l5-3v10l-5-3"/></svg></span>
107
+ <h3>B-roll and mood films</h3>
108
+ <p>Atmosphere, landscapes and textures to fill gaps in a brand film or explainer.</p>
109
+ </article>
110
+ <article class="use">
111
+ <span class="ico" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M4 4h16v12H4zM8 20h8M12 16v4"/></svg></span>
112
+ <h3>Pitches and storyboards</h3>
113
+ <p>Show a client the idea in motion before the shoot. Plan up to five shots and present the cut.</p>
114
+ </article>
115
+ </div>
116
+ </section>
117
+
118
+ <!-- how -->
119
  <section class="section" id="how">
120
+ <p class="kicker">How it works</p>
121
+ <h2>From idea to clips in three steps</h2>
122
  <div class="steps">
123
+ <div class="step"><span class="big-n">01</span><h3>Install with one line</h3><p>Paste one command in Terminal or PowerShell. Ora installs for your user and opens, with no "unidentified developer" warning on Mac.</p></div>
124
+ <div class="step"><span class="big-n">02</span><h3>Get the models once</h3><p>Ora downloads both video models and the prompt reader: about 12 GB, checked file by file, pausable. After that it works offline.</p></div>
125
+ <div class="step"><span class="big-n">03</span><h3>Write your shots, press Make</h3><p>Describe each shot, pick a style and a shape, and Ora makes them one after another. Each shot is saved as a numbered MP4.</p></div>
126
  </div>
127
  </section>
128
 
129
+ <!-- shots storyboard -->
130
+ <section class="section" id="shots">
131
+ <p class="kicker">Shots</p>
132
+ <h2>Plan a 15-second ad in five shots</h2>
133
+ <p class="lead">Each shot becomes its own clip of up to 5 seconds, saved in order in one project folder: <code>01</code>, <code>02</code>, <code>03</code>… Drop them into any video editor and add music, text and your logo.</p>
134
+ <ol class="board">
135
+ <li><span class="sn">01</span><p>Close-up of the bottle, droplets running down the glass</p><em>3 s</em></li>
136
+ <li><span class="sn">02</span><p>Juice pours into a glass in slow motion</p><em>3 s</em></li>
137
+ <li><span class="sn">03</span><p>Wide shot of the breakfast table in morning sun</p><em>3 s</em></li>
138
+ <li><span class="sn">04</span><p>Slow orbit around the full glass</p><em>3 s</em></li>
139
+ <li><span class="sn">05</span><p>Bottle alone, clean background, space for the logo</p><em>3 s</em></li>
140
+ </ol>
141
+ <div class="board-note">
142
+ <div><b>Same scene for all shots</b><span>"a glass bottle of orange juice with a white label, on dark stone"</span></div>
143
+ <div><b>Style for all shots</b><span class="tags"><i>Product ad</i><i>Golden hour</i><i>Cinematic</i></span></div>
144
+ <div><b>Saved as</b><span><code>Videos/Ora/2026-10-24 Orange juice ad/01 Close-up of the bottle.mp4</code></span></div>
145
+ </div>
146
+ </section>
147
+
148
+ <!-- models -->
149
  <section class="section" id="models">
150
+ <p class="kicker">Models</p>
151
+ <h2>Choose the right model for each job</h2>
152
+ <div class="plans">
153
+ <article class="plan">
154
+ <span class="tag t-prev">Preview</span>
155
+ <h3>Check an idea</h3>
156
+ <p class="spec">1.3B · 1 s · 512×288</p>
157
+ <ul><li>Fastest way to test a prompt</li><li>Fine on a phone screen</li><li>Fast decoder for a quick result</li></ul>
158
+ </article>
159
+ <article class="plan plan-hl">
160
+ <span class="tag t-fast">Fast</span>
161
  <h3>Wan2.1 T2V 1.3B</h3>
162
+ <p class="spec">480p · 16 fps · 2, 3 or 5 s</p>
163
+ <ul><li>Drafts, social clips, B-roll</li><li>1.5 GB model</li><li>Apache-2.0, commercial use</li></ul>
164
+ </article>
165
+ <article class="plan">
166
+ <span class="tag t-qual">Quality</span>
167
  <h3>Wan2.2 TI2V 5B</h3>
168
+ <p class="spec">720p · 24 fps · 2, 3 or 5 s</p>
169
+ <ul><li>Sharper detail, smoother motion</li><li>Best with a graphics card</li><li>Apache-2.0, commercial use</li></ul>
170
+ </article>
171
+ </div>
172
+ <p class="note">Runs on Apple graphics (Metal), NVIDIA and AMD graphics cards (Vulkan) or the processor alone, using <a href="https://github.com/leejet/stable-diffusion.cpp" rel="noopener">stable-diffusion.cpp</a>. You choose in the app.</p>
173
+ </section>
174
+
175
+ <!-- install -->
176
+ <section class="section install-wrap" id="install">
177
+ <div class="install">
178
+ <p class="kicker">Install</p>
179
+ <h2>Free. One line. Two minutes.</h2>
180
+ <div class="tabs" role="tablist" aria-label="Your system">
181
+ <button role="tab" data-os="mac" aria-selected="true">macOS</button>
182
+ <button role="tab" data-os="windows" aria-selected="false">Windows</button>
183
+ <button role="tab" data-os="linux" aria-selected="false">Linux</button>
184
+ </div>
185
+ <p class="how" id="howText">Open <b>Terminal</b>, paste this line and press Return:</p>
186
+ <div class="cmd">
187
+ <code id="cmd">curl -fsSL https://devseis-ora.static.hf.space/install.sh | bash</code>
188
+ <button class="copy" id="copyBtn" type="button" data-copy="install">Copy</button>
189
  </div>
190
+ <p class="fine">The installer downloads Ora from Hugging Face, checks its SHA-256 checksum and opens it. Ora then downloads the models once (about 12 GB).</p>
191
  </div>
 
 
192
  </section>
193
 
194
+ <!-- needs -->
195
  <section class="section" id="needs">
196
+ <p class="kicker">Your computer</p>
197
+ <h2>Faster with a graphics card</h2>
198
+ <div class="needs">
199
+ <div class="need n-good"><b>Mac with Apple Silicon</b><span>Apple graphics (Metal). Good speed; 16 GB of memory or more for Quality.</span></div>
200
+ <div class="need n-best"><b>PC with NVIDIA or AMD graphics</b><span>Vulkan. The fastest option; 8 GB of graphics memory or more is best for Quality.</span></div>
201
+ <div class="need n-slow"><b>Intel Mac or PC without graphics</b><span>Processor only. Works, but slowly: measured on a 4-core Intel i7, a 1 s Preview takes about 25 minutes. Use Preview first.</span></div>
 
 
 
 
202
  </div>
203
+ <p class="note">All computers: about <b>16 GB of memory</b> and <b>15 GB of free disk</b>; 64-bit macOS 12+, Windows 10/11 or Linux (x86_64). Ora shows the time for your computer before you start.</p>
204
  </section>
205
 
206
+ <!-- faq -->
207
  <section class="section" id="faq">
208
+ <p class="kicker">FAQ</p>
209
  <h2>Questions</h2>
210
+ <div class="faq">
211
+ <details><summary>Is anything uploaded?</summary><p>No. Prompts, frames and videos stay on your computer. Ora only connects to Hugging Face to download itself and the models.</p></details>
212
+ <details><summary>Can I use the videos in commercial work?</summary><p>Yes. The Wan models and the umT5 prompt reader are Apache-2.0, which allows commercial use. You are responsible for what you make: do not create content that is unlawful or misleading, or that uses other people's likeness, brands or rights without permission.</p></details>
213
+ <details><summary>Will it look like a TV commercial?</summary><p>Each shot is short (up to 5 seconds) and comes from open models of 1.3 and 5 billion parameters. They are great for social posts, concept films, mood films and B-roll. For a finished advert, cut several shots together in your editor and add titles, music and a voice-over.</p></details>
214
+ <details><summary>Why only 5 seconds per shot?</summary><p>Both Wan models were trained on clips of about 5 seconds; longer runs repeat or fall apart. Longer videos are built from several shots, which is also how adverts are normally made.</p></details>
215
+ <details><summary>Will the product look the same in every shot?</summary><p>Close, not identical. The shared scene and style keep the look alike, but a model working from text alone varies details such as a label or a face between shots.</p></details>
216
+ <details><summary>Where are my videos and the models?</summary><p>Videos: <b>Movies/Ora</b> (Mac) or <b>Videos/Ora</b> (Windows, Linux), one folder per project. Models: Mac <code>~/Library/Application Support/Ora</code>, Windows <code>%APPDATA%\Ora</code>, Linux <code>~/.config/Ora</code>.</p></details>
217
+ <details><summary>How do I uninstall?</summary><p>macOS and Linux: <code>curl -fsSL https://devseis-ora.static.hf.space/install.sh | bash -s -- --uninstall --purge</code> (leave out <code>--purge</code> to keep the 12 GB of models). Windows: Settings › Apps › Installed apps › Ora › Uninstall, then delete <code>%APPDATA%\Ora</code>.</p></details>
218
+ <details><summary>Is the app signed?</summary><p>Not yet with an Apple or Microsoft certificate. The one-line installer checks every download against the SHA-256 checksums published with each <a href="https://huggingface.co/datasets/Devseis/ora-releases" rel="noopener">release</a>, and the source is in this Space.</p></details>
219
+ </div>
220
+ </section>
221
+
222
+ <!-- final cta -->
223
+ <section class="final">
224
+ <h2>Your next ad starts with a sentence.</h2>
225
+ <p>Free, private and yours to keep. Install Ora in one line.</p>
226
+ <a class="btn" href="#install">Install Ora free</a>
227
  </section>
228
  </main>
229
 
230
  <footer>
231
+ <span><span class="mark sm" aria-hidden="true"></span> Ora by <a href="https://huggingface.co/Devseis" rel="noopener">Devseis</a> · Apache-2.0</span>
232
+ <span>Built on Wan (Alibaba), umT5 (Google), TAEHV and stable-diffusion.cpp · <a href="NOTICE">NOTICE</a> · <a href="https://huggingface.co/datasets/Devseis/ora-releases" rel="noopener">Releases</a></span>
233
  </footer>
234
  <div class="toast" id="toast" role="status" aria-live="polite"></div>
235
  <script src="site/site.js"></script>
site/assets/hero-juice.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c235b5f588ef0fbe138ef2378b08e9f040e77d0e88006f80f51d2da6923112c
3
+ size 354301
site/assets/hero-juice.png ADDED

Git LFS Details

  • SHA256: 54739e6c48b46d8df00e349a1a9d79af5aa463345994b1c2ec65175292392a7a
  • Pointer size: 131 Bytes
  • Size of remote file: 227 kB
site/site.css CHANGED
@@ -1,87 +1,262 @@
1
  :root {
2
- --bg: #0b0b0e;
3
- --panel: #141419;
4
- --panel-2: #1b1b22;
5
- --line: #26262f;
6
- --text: #ededf2;
7
- --muted: #9d9daa;
 
 
 
8
  --a1: #f5a524;
9
  --a2: #ff5e62;
10
  --a3: #8b5cf6;
11
- --grad: linear-gradient(110deg, var(--a1), var(--a2) 50%, var(--a3));
 
 
12
  color-scheme: dark;
13
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  * { box-sizing: border-box; }
15
  html { scroll-behavior: smooth; }
16
  body {
17
- margin: 0; background: var(--bg); color: var(--text);
18
- font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
 
 
19
  }
20
  a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--a2) 70%, transparent); text-underline-offset: 3px; }
21
- code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
22
- :focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 4px; }
23
-
24
- .nav { display: flex; align-items: center; gap: 24px; max-width: 1080px; margin: 0 auto; padding: 18px 20px; }
25
- .brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; text-decoration: none; letter-spacing: .02em; }
26
- .mark { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); box-shadow: inset 0 0 0 6px var(--bg); display: inline-block; }
27
- .nav nav { display: flex; gap: 20px; margin-left: auto; }
28
- .nav nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
 
 
 
 
 
 
 
 
29
  .nav nav a:hover { color: var(--text); }
30
 
31
- .hero { max-width: 860px; margin: 0 auto; padding: 64px 20px 40px; text-align: center; }
32
- .eyebrow { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
33
- h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 20px; }
 
 
 
 
 
 
 
 
 
 
34
  .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
35
- .sub { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 auto 36px; }
36
- .sub b { color: var(--text); font-weight: 600; }
37
-
38
- .install { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-align: left; max-width: 760px; margin: 0 auto; }
39
- .tabs { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 3px; }
40
- .tabs button { background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 14px; padding: 6px 16px; border-radius: 8px; cursor: pointer; }
41
- .tabs button[aria-selected="true"] { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px #393946; }
42
- .how { margin: 16px 0 10px; font-size: 15px; }
43
- .cmd { display: flex; align-items: stretch; background: #07070a; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
44
- .cmd code { flex: 1; padding: 14px 16px; overflow-x: auto; white-space: nowrap; font-size: 14px; }
45
- .copy { border: 0; background: var(--grad); color: #170b04; font: inherit; font-weight: 700; padding: 0 20px; cursor: pointer; }
46
- .fine { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
47
-
48
- .section { max-width: 1080px; margin: 0 auto; padding: 56px 20px 8px; }
49
- h2 { font-size: 28px; letter-spacing: -0.015em; margin: 0 0 22px; }
50
- h3 { font-size: 17px; margin: 0 0 6px; }
51
- .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
52
- .step, .card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
53
- .step p, .card p { color: var(--muted); margin: 0; font-size: 15px; }
54
- .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
55
- .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
56
- .card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
57
- .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--a1) 18%, transparent); color: var(--a1); margin-bottom: 12px; }
58
- .tag-q { background: color-mix(in srgb, var(--a3) 22%, transparent); color: #b9a2ff; }
59
- .note { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  .note b { color: var(--text); }
61
 
62
- .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
63
- table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
64
- th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
65
- th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; background: var(--panel); }
66
- tr:last-child td { border-bottom: 0; }
67
- td:first-child { font-weight: 600; }
68
- td { color: var(--muted); }
69
- td:first-child { color: var(--text); }
 
 
 
70
 
71
- details { border-bottom: 1px solid var(--line); padding: 14px 0; }
72
- summary { cursor: pointer; font-weight: 600; }
73
- details p { color: var(--muted); margin: 10px 0 0; max-width: 820px; }
 
 
 
 
 
 
 
 
74
 
75
- footer { max-width: 1080px; margin: 56px auto 0; padding: 26px 20px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 13px; }
 
 
 
 
 
 
 
 
 
 
76
 
77
- .toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--panel-2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; opacity: 0; transition: .2s; pointer-events: none; font-size: 14px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  .toast.show { opacity: 1; transform: translateX(-50%); }
79
 
80
- @media (max-width: 760px) {
 
 
 
 
 
 
 
 
 
81
  .nav nav { display: none; }
82
- .hero { padding-top: 36px; }
83
- .steps, .cards { grid-template-columns: 1fr; }
 
 
 
 
 
 
84
  .cmd { flex-direction: column; }
85
- .copy { padding: 12px; }
 
 
 
 
 
 
 
86
  }
87
- @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .toast { transition: none; } }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  :root {
2
+ /* theme tokens; data-theme on <html> picks the background family */
3
+ --bg: #07070b; --bg-rgb: 7 7 11;
4
+ --panel-rgb: 22 22 30; --panel: rgb(var(--panel-rgb) / .72); --panel-solid: #14141b;
5
+ --ink: 255 255 255;
6
+ --line: rgb(var(--ink) / .09); --line-2: rgb(var(--ink) / .16);
7
+ --text: #f1f1f6; --muted: #a3a3b3;
8
+ --cmd: #050508; --ico: #ffb08a;
9
+ --t-green: #6ee7b7; --t-amber: #fbbf5a; --t-violet: #c4b1ff; --t-red: #ff9a9c;
10
+ --glow1: .32; --glow2: .28;
11
  --a1: #f5a524;
12
  --a2: #ff5e62;
13
  --a3: #8b5cf6;
14
+ --grad: linear-gradient(110deg, var(--a1), var(--a2) 48%, var(--a3));
15
+ --ok: #34d399;
16
+ --head: "Space Grotesk", Inter, system-ui, sans-serif;
17
  color-scheme: dark;
18
  }
19
+ :root[data-theme="navy"] {
20
+ --bg: #0a1230; --bg-rgb: 10 18 48;
21
+ --panel-rgb: 19 29 66; --panel-solid: #131d42;
22
+ --muted: #a9b3d6; --cmd: #070d24;
23
+ --glow1: .30; --glow2: .34;
24
+ }
25
+ :root[data-theme="plum"] {
26
+ --bg: #1a0b24; --bg-rgb: 26 11 36;
27
+ --panel-rgb: 38 19 52; --panel-solid: #261334;
28
+ --muted: #c3aecf; --cmd: #12071a;
29
+ --glow1: .34; --glow2: .30;
30
+ }
31
+ :root[data-theme="light"] {
32
+ --bg: #fbf7f2; --bg-rgb: 251 247 242;
33
+ --panel-rgb: 255 255 255; --panel: rgb(255 255 255 / .82); --panel-solid: #ffffff;
34
+ --ink: 40 24 60;
35
+ --text: #1c1530; --muted: #5d566e;
36
+ --cmd: #1c1530; --ico: #e8533f;
37
+ --t-green: #0f8a5f; --t-amber: #a85f00; --t-violet: #6a3fd6; --t-red: #c62f35;
38
+ --glow1: .20; --glow2: .16;
39
+ color-scheme: light;
40
+ }
41
  * { box-sizing: border-box; }
42
  html { scroll-behavior: smooth; }
43
  body {
44
+ margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
45
+ font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
46
+ background-image: radial-gradient(rgb(var(--ink) / .045) 1px, transparent 1px);
47
+ background-size: 28px 28px;
48
  }
49
  a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--a2) 70%, transparent); text-underline-offset: 3px; }
50
+ code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: rgb(var(--ink) / .06); padding: 1px 6px; border-radius: 6px; }
51
+ :focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 6px; }
52
+ h1, h2, h3 { font-family: var(--head); letter-spacing: -0.02em; }
53
+
54
+ .glow { position: absolute; z-index: -1; filter: blur(110px); opacity: .5; border-radius: 50%; pointer-events: none; }
55
+ .g1 { width: 620px; height: 620px; background: #ff5e62; top: -220px; right: -120px; opacity: var(--glow1); }
56
+ .g2 { width: 560px; height: 560px; background: #8b5cf6; top: 380px; left: -260px; opacity: var(--glow2); }
57
+
58
+ /* nav */
59
+ .nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; margin: 0; padding: 14px max(24px, calc((100% - 1132px) / 2));
60
+ backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgb(var(--bg-rgb) / .62); border-bottom: 1px solid transparent; }
61
+ .brand { display: flex; align-items: center; gap: 10px; font: 700 21px var(--head); text-decoration: none; letter-spacing: .01em; }
62
+ .mark { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); box-shadow: inset 0 0 0 6.5px var(--bg); display: inline-block; flex: none; }
63
+ .mark.sm { width: 16px; height: 16px; box-shadow: inset 0 0 0 4px var(--bg); vertical-align: -3px; }
64
+ .nav nav { display: flex; gap: 22px; margin-left: auto; }
65
+ .nav nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
66
  .nav nav a:hover { color: var(--text); }
67
 
68
+ /* buttons */
69
+ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 12px; font-weight: 700; text-decoration: none;
70
+ color: #170b04; background: var(--grad); box-shadow: 0 10px 30px -10px rgba(255, 94, 98, .65); transition: transform .15s, box-shadow .15s; border: 0; }
71
+ .btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(255, 94, 98, .8); }
72
+ .btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
73
+ .btn-ghost { background: rgb(var(--ink) / .06); color: var(--text); box-shadow: none; border: 1px solid var(--line-2); }
74
+ .btn-ghost:hover { background: rgb(var(--ink) / .1); box-shadow: none; }
75
+
76
+ /* hero */
77
+ .hero { max-width: 1180px; margin: 0 auto; padding: 72px 24px 64px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
78
+ .pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; border: 1px solid var(--line-2); background: rgb(var(--ink) / .04); padding: 6px 14px; border-radius: 999px; }
79
+ .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
80
+ h1 { font-size: clamp(42px, 6.2vw, 74px); line-height: 1.02; margin: 22px 0 20px; font-weight: 700; }
81
  .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
82
+ .sub { color: var(--muted); font-size: 19px; max-width: 560px; margin: 0 0 30px; }
83
+ .cta { display: flex; gap: 12px; flex-wrap: wrap; }
84
+ .trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--muted); }
85
+ .trust li { display: flex; align-items: center; gap: 8px; }
86
+ .tick { width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 22%, transparent); position: relative; flex: none; }
87
+ .tick::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
88
+
89
+ .hero-visual { position: relative; }
90
+ .window { --ink: 255 255 255; --text: #f1f1f6; --muted: #a3a3b3; --line: rgb(255 255 255 / .09); --line-2: rgb(255 255 255 / .16); --panel-solid: #14141b; color: var(--text);
91
+ background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgb(var(--ink) / .02); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
92
+ .win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
93
+ .win-bar span { width: 11px; height: 11px; border-radius: 50%; background: #34343f; }
94
+ .win-bar span:nth-child(1) { background: #ff5f57; } .win-bar span:nth-child(2) { background: #febc2e; } .win-bar span:nth-child(3) { background: #28c840; }
95
+ .win-bar b { margin-left: 8px; font-weight: 600; }
96
+ .win-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
97
+ .prompt-chip { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; background: rgb(var(--ink) / .04); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); }
98
+ .prompt-chip .num { flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgb(var(--ink) / .08); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
99
+ .player { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
100
+ .player video { width: 100%; height: 100%; object-fit: cover; display: block; }
101
+ .badge { position: absolute; left: 10px; bottom: 10px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); padding: 4px 9px; border-radius: 999px; border: 1px solid rgb(var(--ink) / .15); }
102
+ .win-tags { display: flex; gap: 6px; flex-wrap: wrap; }
103
+ .win-tags span { font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
104
+ .win-progress { height: 5px; border-radius: 5px; background: rgb(var(--ink) / .06); overflow: hidden; }
105
+ .win-progress div { height: 100%; width: 100%; background: var(--grad); transform-origin: left; animation: fill 6s ease-in-out infinite; }
106
+ @keyframes fill { 0% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }
107
+ .float { position: absolute; background: rgb(var(--panel-rgb) / .88); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 14px; display: flex; align-items: baseline; gap: 8px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
108
+ .float b { font: 700 24px var(--head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
109
+ .float span { font-size: 12.5px; color: var(--muted); }
110
+ .f1 { left: 28px; bottom: -26px; }
111
+ .f2 { right: 28px; top: -26px; }
112
+
113
+ /* stats */
114
+ .stats { max-width: 1180px; margin: 30px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
115
+ .stats div { padding: 20px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
116
+ .stats div + div { border-left: 1px solid var(--line); }
117
+ .stats b { font: 700 28px var(--head); }
118
+ .stats span { color: var(--muted); font-size: 13.5px; }
119
+
120
+ /* sections */
121
+ .section { max-width: 1180px; margin: 0 auto; padding: 96px 24px 0; }
122
+ .kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
123
+ h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 28px; font-weight: 700; }
124
+ h3 { font-size: 19px; margin: 0 0 8px; }
125
+ .lead { color: var(--muted); font-size: 17px; max-width: 760px; margin: -12px 0 28px; }
126
+ .note { color: var(--muted); font-size: 14.5px; margin: 20px 0 0; }
127
  .note b { color: var(--text); }
128
 
129
+ .uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
130
+ .use { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: border-color .2s, transform .2s; }
131
+ .use:hover { border-color: var(--line-2); transform: translateY(-3px); }
132
+ .use p { color: var(--muted); margin: 0; font-size: 15px; }
133
+ .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, rgba(245,165,36,.18), rgba(139,92,246,.18)); border: 1px solid var(--line-2); }
134
+ .ico svg { width: 22px; height: 22px; fill: none; stroke: var(--ico); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
135
+
136
+ .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
137
+ .step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px 24px; overflow: hidden; }
138
+ .step p { color: var(--muted); margin: 0; font-size: 15px; }
139
+ .big-n { display: block; font: 700 54px/1 var(--head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; opacity: .95; }
140
 
141
+ .board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: s; }
142
+ .board li { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 44px; min-height: 170px; }
143
+ .board li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 16px 16px 0 0; background: var(--grad); opacity: .85; }
144
+ .board .sn { font: 700 13px var(--head); color: var(--muted); letter-spacing: .08em; }
145
+ .board p { margin: 8px 0 0; font-size: 14.5px; }
146
+ .board em { position: absolute; left: 16px; bottom: 14px; font-style: normal; font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); padding: 2px 8px; border-radius: 999px; }
147
+ .board-note { margin-top: 14px; display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 12px; }
148
+ .board-note div { background: rgb(var(--ink) / .03); border: 1px dashed var(--line-2); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
149
+ .board-note span { color: var(--muted); }
150
+ .board-note .tags { display: flex; gap: 6px; flex-wrap: wrap; }
151
+ .board-note i { font-style: normal; font-size: 12px; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px; color: var(--text); }
152
 
153
+ .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
154
+ .plan { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
155
+ .plan-hl { border-color: transparent; background: linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: 0 30px 60px -30px rgba(255,94,98,.45); }
156
+ .plan .spec { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
157
+ .plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
158
+ .plan li { padding-left: 24px; position: relative; }
159
+ .plan li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 25%, transparent); }
160
+ .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; margin-bottom: 14px; }
161
+ .t-prev { background: rgba(52,211,153,.14); color: var(--t-green); }
162
+ .t-fast { background: rgba(245,165,36,.16); color: var(--t-amber); }
163
+ .t-qual { background: rgba(139,92,246,.2); color: var(--t-violet); }
164
 
165
+ .install-wrap { padding-top: 96px; }
166
+ .install { position: relative; text-align: center; padding: 48px 32px; border-radius: 26px; overflow: hidden;
167
+ background: radial-gradient(120% 140% at 50% 0%, rgba(255,94,98,.16), rgba(139,92,246,.10) 45%, rgb(var(--panel-rgb) / .92) 75%); border: 1px solid var(--line-2); }
168
+ .install h2 { margin-bottom: 22px; }
169
+ .tabs { display: inline-flex; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); border-radius: 12px; padding: 4px; gap: 4px; }
170
+ .tabs button { background: transparent; border: 0; color: var(--muted); font: 600 14px Inter, sans-serif; padding: 8px 18px; border-radius: 9px; cursor: pointer; }
171
+ .tabs button[aria-selected="true"] { background: rgb(var(--ink) / .1); color: var(--text); }
172
+ .how { margin: 18px 0 12px; font-size: 15px; }
173
+ .cmd { display: flex; max-width: 720px; margin: 0 auto; background: var(--cmd); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; text-align: left; }
174
+ .cmd code { flex: 1; color: #f1f1f6; background: none; padding: 16px 18px; overflow-x: auto; white-space: nowrap; font-size: 14.5px; border-radius: 0; }
175
+ .copy { border: 0; background: var(--grad); color: #170b04; font: 700 15px Inter, sans-serif; padding: 0 26px; cursor: pointer; }
176
+ .fine { color: var(--muted); font-size: 13.5px; margin: 14px auto 0; max-width: 620px; }
177
+
178
+ .needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
179
+ .need { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; padding-top: 52px; display: flex; flex-direction: column; gap: 8px; position: relative; }
180
+ .need span { color: var(--muted); font-size: 14.5px; }
181
+ .need::after { position: absolute; top: 18px; left: 22px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
182
+ .n-best::after { content: "Fastest"; background: rgba(52,211,153,.14); color: var(--t-green); }
183
+ .n-good::after { content: "Good"; background: rgba(245,165,36,.16); color: var(--t-amber); }
184
+ .n-slow::after { content: "Slow"; background: rgba(255,94,98,.14); color: var(--t-red); }
185
+
186
+ .faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
187
+ details { border-bottom: 1px solid var(--line); padding: 18px 0; }
188
+ summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
189
+ summary::-webkit-details-marker { display: none; }
190
+ summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
191
+ details[open] summary::after { content: "–"; }
192
+ details p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
193
+
194
+ .final { max-width: 1180px; margin: 110px auto 0; padding: 70px 24px; text-align: center; border-radius: 28px;
195
+ background: radial-gradient(80% 120% at 50% 100%, rgba(255,94,98,.22), rgba(139,92,246,.12) 50%, transparent 80%); }
196
+ .final h2 { margin-bottom: 12px; }
197
+ .final p { color: var(--muted); font-size: 18px; margin: 0 0 26px; }
198
+
199
+ footer { max-width: 1180px; margin: 60px auto 0; padding: 26px 24px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 13.5px; }
200
+
201
+ .toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--panel-solid); border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 10px; opacity: 0; transition: .2s; pointer-events: none; font-size: 14px; }
202
  .toast.show { opacity: 1; transform: translateX(-50%); }
203
 
204
+ @media (max-width: 1020px) {
205
+ .hero { grid-template-columns: 1fr; padding-top: 44px; }
206
+ .window { transform: none; }
207
+ .uses { grid-template-columns: 1fr 1fr; }
208
+ .board { grid-template-columns: repeat(2, 1fr); }
209
+ .board-note, .plans, .needs, .steps { grid-template-columns: 1fr; }
210
+ .stats { grid-template-columns: repeat(3, 1fr); }
211
+ .stats div:nth-child(4) { border-left: 0; }
212
+ }
213
+ @media (max-width: 640px) {
214
  .nav nav { display: none; }
215
+ .nav .btn-sm { margin-left: auto; }
216
+ .nav { padding: 12px 16px; }
217
+ .hero, .section, .stats { padding-left: 16px; padding-right: 16px; }
218
+ .sub { font-size: 17px; }
219
+ .uses, .board, .faq { grid-template-columns: 1fr; }
220
+ .stats { grid-template-columns: 1fr 1fr; }
221
+ .stats div { border-left: 0 !important; }
222
+ .f1 { left: 12px; bottom: -24px; } .f2 { right: 12px; top: -24px; }
223
  .cmd { flex-direction: column; }
224
+ .copy { padding: 13px; }
225
+ .install { padding: 34px 18px; }
226
+ .final { margin-left: 16px; margin-right: 16px; }
227
+ }
228
+ @media (prefers-reduced-motion: reduce) {
229
+ html { scroll-behavior: auto; }
230
+ .win-progress div { animation: none; }
231
+ .btn, .use { transition: none; }
232
  }
233
+
234
+ /* light theme tweaks */
235
+ :root[data-theme="light"] .window, :root[data-theme="light"] .float { box-shadow: 0 30px 70px -30px rgba(60, 30, 80, .45); }
236
+ :root[data-theme="light"] .float { --text: #1c1530; }
237
+ :root[data-theme="light"] .use, :root[data-theme="light"] .step, :root[data-theme="light"] .plan, :root[data-theme="light"] .need, :root[data-theme="light"] .board li { box-shadow: 0 10px 30px -20px rgba(60, 30, 80, .25); }
238
+ :root[data-theme="light"] .install { background: radial-gradient(120% 140% at 50% 0%, rgba(255,94,98,.16), rgba(139,92,246,.10) 45%, #fff 80%); }
239
+ :root[data-theme="light"] .plan-hl { box-shadow: 0 30px 60px -30px rgba(255,94,98,.4); }
240
+ :root[data-theme="light"] .tabs { background: rgb(var(--ink) / .06); }
241
+ :root[data-theme="light"] .tabs button[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 2px 8px -2px rgba(60, 30, 80, .25); }
242
+
243
+ /* hero install: detected system + its command (like Arx) */
244
+ .hero-install { background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 16px 16px 12px; max-width: 600px; box-shadow: 0 20px 50px -30px rgba(60, 30, 80, .45); }
245
+ .device { display: flex; align-items: center; gap: 10px; font-size: 14px; }
246
+ .dev-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(245,165,36,.22), rgba(139,92,246,.22)); font-size: 15px; flex: none; }
247
+ .dev-ico:empty { display: none; }
248
+ .dev-label { color: var(--muted); }
249
+ .hero-where { margin: 10px 0 8px; font-size: 14px; }
250
+ .cmd-hero { max-width: none; margin: 0; }
251
+ .cmd-hero code { font-size: 13.5px; padding: 14px 16px; }
252
+ .hero-other { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
253
+ .os-link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(var(--ink) / .25); }
254
+ .os-link:hover, .os-link[aria-current="true"] { color: var(--text); }
255
+ .os-link[aria-current="true"] { font-weight: 600; text-decoration: none; }
256
+ .hero-other a { color: var(--muted); }
257
+ .phone-note { background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px; max-width: 560px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
258
+ .phone-note b { color: var(--text); }
259
+ .hero-meta { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
260
+ @media (max-width: 640px) { .cmd-hero { flex-direction: column; } }
261
+
262
+ [hidden] { display: none !important; }
site/site.js CHANGED
@@ -1,26 +1,41 @@
1
- // Ora website: pick the install command for the visitor's system and copy it with one click.
 
2
  const $ = id => document.getElementById(id);
3
  const HOST = 'https://devseis-ora.static.hf.space';
 
4
  const OS = {
5
- mac: { cmd: `curl -fsSL ${HOST}/install.sh | bash`, how: 'Open <b>Terminal</b> (Applications › Utilities), paste this line and press Return:' },
6
- windows: { cmd: `irm ${HOST}/install.ps1 | iex`, how: 'Open <b>PowerShell</b> (Start menu › type PowerShell), paste this line and press Enter:' },
7
- linux: { cmd: `curl -fsSL ${HOST}/install.sh | bash`, how: 'Open a <b>terminal</b>, paste this line and press Enter (Debian/Ubuntu asks for your password to install the package):' },
8
  };
 
9
  let current = 'mac';
10
 
11
- function detect() {
 
12
  const ua = navigator.userAgent;
13
- const p = (navigator.userAgentData && navigator.userAgentData.platform) || navigator.platform || '';
14
- if (/Win/i.test(p) || /Windows/.test(ua)) return 'windows';
15
- if (/Linux|X11/.test(p + ua) && !/Android/.test(ua)) return 'linux';
16
- return 'mac';
 
 
 
 
 
 
 
 
17
  }
18
 
19
  function select(os) {
20
  current = os;
21
  for (const b of document.querySelectorAll('.tabs button')) b.setAttribute('aria-selected', String(b.dataset.os === os));
 
22
  $('cmd').textContent = OS[os].cmd;
23
  $('howText').innerHTML = OS[os].how;
 
 
24
  }
25
 
26
  function toast(text) {
@@ -29,9 +44,31 @@ function toast(text) {
29
  clearTimeout(toast.timer); toast.timer = setTimeout(() => t.classList.remove('show'), 2200);
30
  }
31
 
32
- document.querySelector('.tabs').addEventListener('click', e => { const b = e.target.closest('button[data-os]'); if (b) select(b.dataset.os); });
33
- $('copyBtn').addEventListener('click', async () => {
34
- try { await navigator.clipboard.writeText(OS[current].cmd); $('copyBtn').textContent = 'Copied'; setTimeout(() => { $('copyBtn').textContent = 'Copy'; }, 1800); }
 
 
 
35
  catch { toast('Select the command and copy it'); }
36
  });
37
- select(detect());
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Ora website: detect the visitor's computer, show its one-line install command in the hero and the Install
2
+ // section, copy it with one click, and show the current version from the releases repo.
3
  const $ = id => document.getElementById(id);
4
  const HOST = 'https://devseis-ora.static.hf.space';
5
+ const RELEASES = 'https://huggingface.co/datasets/Devseis/ora-releases/resolve/main';
6
  const OS = {
7
+ mac: { label: 'macOS', cmd: `curl -fsSL ${HOST}/install.sh | bash`, how: 'Open <b>Terminal</b> (Applications › Utilities), paste this line and press Return:' },
8
+ windows: { label: 'Windows', cmd: `irm ${HOST}/install.ps1 | iex`, how: 'Open <b>PowerShell</b> (Start menu › type PowerShell), paste this line and press Enter:' },
9
+ linux: { label: 'Linux', cmd: `curl -fsSL ${HOST}/install.sh | bash`, how: 'Open a <b>terminal</b>, paste this line and press Enter (Ubuntu/Debian asks for your password):' },
10
  };
11
+ const ICON = { mac: '', windows: '⊞', linux: '🐧', phone: '📱' };
12
  let current = 'mac';
13
 
14
+ // Computers only. iPadOS reports itself as a Mac, so a touch screen on "Mac" counts as a tablet.
15
+ async function detect() {
16
  const ua = navigator.userAgent;
17
+ const phone = /iPhone|iPod|Android|Mobile/.test(ua) || (/Macintosh/.test(ua) && navigator.maxTouchPoints > 1) || /iPad/.test(ua);
18
+ const os = /Windows/.test(ua) ? 'windows' : (/Linux|X11|CrOS/.test(ua) && !/Android/.test(ua)) ? 'linux' : 'mac';
19
+ let version = '', arch = '';
20
+ try {
21
+ const hi = await Promise.race([navigator.userAgentData?.getHighEntropyValues(['platformVersion', 'architecture']), new Promise(r => setTimeout(() => r(null), 1200))]);
22
+ if (hi) {
23
+ if (os === 'windows' && hi.platformVersion) version = parseInt(hi.platformVersion, 10) >= 13 ? '11' : '10';
24
+ if (os === 'mac' && hi.platformVersion) version = hi.platformVersion.split('.')[0];
25
+ if (hi.architecture) arch = hi.architecture === 'arm' ? (os === 'mac' ? 'Apple chip' : 'ARM') : (os === 'mac' ? 'Intel' : '64-bit');
26
+ }
27
+ } catch { /* hints refused */ }
28
+ return { phone, os, version, arch };
29
  }
30
 
31
  function select(os) {
32
  current = os;
33
  for (const b of document.querySelectorAll('.tabs button')) b.setAttribute('aria-selected', String(b.dataset.os === os));
34
+ for (const b of document.querySelectorAll('.os-link')) b.setAttribute('aria-current', String(b.dataset.os === os));
35
  $('cmd').textContent = OS[os].cmd;
36
  $('howText').innerHTML = OS[os].how;
37
+ $('heroCmd').textContent = OS[os].cmd;
38
+ $('heroWhere').innerHTML = OS[os].how;
39
  }
40
 
41
  function toast(text) {
 
44
  clearTimeout(toast.timer); toast.timer = setTimeout(() => t.classList.remove('show'), 2200);
45
  }
46
 
47
+ document.addEventListener('click', async e => {
48
+ const tab = e.target.closest('.tabs button[data-os], .os-link');
49
+ if (tab) { select(tab.dataset.os); if (tab.classList.contains('os-link')) $('devName').textContent = `${OS[tab.dataset.os].label} (chosen)`; return; }
50
+ const b = e.target.closest('[data-copy]');
51
+ if (!b) return;
52
+ try { await navigator.clipboard.writeText(OS[current].cmd); b.textContent = 'Copied ✓'; setTimeout(() => { b.textContent = 'Copy'; }, 1800); }
53
  catch { toast('Select the command and copy it'); }
54
  });
55
+ $('copyLink').addEventListener('click', async () => {
56
+ try { await navigator.clipboard.writeText(location.origin + location.pathname); toast('Link copied: open it on your computer'); }
57
+ catch { toast(location.origin + location.pathname); }
58
+ });
59
+
60
+ (async () => {
61
+ const d = await detect();
62
+ select(d.os);
63
+ if (d.phone) {
64
+ $('phoneNote').hidden = false;
65
+ $('heroInstall').hidden = true;
66
+ } else {
67
+ $('devIco').textContent = ICON[d.os];
68
+ $('devName').textContent = [OS[d.os].label + (d.version ? ` ${d.version}` : ''), d.arch].filter(Boolean).join(' · ');
69
+ }
70
+ try {
71
+ const v = (await (await fetch(`${RELEASES}/latest.json`, { cache: 'no-store' })).json()).version;
72
+ if (v) $('heroMeta').textContent = `Free · open source · version ${v}`;
73
+ } catch { /* offline or blocked: keep the plain line */ }
74
+ })();