vscode-lyric-studio

skill
Security Audit
Fail
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Fail
  • spawnSync — Synchronous process spawning in scripts/extract_audio_beats.mjs
  • network request — Outbound network request in scripts/fetch_lyrics.mjs
  • spawnSync — Synchronous process spawning in scripts/render_120fps.mjs
  • process.env — Environment variable access in scripts/render_120fps.mjs
  • spawnSync — Synchronous process spawning in scripts/tiktok_prep.mjs
  • network request — Outbound network request in templates/engine.js
  • exec() — Shell command execution in templates/server.mjs
  • process.env — Environment variable access in templates/server.mjs
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

⚡ Studio-grade 1080×1920 @ 120fps 3D Curved OLED VS Code kinetic coding typography engine, AI Agent Skill & TikTok HD 60fps master pipeline

README.md

⚡ VS Code Lyric Studio

Studio-grade 3D Curved OLED Monitor Kinetic Coding Typography Engine & AI Agent Skill

Release
License: MIT
Render: 1080x1920 @ 120fps
TikTok HD: 60fps CFR
Agent Skill
Quality Gate

Turn any song into a razor-sharp 1080×1920 @ 120fps 3D Curved OLED VS Code kinetic typography video — with idiomatic verbatim TypeScript code, After Effects Graph-Editor 3D camera curves, Copilot ghost text, 3D IntelliSense popups, Live Replace, Terminal Dive endings, and local TikTok HD 60fps mastering.


VS Code Lyric Studio Live Animated 3-Panel Demo (Macro Caret, Live Replace, Terminal Dive) Live 3-Panel Preview: Macro Caret & Ghost Text · Live Replace & Zolly · Terminal Dive & OLED Outro



📸 View 12-Frame Full Contact Sheet (6×2 QA Grid)
VS Code Lyric Studio 12-frame Contact Sheet
Macro OLED Caret Flare
Macro Caret Flare & Live Replace
3D IntelliSense Dropdown
3D IntelliSense Autocomplete
Terminal Dive & OLED Outro
Terminal Dive & Pure #000000 Outro

Features • Agent Skill Install • Quality Gate v2.2 • Quick Start • Scripts • Look Knobs • Manuals


✨ Features

This repository is both a universal AI Agent Skill (SKILL.md) and a self-contained WebGL2 + Playwright + FFmpeg production studio built for creating original VS Code coding lyric videos:

  • Pure #000000 OLED Black & Full-Color Syntax — High-contrast cinema palette (warm orange keywords, amber-gold functions, coral/emerald strings, electric teal highlights) with zero muddy gradients and zero monochrome desaturation.
  • Idiomatic Verbatim TypeScript Lyrics — Turns exact sung lyrics strictly left-to-right into real, balanced TypeScript blocks (async function, if, while, await, return, camelCase methods, Prettier-clean spacing) — never repetitive karaoke wrappers (l("...")) and never paraphrased verbs.
  • Authentic VS Code Micro-UI Engine — Built-in support for Copilot ghostText + [Tab] accept pills, 3D IntelliSense autocomplete dropdowns, liveReplace word swaps, floating hover tooltip cards, cyan selection blocks, Error Lens squiggle + badges, and VS Code-style smooth editor scrolling.
  • After Effects Graph-Editor 3D Camera — Spring-damped macro cinematography (whip, snapOut, zolly, float) with organic handheld weave, rack focus windows, and a signature Terminal Dive ending (bun run <file> → glitch hit → ✓ done — 0 errors → wide OLED pull-out).
  • Precision Lyric Alignment — Fetches ground-truth synced lyrics from LRCLIB (free, no API key) and feeds them into faster-whisper (medium --prompt) with automatic opening-silence clamping so every single word hits on beat.

🧩 Install as an AI Agent Skill

Works with any AI coding agent or LLM harness that reads SKILL.md — including OpenCode, ChatGPT / Codex CLI, Claude Code, Antigravity / Gemini CLI, Cursor, Windsurf, Cline / Roo Code, and GitHub Copilot.

Agent / Platform Install Command
OpenCode git clone https://github.com/adityaputrabramasta/vscode-lyric-studio.git ~/.config/opencode/skills/vscode-lyric-studio
ChatGPT / Codex CLI / Universal git clone https://github.com/adityaputrabramasta/vscode-lyric-studio.git ~/.agents/skills/vscode-lyric-studio
Claude Code git clone https://github.com/adityaputrabramasta/vscode-lyric-studio.git ~/.claude/skills/vscode-lyric-studio
Antigravity / Gemini CLI git clone https://github.com/adityaputrabramasta/vscode-lyric-studio.git ~/.gemini/config/skills/vscode-lyric-studio
Cursor / Windsurf / Cline Clone into your workspace .cursor/skills/ or attach SKILL.md directly as project rules

Once installed, simply prompt your agent:

"Create a 45-second VS Code kinetic typography video for The 1975 - About You"

Your agent reads SKILL.md and references/production-lessons.md, fetches audio + official lyrics, runs Whisper alignment, passes Quality Gate v2.2, audits a 12-frame contact sheet, and renders both 120fps FHD and TikTok HD 60fps masters autonomously.


