explaingit

louisedesadeleer/winning-structures

Analysis updated 2026-05-18

15TypeScriptAudience · vibe coderComplexity · 3/5LicenseSetup · moderate

TLDR

Winning Structures lets you copy the beat-by-beat pacing of a viral short video and rewrite it with your own words using a teleprompter.

Mindmap

mindmap
  root((repo))
    What it does
      Transcribes viral videos
      Maps script into beats
      Plays teleprompter for rewrite
    Tech stack
      TypeScript
      Python
      React and Vite
      Claude
    Use cases
      Analyze a viral TikTok script
      Rewrite a script in your voice
      Record with pacing matched teleprompter
    Audience
      Content creators
      Vibe coders
      Social media marketers
    Pipeline
      Download video
      Transcribe with Whisper
      Beat map with Claude
    Requirements
      Python to browse library
      yt-dlp and ffmpeg for new videos
      Claude access for analysis

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Paste a viral short video link and see its script broken into structural beats.

USE CASE 2

Rewrite a viral script line by line in your own words while keeping the original pacing.

USE CASE 3

Record a new video using the built-in teleprompter timed to match the original creator.

USE CASE 4

Read the structure-anatomy notes to study why certain videos retain viewer attention.

What is it built with?

TypeScriptPythonReactViteTailwind CSS

How does it compare?

louisedesadeleer/winning-structuresaredotna/api-examplesceelog/openweread
Stars151515
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatemoderatemoderate
Complexity3/52/52/5
Audiencevibe coderdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Browsing the library needs only Python, but analyzing new videos requires installing yt-dlp, ffmpeg, Whisper, and Claude access.

MIT license, use freely for any purpose including commercial use as long as you keep the copyright notice.

In plain English

Winning Structures is a tool for content creators who want to reuse the pacing and structure of a viral short video, like a TikTok, Reels, or YouTube Shorts clip, while writing their own words. You paste in a link to a video, and the app downloads it, transcribes every word along with its exact timing, and then asks Claude to break the script into structural beats, such as the hook, the main points, the key line, and the call to action. The idea behind the project is that videos do not go viral just because of editing, but because every sentence in the script is doing a specific job, and a document included in the repository explains that theory in more depth. Once a video is analyzed, you can open it and rewrite each line with your own words, and the app estimates how long your new line will take to say based on the original creator's speaking pace. You can then play the whole rewritten script back as a teleprompter while recording yourself, with a mirror mode, adjustable speed, and a countdown for each beat. Running the app just to browse an existing library and use the teleprompter needs nothing beyond Python, since the frontend is already built and included. Analyzing brand new videos requires a few additional command line tools to be installed separately: yt-dlp to download the video, ffmpeg to handle audio, Whisper to transcribe speech, and either Claude Code or an Anthropic API key to do the beat mapping. Analyzing one video takes roughly one to two minutes, and the downloaded video file itself is deleted afterward, keeping only the thumbnail and the extracted structure. The project is released under the MIT license.

Copy-paste prompts

Prompt 1
Help me set up winning-structures locally and run server.py for the first time.
Prompt 2
Walk me through analyzing a new TikTok link, including installing yt-dlp and ffmpeg.
Prompt 3
Explain how the beat-mapping step uses Claude to label hook, money line, and CTA.
Prompt 4
Help me rewrite an analyzed video's script while keeping the original speaking pace.
Prompt 5
Explain the two retention engines described in docs/structure-anatomy.md.

Frequently asked questions

What is winning-structures?

Winning Structures lets you copy the beat-by-beat pacing of a viral short video and rewrite it with your own words using a teleprompter.

What language is winning-structures written in?

Mainly TypeScript. The stack also includes TypeScript, Python, React.

What license does winning-structures use?

MIT license, use freely for any purpose including commercial use as long as you keep the copyright notice.

How hard is winning-structures to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is winning-structures for?

Mainly vibe coder.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.