Reference
Publishing to the gallery
The gallery at
/apps/asmi/gallery is an
opt-in public showcase. Publishing goes through
src/components/asmi/ShareDialog.tsx →
POST /api/asmi/gallery and requires:
- Expression completeness (every named expression has a generated image).
- A captured happy-path narrative (see the Narrative panel in the editor).
- Title + description (description can be AI-drafted).
- An SPDX license (defaults MIT).
- Thumbnail expression (picks the "face of the share").
- Optional publisher branding — name, URL (auto-normalized to
https://), description, logo. derivedFromShareIdmust be null — cloned avatars cannot be re-shared to prevent laundering.
Publishing produces a share slug, a 1200×630 OG image, a public detail page with a chat replay of the recorded narrative, and a clone button other visitors can use to start their own avatar from yours.