Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ anchor: '@file'
created: 2026-10-13T17:41:10Z
norm: '1'
sig: 4b03c8eb05d682d4
body_hash: adbd543604639735
raw_hash: e46f8fb89f55f772
vouched: 2026-10-15T14:10:43Z
body_hash: c6a92431f39aeeb2
raw_hash: ab581bbaf4052fed
vouched: 2026-10-20T18:47:51Z
lines: 1-39
---

Expand Down
6 changes: 4 additions & 2 deletions apps/host/src/helper.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Console } from "node:console";
import { createWriteStream, mkdirSync } from "node:fs";
import { createWriteStream, existsSync, mkdirSync } from "node:fs";
import { basename, dirname, join } from "node:path";

import { adoptLoginShell } from "./environment";
Expand Down Expand Up @@ -37,7 +37,9 @@ if (cli) {
console.log(`${new Date().toISOString()} Ace Helper starting`);
try {
const { serve } = await import("./gateway");
await serve(config.port);
// The installed app takes no flags, so a demo script in its home stands in for --demo.
const demo = join(config.home, "demo.json");
await serve(config.port, false, existsSync(demo) ? demo : undefined);
} catch (error) {
console.error(error);
log.end(() => process.exit(1));
Expand Down
3 changes: 3 additions & 0 deletions docs/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ channel requests, which each channel admits by its own rules: an ask needs the c
access on, as a real teammate's would. Only their identities are made up, and only in the owner's
own app; the directory, lobbies and peers never see them.

The installed app runs demo mode when its home holds `demo.json`, such as
`~/.local/state/ace-canary/demo.json` for Canary; restart Ace after adding or removing it.

Seed the channels first with `ace import` (see [channel data](data.md#seeds)).

```json
Expand Down