🛡 Quality Gate v2.2

Unlike typical prompt-only skills where lightweight models cut corners, scripts/lint_choreography.mjs enforces deterministic engineering checks in 0.1s before a single frame is rendered:

  • Verbatim Left-to-Right Fidelity (--lyrics) — Rejects invented unsung verbs (.decline(), .refuse(), .resolve()), paraphrasing, 3-token sentence compression, and stretched 1–2 char tokens (> 0.70s).
  • Realistic Idiomatic Code Grammar — Blocks fake dot-chain sentences (a.b.c.d), enforces camelCase methods, Prettier-clean comma spacing, balanced { } indentation, and real TS control flow (if, while, const, await, return).
  • Zero Slop Visuals & Camera — Blocks karaoke l("...") loops, monotone < 5-color syntax, missing hero OLED bloom, clipped autocomplete popups without camera pullback (dist >= 325), copy-pasted/robotic CAMERA_SHOTS, and flat IMPACT_TIMES.

🏗 Production Pipeline

flowchart LR
    A["🎵 Audio & Lyrics\nyt-dlp + LRCLIB + Whisper --prompt"] --> B["🎬 Choreography\nchoreography.js"]
    B --> C["🛡 Quality Gate v2.2\nlint_choreography.mjs --lyrics"]
    C -->|0 Errors| D["👁 Visual QA\n12-Frame Contact Sheet"]
    D -->|Verified| E["🎥 120fps Master\nPlaywright + WebGL2 + FFmpeg"]
    E --> F["📱 TikTok HD 60fps\ntmix 2:1 + H.264 L4.2 + Rec.709"]

🚀 Quick Start (CLI)

0. Install Prerequisites

  • Node.js >= 20 (native ESM), FFmpeg + FFprobe, Playwright (or system Chrome), Python 3 + faster-whisper, and yt-dlp (optional, for auto-fetching audio):
# macOS (Homebrew)
brew install node ffmpeg yt-dlp

# Install Playwright Chromium (or point CHROME= to your system Google Chrome)
npm install -g playwright && npx playwright install chromium

# Optional (recommended): word-level vocal alignment
pip3 install faster-whisper

1. Clone & Scaffold a Song Project

git clone https://github.com/adityaputrabramasta/vscode-lyric-studio.git
cd vscode-lyric-studio

mkdir -p my-song/assets my-song/preview
cp templates/engine.js templates/index.html templates/server.mjs my-song/
cp templates/choreography.template.js my-song/choreography.js
cp templates/assets/CascadiaCode.ttf my-song/assets/
cp scripts/render_120fps.mjs scripts/tiktok_prep.mjs my-song/

2. Get Audio, Fetch Official Lyrics & Align Word Timings

# Option A: Fetch audio from YouTube with yt-dlp
yt-dlp -x --audio-format wav --audio-quality 0 -o "my-song/assets/source.%(ext)s" "ytsearch1:The 1975 About You official audio"

# Option B: Use your own local .mp3 / .mp4 file
# ffmpeg -y -i path/to/song.mp3 -ac 2 -ar 48000 my-song/assets/source.wav

# Fetch official ground-truth synced lyrics from LRCLIB (free, no API key)
node scripts/fetch_lyrics.mjs "The 1975 About You"

# Slice the climax window (e.g. 45s starting at 183.8s), detect BPM + beatPhase & generate 120Hz envelopes
node scripts/extract_audio_beats.mjs \
  --input my-song/assets/source.wav \
  --start 183.8 \
  --duration 45.0 \
  --outdir my-song/assets

# Add a smooth intro/outro audio fade so the clip never clicks
ffmpeg -y -i my-song/assets/edit.wav -af "afade=t=in:st=0:d=0.15,afade=t=out:st=44.50:d=0.50" my-song/assets/edit_fade.wav \
  && mv my-song/assets/edit_fade.wav my-song/assets/edit.wav
ffmpeg -y -i my-song/assets/edit.wav -c:a libmp3lame -q:a 2 my-song/assets/edit.mp3

# Export window lyrics & run guided Whisper alignment (medium model; use 'small' on low-RAM machines)
node scripts/fetch_lyrics.mjs "The 1975 About You" --start 183.8 --duration 45.0 > my-song/assets/official_lyrics.txt
python3 scripts/transcribe_lyrics.py my-song/assets/edit.wav medium \
  --prompt "$(cat my-song/assets/official_lyrics.txt)" \
  --json my-song/assets/word_timings.json

3. Author choreography.js & Pass Quality Gate v2.2

Edit my-song/choreography.js using my-song/assets/word_timings.json and edit_envelopes.json, then verify with the 0.1s linter:

node scripts/lint_choreography.mjs my-song/choreography.js --lyrics my-song/assets/official_lyrics.txt
# ✅ ALL QUALITY GATES PASSED!

4. Instant Browser Preview (Check Animation Before Rendering)

cd my-song && PORT=4174 node server.mjs
# Open http://127.0.0.1:4174/ in Chrome to scrub, play, and verify sync in real time!

