Statistics
- Per day and per stream statistics (src/periodstats.js, one generic stat_day table), backfilled
once from the older tables; Stream / Week / Month / Year / All time views, Community and Streams tabs.
- Viewer count every 5 minutes and title / category history per stream (EventSub channel.update):
viewer graph, games played (donut), games in the streams list.
- Twitch sync (src/twitchsync.js): followers with follow dates, current subs, mods, VIPs, all-time
bits, channel emotes, past streams from VODs. Twitch analytics CSV import (src/twitchcsv.js).
- Public stats page on its own host (Settings -> Stats and data): no message text, no bots,
!hideme / !showme opt-out. Viewer page: roles, follow age, sub status, bits, a menu for rarely used actions.
- StreamElements watch-time importer removed (already imported minutes stay as a baseline).
Dashboard
- Settings and Actions with a left sidebar; each settings page saves only its own fields.
Connections (Twitch, StreamElements token now set here, HUDFX), OBS links (hidden behind an eye
toggle) with a link builder, Chat (sound picked from the media library), TTS, Stats and data,
Backup (export / import the whole setup), Advanced. Time zone setting for the stats pages.
- Actions -> Alerts: alert style, pictures, sounds, bits tiers and card colours, stored in the
database (src/theme.js); an old file-based theme is imported once. Alert preview page
(/actions/alerts/preview, tools/preview/export.js for a static copy).
- Old /actions page removed; Actions = Redeems / Alerts / TTS voices / Media.
Alerts
- New plain Card style for everyone (public/alerts/card.js); Polaroid, Cassette and the TTS letter
stay as optional looks. Redeem variations can be Card, Cassette, Sound only or Video.
Repo
- No channel data in git: the channel's art, stickers and sounds stay on disk (gitignored) and are
picked in the dashboard; examples for the server config (apache.example.sh, .env.example).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Custom Power-ups (bits) are redeem triggers: channel.custom_power_up_redemption.add
-> redeems.handle('custom_power_up', ...) with the bits amount; listed live from
Helix /bits/custom_power_ups on the Redeems page; labels/replay in Recent activity.
- Variations can show a video (reward_variations.video): style 'video' plays only on
the opt-in ?parts=video overlay (public/alerts/video.js), full-screen, one at a time,
with a yellow camcorder box ("TRIGGERED <name>", viewer, bits, POWER-UP) in the alert
corner. Any source size; 2560x1440 like HUDFX gives sharper video.
- Redeems page rewritten as one editor: Display (Cassette / Sound only / Video),
volume slider, sticker thumbnails, live % chances, one Save button + Ctrl+S
(POST /redeems/save), tests/add/delete save first, unsaved edits kept as a browser
draft with an inline restore bar (no dialogs).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Dashboard Recent activity: readable details (reward name, cost, variation,
rarity, TTS, viewer message; sub tier/months; bits; raids; polls), local
times, and a Replay button. Each row now stores the overlay message that was
shown (activity_log.replay_json); older redeem/raid rows are rebuilt from the
raw Twitch event.
- Fix: redeem alerts lost polaroid/art/emote since 4fda606 (they had ended up
inside a comment), so sticker art, Power-up emotes and sound-only were gone.
- HUDFX embedded in the overlay with ?ext=hudfx (opt-in per OBS source): its
page is served from our domain with the camcorder CSS, its settings API is
forwarded, its Web Worker is started from a same-origin stand-in (the alert
box needs it; blob: workers break the site CSP), and the box sits in the
alert corner. The HUDFX URL is a field on the Settings page.
- Blerp cassette CSS kept with it (src/ext/blerp.css, pasted into the Blerp
OBS source; Blerp itself cannot be embedded: its realtime server only
accepts its own site).
- On-screen chat: Settings -> Hidden chatters and Hide ! commands.
- Outgoing raids are logged with a line in the server log.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OBS kept running the old alert scripts after a deploy, so TTS redeems fell
back to the cassette with no voice. The server now sends a boot ID on every
WebSocket connect; an overlay built with a different ID reloads itself.
Asset URLs carry ?v=<boot ID> so the reload never uses cached files.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Redeem variations can have a TTS voice: the viewer's text is cleaned
(links out, repeats collapsed, max length, blocked words -> not read),
spoken as "<name> says: ..." and shown as the big paper note; the
variation's sound is not played when TTS is on (picker greyed out)
- Settings: TTS max length, say-the-name, blocked words (never sent to
overlay pages: db.getOverlaySettings)
- Dashboard "Skip current alert" -> /alerts/skip -> overlay skips it
- db.migrate()/addColumn: new columns on existing databases
- Chat: ?chat=left,top,width,height and ?chatflow=up per browser source
(e.g. the Intermission panel); default unchanged
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- public/chat/chat.css + chat.js (window.HSChat): cream paper slips with the
name on a washi-tape label, newest on top sliding out from under the webcam,
older ones glide down and fade at the bottom; message_timeout / max_messages
- Emotes: Twitch (tags.emotes) and 7TV global + channel sets (refreshed every
10 min), zero-width 7TV emotes stack, emote-only messages get bigger emotes
- Deleted messages, timeouts, bans and /clear remove slips at once
- overlay.ejs: old chat CSS/JS removed, new files load only for ?parts=chat
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Twitch / server
- bits via channel.bits.use (cheers + Power-ups, replaces channel.cheer); built-in
channel point rewards; polls; Hype Train v2; outgoing raids. New scopes:
channel:read:polls, channel:read:hype_train, channel:manage:raids (log in again).
- Hype Train: alerts on start / each new level / end, plus the progress bar.
- Raid send-off: start/cancel raids from the dashboard (Helix /raids); the card
stays until channel.raid reports the raid happened.
- StreamElements client started on boot; tip alerts.
Dashboard
- Twitch + StreamElements status, test buttons (poll, Hype Train bar, raid card),
Raid box, activity Reload + auto-refresh, Redeems in the nav.
- Two-click delete instead of browser confirm() on Media and Actions.
Overlay
- ?parts= splits the overlay into OBS sources: chat, alerts, poll, hypebar, raid,
or exclusions like ?parts=nochat. Recommended: ?parts=chat (audio Monitor Only,
chat sounds stay off stream) + ?parts=nochat.
- Now playing switched off (commented, see CLAUDE.md to re-enable).
Removed the layout editor and preview page; chat position/style is baked into
overlay.ejs from the last saved layout (overlay_layout table kept, unused).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Overlay
- public/alerts/polaroid.js + .css: animated polaroid (photo drops in, tape
and heart stick on, caption writes in), randomized angles, per-event art,
caption, tape colour, badge and sound, fanned photo stack for multi-month
subs / community gifts / raids, and a queue so alerts never overlap.
- Bits: no alert under 5; sound tiers at 5/50/75/100/150/250.
- Watch streaks are read from chat (USERNOTICE viewermilestone) and reported
to the server over the overlay WebSocket.
Server
- Subscribe to channel.chat.notification instead of channel.subscribe /
subscription.message / subscription.gift / channel.raid: one event with
Prime, months bought at once, gift recipient, resub message and community
gift totals. Per-recipient gift notices of a gift bomb are skipped, so a
bomb is one alert (was N+1). Needs the user:read:chat scope (log in again).
- src/alerts.js maps Twitch events to alerts, broadcasts them and still runs
them through dispatch (activity log + existing actions).
- EventSub starts on boot from the stored login (alerts survive restarts),
validates the token hourly and refreshes it on expiry or 401, follows
session_reconnect without dropping events, and reconnects when keepalives
stop.
- The overlay WebSocket only accepts chat_notice messages from connections
that pass the overlay UUID; streak notices are deduped by message id.
Dashboard
- Twitch connection status and a test button per alert (POST /alerts/test/:key).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>