Skip to content

Web app and API ​

clips-web serves a mobile-first app (Nuxt 4 with Nuxt UI, in web/) and the JSON API it uses, behind the same Basic auth and same-origin check on writes. On a phone it has a bottom tab bar (Today, Posts, Queue, Streamers, More); on a wide screen a sidebar. Clip pages keep their decision buttons at the bottom of the screen, swipe left or right for the next or previous clip, and take keys on a keyboard (A approve, R reject, S save, J next, K previous; U "not sure" on the pilot's clip review). Dark by default, with a light mode.

PageWhat
/Today: system health, recording, posting stats, seven-day post performance, and warnings
/settingsConnections, first setup, master and stage automation controls, posting goal, publishing, and caption preferences
/postsGetting clips posted: the day's shortlist to review, held-back drafts and every other status; filter by streamer, sort by score, chat spike, chatters, model rating, newest or shortest
/p/<clip>Player, why the clip was made, caption options (picking one fills the caption), edit caption and hashtags, good and bad tags, approve, reject, redraft with a note, mark posted, Done
/queueApproved posts not yet Done, with the full post text, copy, share, download and Done (one or ticked)
/resultsHow posted clips did: per platform, what kinds of clips do well, best and worst, what still needs its numbers
/streamersThe watch list: Add (checks the Twitch account, pick categories), each streamer's categories, Remove (shows what gets deleted first). Who records, who waits for a slot; per streamer Auto, Priority or Off, "Record instead of" a recording streamer, "Stop for this stream", and the taste effect. Each category's name in captions and hashtag
/statusActionable service health, recording channels, chat spikes, disk, and filtered recent events
/review, /c/<clip>The old review landing page redirects to Posts; historical candidate details remain available
/eval, /e/<window>The old audit landing page redirects to Status; historical window details remain available
/reportsPilot reports
/classic/...The older server-rendered pages (same paths under /classic), kept for a while

The API (JSON; writes are POST with a JSON object body):

EndpointWhat
GET /api/today, GET /api/statusHome screen and status
POST /api/automationBoolean master enabled and individual recording, processing, drafting, publishing, discovery controls. Partial updates preserve the other switches.
GET /api/settings, POST /api/settingsSettings; {"action":"goal","enabled":true,"min":2,"max":4,"autopick":true} saves the optional daily target.
GET /api/posts, GET /api/posts/<clip>, GET /api/feedbackPosts list (status, channel, sort, offset, limit), one clip with its place in the list, caption feedback
POST /api/posts/<clip>{"action": "approve" | "reject" | "save" | "unplan" | "done" | "regen" | "feedback" | "draft_now" | "posted" | "stats" | "ig_publish", ...}; with filters the reply names the next clip
POST /api/posts/<clip>/stats, POST /api/posts/<clip>/stats/read{"action": "save", "entries": [{"platform", "views", "likes", ..., "posted_day", "read_id"}]} or {"action": "delete", "id"}; a screenshot as {"image": "data:image/jpeg;base64,..."} for the caption model to read (the clip page polls GET /api/posts/<clip>)
GET /api/results?days=7|30|all&platform=The Results page
GET /api/queue, POST /api/queue/doneThe posting plan; Done for several clips ({"ids": [...]})
GET /api/streamers, POST /api/streamersStreamer rows, streamers being removed, categories in use; {"action": "mode" | "swap" | "skip" | "record_now" | "clear" | "measure" | "add" | "remove" | "categories", "login": ..., "categories": [{"id": ...}]}
GET /api/streamers/<login>/removalWhat removing them deletes (clips, open posts, GB)
GET /api/twitch/user?login=, GET /api/twitch/categories?q=Account check and category search on Twitch, for adding a streamer
POST /api/categories/<id>{"short", "tag"}: a category's name in captions and its hashtag
GET /api/review, GET /api/candidates/<clip>, POST /api/candidates/<clip>/review, POST /api/candidates/<clip>/storyPilot review and ratings
GET /api/eval, GET /api/eval/<window>, POST /api/eval/<window>/reviewMissed-moment check
GET /api/reportsReport files

The app is built on the machine that deploys (deploy/deploy.sh runs pnpm install and pnpm generate in web/) and ships as static files in the release's webui/, so the service host needs no Node. Fonts and icons are bundled at build time; the app loads nothing from outside. Without a webui/ folder (a Python-only checkout) / shows the classic pages.

Operational configuration ​

GET /api/settings includes server: editable field groups, current and baseline values, and a revision. POST /api/settings accepts action: "server_preview" to validate a proposed changes object without writing, or action: "server_save" to apply it. Include the current revision with either action. Keys use dotted names such as capture.max_recordings; a null value removes that override.

Unknown or host-managed keys and invalid values return 400 with field errors. Concurrent changes return 409. Reductions that can stop recordings or delete media require acknowledge: true after review. Saves update existing SQLite metadata and record the old/new overrides as an event, without a schema migration or TOML write. Request and job snapshots use the saved values; in-flight work retains its snapshot.