5. Render 120fps Master & TikTok HD 60fps

In a second terminal (while server.mjs is running):

cd my-song
STUDIO_URL="http://127.0.0.1:4174/?capture=1" \
AUDIO_WAV="$PWD/assets/edit.wav" \
OUTPUT_MP4="$PWD/output_120fps_fhd.mp4" \
node render_120fps.mjs

# Optional: pass CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
# or PLAYWRIGHT_PATH="/path/to/playwright/index.mjs" if Playwright is installed locally.

# Convert 120fps master -> anti-burik TikTok HD 60fps CFR
node tiktok_prep.mjs output_120fps_fhd.mp4 output_TIKTOK_HD_60FPS.mp4
🔧 Quick Troubleshooting
  • Port 4174 already in use (EADDRINUSE): Pass any free port via PORT=4180 node server.mjs and match STUDIO_URL="http://127.0.0.1:4180/?capture=1".
  • Playwright executable not found: Either run npx playwright install chromium or pass CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" (macOS) / CHROME="C:\Program Files\Google\Chrome\Application\chrome.exe" (Windows).
  • Whisper medium slow on CPU: Switch the model argument to small (python3 scripts/transcribe_lyrics.py my-song/assets/edit.wav small --prompt ...) — still guided by your exact LRCLIB lyrics.

🛠 Scripts Reference

All FFmpeg/audio/QA Node scripts require zero extra npm dependencies.

Script Purpose
scripts/fetch_lyrics.mjs Fetches synced & plain lyrics from LRCLIB (free, no API key)
scripts/extract_audio_beats.mjs Slices audio climax, detects BPM + beat phase, outputs 120Hz edit_envelopes.json
scripts/transcribe_lyrics.py Guided word-level alignment via faster-whisper (medium, --prompt, silence clamp, --json)
scripts/audio_envelopes.py Alternative NumPy/SciPy envelope, BPM, and vocal onset extractor
scripts/lint_choreography.mjs 0.1s v2.2 quality gate enforcing verbatim sync, realistic TS grammar, hero bloom & organic cameras
scripts/render_120fps.mjs Deterministic 1080×1920 @ 120fps Playwright + FFmpeg master renderer
scripts/tiktok_prep.mjs 100% local TikTok HD 60fps converter (tmix 2:1 shutter blend, H.264 High L4.2, Rec.709, FastStart)

🎛 Look & Camera Knobs

Customize the mood per song inside META in choreography.js:

Knob Warm TikTok-Pro (Default) Classic One Dark Pro (Calm) Effect
darkFx 0.35 0.0 Film toe crush, vignette & grain (1.0 = deep dark edit)
darkDesat 0.0 0.0 Keep 0.0 so syntax stays 100% vivid full-color
blurAmount 1.45 1.40 Cinematic DOF, optical Pro-Mist bloom & motion softness
monitorFx 1.0 1.0 Subtle filmed-OLED scanlines, rolling refresh band & flicker
camBold 1.65 1.0 Handheld weave amplitude, kick breathing & impact punch
caretFlare true false Warm amber-gold optical halo behind the typing caret
statusBarBg '#d4a017' '#07090e' High-contrast gold bar vs. subtle dark IDE chrome
scrollKeepRow 14 14 Caret row lock so code never collides with the terminal panel

📱 TikTok HD 60fps Anti-Burik Delivery

scripts/tiktok_prep.mjs converts your 120fps master into a TikTok-safe upload master engineered to survive platform re-encoding cleanly:

  • Motion Blur Blending: tmix 2:1 frame blend (120fps → 60fps CFR) for natural 180° shutter smoothness
  • Codec Profile: H.264 High @ Level 4.2, yuv420p, Rec.709 color tags (bt709/bt709/bt709)
  • Perceptual Quantization: aq-mode=3 (dark-scene bias to keep #000000 OLED shadows banding-free)
  • Streaming Atom Order: moov moved to front (fastStartOk: true) and < 72 MB target size

📚 Technical Manuals

Deep-dive production docs included in references/:


📂 Repository Structure

vscode-lyric-studio/
├── SKILL.md                        # Universal AI Agent Skill entry point
├── templates/                      # Portable WebGL2/Three.js studio kit
│   ├── engine.js                   # Curved OLED VS Code renderer & Graph-Editor camera
│   ├── choreography.template.js    # Backburner-grade starter choreography (passes Gate v2.2)
│   ├── index.html                  # Studio viewport host
│   ├── server.mjs                  # Zero-dep local preview server
│   └── assets/CascadiaCode.ttf     # Bundled coding typeface
├── scripts/                        # End-to-end audio, lyrics, linting & 120fps/60fps render tools
├── references/                     # 5 deep technical manuals & doctrines
└── docs/assets/                    # Live animated demo, social preview & showcase renders

🤝 Contributing

Contributions, camera presets, language skins (Rust / Python / Go), syntax palettes, and shader improvements are welcome! Please read CONTRIBUTING.md before opening a pull request.

📄 License

Released under the MIT License.


Created by @adityaputrabramasta · If this studio saved you hours in After Effects, consider giving the repo a ⭐

Reviews (0)

No results found