Skip to content

Stream Overlay

A live quiz for OBS or any browser source: transparent, safe-area aware, with live answer bars, a countdown ring and a top-5 leaderboard.

On this page
Used for
  • A live quiz over a stream
  • A classroom screen
  • A livestream poll

Examples

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

question
QuizQuestion
The question on screen.
responses
QuizResponse[]
Every response so far. The newest of each student counts.
classSize
number
Students in the class, for the answered count.
secondsLeft
number
Drives the ring with question.timeLimitSec. Leave out for no ring.
revealed
boolean
Defaultfalse
Mark the right answer and show the explanation.
leaderboard
LeaderRow[]
Ranked rows with move. The top five show. Build it with leaderboard().
safe
action | title
Defaultaction
5% or 10% inside the frame.
size
sm | md | lg
Defaultmd
Type and panel size, all in container units: at 1920x1080 the question is 37, 43 or 52px, a choice 26, 30 or 36px, a leaderboard name 24, 28 or 33px. It scales with the frame, so 1280x720 is two thirds of that.
scrim
number
Default0.62
How dark the glass is, 0 to 1.
accent
string
Default#60a5fa
Bar and ring tint.
guides
boolean
Defaultfalse
Draw the frame edge and the safe area.

What it handles

  1. 01Draws on a transparent background, so a browser source in OBS puts it over any video.
  2. 02Sizes everything in container units, so the same layout holds at 1920x1080 and 1280x720.
  3. 03Keeps its content inside the action-safe area (5%) or the title-safe area (10%).
  4. 04Puts the text on dark glass with a scrim you set, so it reads over bright footage.
  5. 05Counts down on a ring, grows the answer bars as responses arrive, and marks the right answer on reveal.
  6. 06Shows the top five with the places each student gained or lost; rows slide to their new place.

States

Answer arrives
The choice's bar grows and its count ticks
280ms, ease-in-out
Clock ticks
The ring shortens by one second of arc
1000ms, linear
Reveal
The right row gets a check; the others fade
180ms, ease-out
Ranks change
Rows slide to their new place, the move mark fades in
280ms, ease-in-out
Reduced motion
Everything jumps to its value
0ms

Works with

When to use

When to use

  • A live quiz over a stream or a projector, added to OBS as a browser source.
  • Any video call or broadcast that needs a transparent, safe-area aware overlay.

When not to use

  • A full page: the overlay has no background of its own.
  • The teacher's controls: use Live Results.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Stream Overlay to my app and wire it to my own data.
  • I need a live quiz over a stream or a projector, added to OBS as a browser source. Set that up with the Knowns UI Stream Overlay.
  • Which Stream Overlay props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "stream-overlay" }) and search_docs({ query: "stream overlay" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Stream Overlay, or found something off? We read every message.