Initial commit — HeyStreamer v1
Twitch stream event platform with OBS browser source overlay. Features: - Twitch OAuth login (streamer + mod access) - EventSub WebSocket for subs, gift subs, bits, channel points, follows, raids - Chat commands via tmi.js in the overlay - Gap audio — tone plays on new chat message after silence, volume/pitch scale with gap length - Self-hosted media library (upload sounds and videos) - Action configuration — map any event to sound, video, or alert - Per-action cooldowns, test button, enable/disable toggle - Multiple actions per event (all matching actions fire) - Activity log dashboard with EventSub connection status - Layout editor — iframe-based WYSIWYG with drag handles, live style preview - Custom CSS and custom JS injection into overlay - Custom DOM events (heystreamer:sub, heystreamer:raid, etc.) for custom JS hooks - deploy.sh — one-shot setup and launch script Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
b9291f455e
37 changed files with 2180 additions and 0 deletions
74
static/overlay.css
Normal file
74
static/overlay.css
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
background: transparent;
|
||||
overflow: hidden;
|
||||
font-family: 'Segoe UI', Arial, sans-serif;
|
||||
}
|
||||
|
||||
#chat {
|
||||
position: fixed;
|
||||
left: var(--chat-left, 72%);
|
||||
top: var(--chat-top, 5%);
|
||||
width: var(--chat-width, 27%);
|
||||
height: var(--chat-height, 88%);
|
||||
font-size: var(--chat-font-size, 14px);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
padding: 8px;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.chat-msg {
|
||||
background: rgba(0, 0, 0, var(--chat-bg-opacity, 0.55));
|
||||
border-radius: 6px;
|
||||
padding: 5px 8px;
|
||||
color: var(--chat-text-color, #fff);
|
||||
line-height: 1.4;
|
||||
word-break: break-word;
|
||||
animation: fadein 0.2s ease;
|
||||
}
|
||||
|
||||
.uname { font-weight: bold; }
|
||||
|
||||
#alert {
|
||||
position: fixed;
|
||||
left: var(--alert-left, 50%);
|
||||
top: var(--alert-top, 40%);
|
||||
transform: translate(-50%, -50%);
|
||||
background: rgba(0, 0, 0, var(--alert-bg-opacity, 0.8));
|
||||
color: var(--alert-text-color, #fff);
|
||||
padding: 1rem 2rem;
|
||||
border-radius: 12px;
|
||||
font-size: var(--alert-font-size, 24px);
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
max-width: 80vw;
|
||||
animation: popin 0.3s ease;
|
||||
}
|
||||
|
||||
#alert-video-wrap {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
#alert-video {
|
||||
max-width: 80vw;
|
||||
max-height: 80vh;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
@keyframes fadein {
|
||||
from { opacity: 0; transform: translateY(6px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
@keyframes popin {
|
||||
from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
|
||||
to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue