feat(routes-f): viewer peaks, camera angles, chat velocity, creator export (#1022, #1025, #1028, #1032)#1090
Merged
davedumto merged 1 commit intoJun 27, 2026
Conversation
…xport Implements StreamFi-x#1022, StreamFi-x#1025, StreamFi-x#1028, and StreamFi-x#1032 as self-contained routes-f endpoints with seed data and tests. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@josephchimebuka is attempting to deploy a commit to the david's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@josephchimebuka Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements four self-contained
routes-fpractice endpoints, each scoped entirely underapp/api/routes-f/:feat(routes-f): concurrent viewer peaks #1025 — Viewer peaks (
/api/routes-f/viewer-peaks)GET ?creator_id&limit=10→ top N peak concurrent viewer counts across a creator's streamspeak_viewersdescendingfeat(routes-f): multi-camera angle switcher #1032 — Multi-camera angles (
/api/routes-f/camera-angles)GET ?stream_id→ available camera angles (id,label,playback_id)POST { viewer_id, stream_id, angle_id }→ stores viewer's angle selection in memoryfeat(routes-f): chat velocity per minute #1022 — Chat velocity (
/api/routes-f/chat-velocity)GET ?stream_id→{ series, peak_minute, total_messages }feat(routes-f): creator data export request #1028 — Creator data export (
/api/routes-f/creator-export)POST { creator_id, sections }→{ export_id, status: queued }GET ?export_id→{ status, download_url? }All routes include bundled seed data and Jest tests covering ordering, limits, selection, bucketing, lifecycle, and validation.
Test plan
npm test -- --testPathPattern="viewer-peaks|camera-angles|chat-velocity|creator-export"GET /api/routes-f/viewer-peaks?creator_id=creator_a&limit=2returns peaks sorted descGET /api/routes-f/camera-angles?stream_id=stream_multi_1lists 3 anglesPOST /api/routes-f/camera-angleswith unknownangle_idreturns 400GET /api/routes-f/chat-velocity?stream_id=stream_chat_1returns minute series + peakPOST /api/routes-f/creator-exportthenGET ?export_idafter delay showsready+download_urlIssues
Closes #1022
Closes #1025
Closes #1028
Closes #1032