> SOMA
A centralized short-video manager: one video, one caption, one action, published to the connected platforms.
Objectives
- Publish short videos and captions to connected platforms from one place, and keep a library of post metadata and the last gross figures.
- Check live stats on demand, inside a per-provider request budget.
- Keep a still-picture collection with copy, tags and visibility for the public site.
Qualities
- Metadata only. Video bytes go from the device to a staging bucket, through the media relay, to the platform; the origin never stores the bytes.
- The relay is the only holder of the GCS service-account key.
- One app-specific grant per platform, separate from the base identity. YouTube is first; Meta is next.
-
Identity is borrowed from
adm: a one-time code over loopback, with no password and no login codes of its own. - Drops React, Vite, bundling, the SPA and the public Cloud Run front door from its predecessor.
Technical details
A small Go origin behind the gatekeeper, with the same one-file data model and trust ladder as the base site.
-
The origin binds loopback
127.0.0.1:8082; the gatekeeper owns TLS and the public socket. - A staging bucket has a one-day delete lifecycle; still pictures go to a permanent media bucket.
-
Everything durable lives in
/var/lib/soma-state/state.json, rewritten atomically and mode0600: users mirrored fromadm, hashed sessions, sealed provider tokens, posts and targets, pictures, and the per-provider quota ledger. -
Long-lived refresh tokens stay sealed with
SOMA_TOKEN_KEY; the relay receives a short-lived token for one job.