-
-
Notifications
You must be signed in to change notification settings - Fork 6
feat: add VHS terminal demo tape files #264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
78bfdca
feat: add VHS terminal demo tape files for all integrations
rubenmarcus cac8f55
fix: address Greptile review β add Require guard and simulated output
rubenmarcus 2af7b12
feat: generate demo GIFs and wire into landing page and README
rubenmarcus 17c33b2
feat: redesign VHS demos with real CLI styling and ANSI colors
rubenmarcus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # Terminal Demos | ||
|
|
||
| Terminal demo recordings generated with [VHS](https://github.com/charmbracelet/vhs) by Charm. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| 1. **Install VHS**: | ||
|
|
||
| ```bash | ||
| # macOS | ||
| brew install charmbracelet/tap/vhs | ||
|
|
||
| # or with Go | ||
| go install github.com/charmbracelet/vhs@latest | ||
| ``` | ||
|
|
||
| VHS also requires [ffmpeg](https://ffmpeg.org/) and [ttyd](https://github.com/tsl0922/ttyd): | ||
|
|
||
| ```bash | ||
| brew install ffmpeg ttyd | ||
| ``` | ||
|
|
||
| 2. **Install ralph-starter** (tapes use `Require ralph-starter`): | ||
|
|
||
| ```bash | ||
| npm install -g ralph-starter | ||
| # or build locally: pnpm build && npm link | ||
| ``` | ||
|
|
||
| ## Generate demos | ||
|
|
||
| ```bash | ||
| # Generate a single demo | ||
| vhs demos/figma.tape | ||
|
|
||
| # Generate all demos | ||
| for tape in demos/*.tape; do vhs "$tape"; done | ||
| ``` | ||
|
|
||
| ## Output | ||
|
|
||
| Generated files go to `demos/output/` (gitignored except for `.gitkeep`). | ||
|
|
||
| Each tape produces: | ||
| - `.gif` β for embedding in blog posts, README, landing page, and social media | ||
| - `.mp4` β for website embedding and higher quality sharing | ||
|
|
||
| ## Tapes | ||
|
|
||
| | Tape | Description | | ||
| |------|-------------| | ||
| | `figma.tape` | Figma wizard: paste URL β select stack β visual validation β done | | ||
| | `github.tape` | GitHub issue to code: fetch issue β AI loop β PR created | | ||
| | `linear.tape` | Linear tickets: fetch sprint β implement β commits | | ||
| | `notion.tape` | Notion spec to code: parse pages β scaffold β tests | | ||
|
|
||
| ## Embedding | ||
|
|
||
| GIFs are referenced from: | ||
| - **README.md** β project root, shows the Figma demo | ||
| - **Landing page** β `docs/src/components/HeroSection/` can optionally embed a demo | ||
| - **Blog posts** β inline with `` | ||
| - **Social media** β attach GIFs directly to tweets/LinkedIn posts | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Figma Wizard Demo | ||
| # ralph-starter figma β interactive design-to-code workflow | ||
|
|
||
| Output demos/output/figma-demo.gif | ||
| Output demos/output/figma-demo.mp4 | ||
|
|
||
| Require echo | ||
|
rubenmarcus marked this conversation as resolved.
|
||
|
|
||
| Set Shell "bash" | ||
| Set FontSize 18 | ||
| Set Width 1000 | ||
| Set Height 700 | ||
| Set Theme "Catppuccin Mocha" | ||
| Set FontFamily "JetBrains Mono" | ||
| Set Padding 24 | ||
| Set TypingSpeed 0 | ||
|
|
||
| # Run the colored simulation (includes command display) | ||
| Hide | ||
| Type "clear && bash demos/scripts/figma-sim.sh" | ||
| Enter | ||
| Sleep 200ms | ||
| Show | ||
|
|
||
| # Wait for script to finish (script has ~12s of internal sleeps) | ||
| Sleep 16s | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # GitHub Issue-to-Code Demo | ||
| # ralph-starter run --from github β fetch issue and build autonomously | ||
|
|
||
| Output demos/output/github-demo.gif | ||
| Output demos/output/github-demo.mp4 | ||
|
|
||
| Require echo | ||
|
|
||
| Set Shell "bash" | ||
| Set FontSize 18 | ||
| Set Width 1000 | ||
| Set Height 700 | ||
| Set Theme "Catppuccin Mocha" | ||
| Set FontFamily "JetBrains Mono" | ||
| Set Padding 24 | ||
| Set TypingSpeed 0 | ||
|
|
||
| # Run the colored simulation (includes command display) | ||
| Hide | ||
| Type "clear && bash demos/scripts/github-sim.sh" | ||
| Enter | ||
| Sleep 200ms | ||
| Show | ||
|
|
||
| # Wait for script to finish (script has ~11s of internal sleeps) | ||
| Sleep 14s |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Linear Ticket Processing Demo | ||
| # ralph-starter run --from linear β fetch sprint tickets and implement | ||
|
|
||
| Output demos/output/linear-demo.gif | ||
| Output demos/output/linear-demo.mp4 | ||
|
|
||
| Require echo | ||
|
|
||
| Set Shell "bash" | ||
| Set FontSize 18 | ||
| Set Width 1000 | ||
| Set Height 700 | ||
| Set Theme "Catppuccin Mocha" | ||
| Set FontFamily "JetBrains Mono" | ||
| Set Padding 24 | ||
| Set TypingSpeed 0 | ||
|
|
||
| # Run the colored simulation (includes command display) | ||
| Hide | ||
| Type "clear && bash demos/scripts/linear-sim.sh" | ||
| Enter | ||
| Sleep 200ms | ||
| Show | ||
|
|
||
| # Wait for script to finish (script has ~10s of internal sleeps) | ||
| Sleep 13s |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Notion Spec-to-Code Demo | ||
| # ralph-starter run --from notion β parse Notion page and build | ||
|
|
||
| Output demos/output/notion-demo.gif | ||
| Output demos/output/notion-demo.mp4 | ||
|
|
||
| Require echo | ||
|
|
||
| Set Shell "bash" | ||
| Set FontSize 18 | ||
| Set Width 1000 | ||
| Set Height 700 | ||
| Set Theme "Catppuccin Mocha" | ||
| Set FontFamily "JetBrains Mono" | ||
| Set Padding 24 | ||
| Set TypingSpeed 0 | ||
|
|
||
| # Run the colored simulation (includes command display) | ||
| Hide | ||
| Type "clear && bash demos/scripts/notion-sim.sh" | ||
| Enter | ||
| Sleep 200ms | ||
| Show | ||
|
|
||
| # Wait for script to finish (script has ~10s of internal sleeps) | ||
| Sleep 13s |
Empty file.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| #!/bin/bash | ||
| # Simulates ralph-starter figma wizard output with real CLI styling | ||
| C='\033[36m' # Cyan | ||
| G='\033[32m' # Green | ||
| Y='\033[33m' # Yellow | ||
| B='\033[1m' # Bold | ||
| D='\033[2m' # Dim | ||
| R='\033[0m' # Reset | ||
|
|
||
| # Show the command that was "run" | ||
| echo -e "${D}\$${R} ralph-starter figma" | ||
| sleep 0.3 | ||
|
|
||
| # Banner | ||
| echo "" | ||
| echo -e "${C}ββββββββββββββββββββββββββββββββββββββββββββββββββββ${R}" | ||
| echo -e "${C}β${R} ${B}ralph-starter${R} ${D}v0.4.0${R} ${C}β${R}" | ||
| echo -e "${C}β${R} ${D}AI-powered project generator${R} ${C}β${R}" | ||
| echo -e "${C}ββββββββββββββββββββββββββββββββββββββββββββββββββββ${R}" | ||
| echo "" | ||
| sleep 0.5 | ||
|
|
||
| # Wizard title | ||
| echo -e " ${C}${B}Figma to Code${R}" | ||
| echo -e " ${D}Design to code in one command${R}" | ||
| echo "" | ||
| sleep 0.8 | ||
|
|
||
| # Step 1: URL | ||
| echo -e "${G}?${R} Figma design URL:" | ||
| echo -e " ${D}(paste the full Figma file or frame URL)${R}" | ||
| sleep 0.4 | ||
| echo -e " ${C}>${R} https://figma.com/design/ABC123/MNTN-Landing-Page" | ||
| sleep 0.8 | ||
|
|
||
| # Step 2: Description | ||
| echo "" | ||
| echo -e "${G}?${R} What would you like to build?" | ||
| sleep 0.4 | ||
| echo -e " ${C}>${R} responsive landing page with hero parallax and animated sections" | ||
| sleep 0.8 | ||
|
|
||
| # Step 3: Stack | ||
| echo "" | ||
| echo -e "${G}?${R} Tech stack? ${B}Next.js + TypeScript + Tailwind CSS${R} ${D}(Detected)${R}" | ||
| sleep 0.8 | ||
|
|
||
| # Step 4: Model | ||
| echo "" | ||
| echo -e " ${B}Which model?${R}" | ||
| echo "" | ||
| echo -e " ${D}1)${R} Claude Opus 4.6 β maximum quality ${G}(Recommended)${R}" | ||
| echo -e " ${D}2)${R} Claude Sonnet 4.5 β fast + cost-effective" | ||
| echo -e " ${D}3)${R} Custom model ID" | ||
| echo "" | ||
| echo -e "${G}?${R} Select model: ${C}1${R}" | ||
| sleep 0.4 | ||
| echo -e " ${D}Using:${R} Claude Opus 4.6 β maximum quality" | ||
| echo "" | ||
| sleep 0.8 | ||
|
|
||
| # Fetching | ||
| echo -e "${C}β${R} Fetching from Figma API... ${B}8 frames, 21 components${R}" | ||
| sleep 1.2 | ||
|
|
||
| # Loop iteration 1 | ||
| echo "" | ||
| echo -e "${C}βββββββββββββββββββββββββββββββββββββββββββββββββββ${R}" | ||
| echo -e "${C}β${R} β Figma β Iter 1/10 β \$0.00 ${C}β${R}" | ||
| echo -e "${C}βββββββββββββββββββββββββββββββββββββββββββββββββββ${R}" | ||
| echo -e " ${C}β${R} Generating components..." | ||
| sleep 1.2 | ||
| echo -e " ${G}β${R} Iteration 1 complete (23s) ~\$0.31" | ||
|
|
||
| # Loop iteration 2 | ||
| echo "" | ||
| echo -e "${C}β${R} Loop 2/10: Running visual validation..." | ||
| echo -e " Pixel diff: ${Y}4.2%${R} β analyzing with LLM vision..." | ||
| sleep 1.2 | ||
| echo -e " ${G}β${R} Iteration 2 complete (18s) ~\$0.28" | ||
|
|
||
| # Loop iteration 3 | ||
| echo "" | ||
| echo -e "${C}β${R} Loop 3/10: Fixing spacing and font issues..." | ||
| echo -e " Pixel diff: ${G}0.9%${R} β strict check passed ${G}β${R}" | ||
| sleep 1.2 | ||
| echo -e " ${G}β${R} Iteration 3 complete (14s) ~\$0.35" | ||
|
|
||
| # Done | ||
| echo "" | ||
| echo -e "${G}β Done in 3m 42s${R} | Cost: \$0.94 | 3 commits" | ||
| sleep 2 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| #!/bin/bash | ||
| # Simulates ralph-starter run --from github output with real CLI styling | ||
| C='\033[36m' # Cyan | ||
| G='\033[32m' # Green | ||
| Y='\033[33m' # Yellow | ||
| B='\033[1m' # Bold | ||
| D='\033[2m' # Dim | ||
| R='\033[0m' # Reset | ||
|
|
||
| # Show the command that was "run" | ||
| echo -e "${D}\$${R} ralph-starter run --from github --project acme/webapp --issue 42 --commit" | ||
| sleep 0.3 | ||
|
|
||
| # Banner | ||
| echo "" | ||
| echo -e "${C}ββββββββββββββββββββββββββββββββββββββββββββββββββββ${R}" | ||
| echo -e "${C}β${R} ${B}ralph-starter${R} ${D}v0.4.0${R} ${C}β${R}" | ||
| echo -e "${C}β${R} ${D}AI-powered project generator${R} ${C}β${R}" | ||
| echo -e "${C}ββββββββββββββββββββββββββββββββββββββββββββββββββββ${R}" | ||
| echo "" | ||
| sleep 0.5 | ||
|
|
||
| # Fetching | ||
| echo -e "${C}β${R} Fetching GitHub issue ${B}#42${R}..." | ||
| sleep 0.8 | ||
| echo -e " Found: ${B}Add user authentication${R}" | ||
| echo -e " Labels: ${C}feature${R}, ${C}auth${R}" | ||
| echo -e " ${D}3 linked files loaded${R}" | ||
| sleep 1 | ||
|
|
||
| # Loop iteration 1 | ||
| echo "" | ||
| echo -e "${C}βββββββββββββββββββββββββββββββββββββββββββββββββββ${R}" | ||
| echo -e "${C}β${R} acme/webapp#42 β Iter 1/5 β \$0.00 ${C}β${R}" | ||
| echo -e "${C}βββββββββββββββββββββββββββββββββββββββββββββββββββ${R}" | ||
| echo -e " ${C}β${R} Analyzing requirements..." | ||
| sleep 1.2 | ||
| echo -e " ${G}β${R} Iteration 1 complete (19s) ~\$0.12" | ||
|
|
||
| # Loop iteration 2 | ||
| echo "" | ||
| echo -e "${C}β${R} Loop 2/5: Generating auth module..." | ||
| sleep 1.2 | ||
| echo -e " ${G}β${R} Iteration 2 complete (31s) ~\$0.14" | ||
|
|
||
| # Loop iteration 3 | ||
| echo "" | ||
| echo -e "${C}β${R} Loop 3/5: Adding tests and validation..." | ||
| sleep 1.2 | ||
| echo -e " ${G}β${R} Iteration 3 complete (18s) ~\$0.08" | ||
|
|
||
| # Validation | ||
| echo "" | ||
| echo -e "${C}β${R} Validation passed: ${G}12 tests${R}, lint clean ${G}β${R}" | ||
| sleep 0.8 | ||
|
|
||
| # PR | ||
| echo -e "${C}β${R} Creating pull request..." | ||
| sleep 0.8 | ||
| echo -e " ${G}β${R} PR ${B}#87${R} created" | ||
|
|
||
| # Done | ||
| echo "" | ||
| echo -e "${G}β Done in 4m 18s${R} | Cost: \$0.38 | PR #87 created" | ||
| sleep 2 |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.