[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-117269":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":9,"trendingCount":14,"starSnapshotCount":14,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},117269,"subtle","0xpratzyy\u002Fsubtle","0xpratzyy","Local animated captions and beat-synced lyric videos. 26 styles for Codex, Claude Code and the command line.",null,"TypeScript",144,28,59,0,12,24,48,78.79,"Other",false,"main",true,[],"2026-11-21 01:13:25","2026-11-23 19:23:30","# Subtle\n\nAnimated captions for talking-head video, rendered locally.\n\nSubtle is a skill for Codex and Claude Code, with a standalone CLI. Give it a video to transcribe and animate\ncaptions in one of 35 styles. It runs on your machine without uploading the footage or asking for an API key.\n\n**See every style on a real clip: https:\u002F\u002Fsubtle.refs.video** (the showcase site runs the same caption engine in the\nbrowser; its source is in `site\u002F`).\n\n![All 35 styles on one frame](docs\u002Fstills\u002Fstyles.jpg)\n\nAll 35 styles on the same frame. Every one runs live at https:\u002F\u002Fsubtle.refs.video.\n\nDemo frames: Sam Altman on David Senra's podcast (https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=kG8AoExkX40), used only to show captions; not affiliated with or endorsed by Sam Altman, OpenAI or the show.\n\n## Smart highlights\n\nSay \"the gold price is five thousand dollars\" and the caption shows **$5,000**, highlighted, in one piece.\n\n![Highlighted numbers in four styles](docs\u002Fstills\u002Fhighlights.jpg)\n\n- **The words that matter get the highlight.** Numbers, prices, percentages and dates first, then names and places, then\n  the punchline word, then the topic the first time it comes up. Claude reads your captions and picks them, with a\n  one-line reason for each that you can read and change. One highlight per page, two on long pages, never filler words.\n- **Numbers are written the way you would write them.** \"five thousand dollars\" and \"$5000\" become `$5,000`; \"forty\n  percent\" becomes `40%`; \"one lakh rupees\" becomes `₹1 lakh`; years stay `1991`. An amount is one token: it is never\n  split across two lines or two pages. Indian digit grouping (`₹15,00,000`) is used for rupee amounts and Hindi speech.\n- **Spanish works the same way.** \"cinco mil dólares\" becomes `$5,000`, \"cuarenta por ciento\" becomes `40%`, \"dos mil\n  veinticuatro\" becomes `2024`, and the highlight rules use Spanish word lists. A transcript that already writes `5.000`\n  and `3,5` keeps that convention; `--numbers european` or `--numbers western` forces one.\n- **Every style has its own highlight**: a serif italic, a colour, an inverted chip, a second block colour, the giant\n  word behind the speaker. A highlighted page also stays on screen a beat longer when there is room.\n- **It works with no one picking, too.** Rules find the numbers, names and contrast words (`--emphasis auto`, the\n  default). `--emphasis numbers` keeps only numbers, `--emphasis off` turns highlights off, and\n  `--emphasis-words 'gold, $5,000'` forces words.\n\n## Newer in v2\n\n- **Text behind the speaker, per shot.** Six styles (`keyword`, `cover`, `outline`, `poster`, `rise`, `numeral`) put the\n  giant word behind the person. Subtle checks every shot on its own: in a wide shot the word goes behind the head, in a\n  close-up (where it would be hidden) it is drawn in front or skipped. Needs macOS (Apple Vision cut-out).\n- **Smart placement.** Each page moves off the face and the hands, inside the style's allowed range, and only when it has\n  to (`--placement auto`, the default; `off` keeps the style's own position).\n- **Cut-aware pages.** Hard cuts are found with ffmpeg and no page straddles one (`--cuts auto`; `off` ignores cuts).\n- **Automatic legibility.** Subtle measures what is behind every page and adds a soft halo, scrim or outline only where\n  the type would not read. Clean dark footage is left untouched (`--legibility auto`; `off` draws the preset as it is).\n- **Palette from the footage.** Styles with an accent colour take one that suits the scene and reads on it\n  (`--palette auto`; `off` uses the preset's colours).\n- **Recipe styles.** One generic style driven by a `recipe` block in the style JSON, so a new caption treatment needs\n  no new TSX (see `docs\u002FARCHITECTURE.md`).\n\n## What it does\n\n1. Transcribes the speech with word-level timing (Whisper large-v3-turbo through `mlx-whisper`).\n2. Writes spoken numbers as single tokens (`$5,000`, `40%`, `₹1 lakh`), groups the words into short, readable pages\n   and highlights the words that matter.\n3. Renders the captions in the style you pick, at the video's own size and frame rate.\n4. With a behind-the-speaker style (`keyword`, `cover`, `outline`, `poster`, `rise`, `numeral`), cuts the speaker out with Apple Vision and puts the giant word behind them, shot by shot.\n5. Moves pages off faces and hands, keeps them clear of cuts, and adds a halo or scrim where the footage would hide the type.\n6. Checks the result (safe area, contrast, how much of each big word is visible) and makes a contact sheet.\n\nYou get `\u003Cname>.captioned.mp4`, `\u003Cname>.srt`, `\u003Cname>.captions.json` (editable) and `\u003Cname>.preview.jpg`.\n\n## Install\n\n**Codex**:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002F0xpratzyy\u002Fsubtle ~\u002F.agents\u002Fskills\u002Fsubtle\n```\n\n**Claude Code**:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002F0xpratzyy\u002Fsubtle ~\u002F.claude\u002Fskills\u002Fsubtle\n```\n\nThen ask your agent to *\"add captions to ~\u002FMovies\u002Ftalk.mp4\"* or *\"put a giant keyword behind me\"*.\nFor the standalone CLI, clone the repo anywhere and run the commands below from that directory.\n\n## Requirements\n\n| Need | For | Install |\n|---|---|---|\n| macOS on Apple Silicon | transcription (`mlx-whisper`) and the behind-the-speaker effect (Apple Vision) | |\n| ffmpeg | reading and writing video | `brew install ffmpeg` |\n| Node 18 or newer | the caption renderer | `brew install node` |\n| Python 3.9 or newer and `uv` | transcription and visual checks | `brew install uv` |\n| Swift (Xcode command line tools) | the behind-the-speaker styles and smart placement | `xcode-select --install` |\n\n`bash scripts\u002Fdoctor.sh` checks all of this and prints what is missing. The first run downloads the speech model (about\n1.6 GB) and installs the renderer's packages (about a minute). On Linux or Intel Macs you can still render captions\nfrom your own word timings (`--words`). Run `bash scripts\u002Fdoctor.sh --from-timings` for this workflow.\nWithout `uv`, install `mlx-whisper` for transcription and `numpy` and `pillow` for visual checks\nin the Python environment that runs Subtle.\n\n## Styles\n\n35 caption styles. Six of them (*behind you*) put the giant word behind the speaker, decided per shot (macOS for the person cut-out).\n\n|  |  |  |  |\n|---|---|---|---|\n| ![accent](docs\u002Fstills\u002Faccent.jpg)\u003Cbr>**accent**\u003Cbr>Pale-lime sans in very short pages, with the key word in a light serif italic; soft fade with a small drift. | ![block](docs\u002Fstills\u002Fblock.jpg)\u003Cbr>**block**\u003Cbr>Every line in its own warm coloured block with depth; lines rise in with motion blur and pile up as a stack. | ![bottom](docs\u002Fstills\u002Fbottom.jpg)\u003Cbr>**bottom**\u003Cbr>Big bold caps low in the frame that build word by word with no animation; the key word is yellow. | ![cards](docs\u002Fstills\u002Fcards.jpg)\u003Cbr>**cards**\u003Cbr>White serif on a dark rounded card; the phrase appears at once, key words in red. The essay and serif-card look. |\n| ![chip](docs\u002Fstills\u002Fchip.jpg)\u003Cbr>**chip**\u003Cbr>A light rounded chip that hugs the page; words turn from grey to black as they are spoken. | ![cinema](docs\u002Fstills\u002Fcinema.jpg)\u003Cbr>**cinema**\u003Cbr>Tiny, wide-tracked serif capitals low in the frame that fade in and out slowly, like the subtitles of an arthouse trailer. | ![cover](docs\u002Fstills\u002Fcover.jpg)\u003Cbr>**cover** *(behind you)*\u003Cbr>One huge serif italic word behind the speaker's head, like a magazine masthead; the rest of the line small and tracked in front. | ![duo](docs\u002Fstills\u002Fduo.jpg)\u003Cbr>**duo**\u003Cbr>A big condensed caps headline word with a tiny spaced-out lead-in above and a bold italic tail below. The lead-in fades in, the headline cuts in, the tail fades in. |\n| ![editorial](docs\u002Fstills\u002Feditorial.jpg)\u003Cbr>**editorial**\u003Cbr>A bold sans lowercase line with the keyword set about three times larger in a high-contrast italic serif in cinema red, overlapping the sans. Lower-left third. | ![flip](docs\u002Fstills\u002Fflip.jpg)\u003Cbr>**flip**\u003Cbr>Every letter flips in like a split-flap tile, turning edge-on and settling upright with a motion-blur trail. | ![glass](docs\u002Fstills\u002Fglass.jpg)\u003Cbr>**glass**\u003Cbr>One frosted-glass pill per page in soft lowercase; upcoming words are dim and brighten as they are spoken. | ![glide](docs\u002Fstills\u002Fglide.jpg)\u003Cbr>**glide** (default)\u003Cbr>Key words in a large calligraphic script, the small words in bold white sans, on one baseline. |\n| ![haiku](docs\u002Fstills\u002Fhaiku.jpg)\u003Cbr>**haiku**\u003Cbr>One small condensed serif word at a time in acid yellow. Hard cuts, no box. A hot word turns italic and a lighter yellow. | ![highlighter](docs\u002Fstills\u002Fhighlighter.jpg)\u003Cbr>**highlighter**\u003Cbr>Bold caps with one flat box behind the word being spoken, hopping from word to word. A finished word turns lime; the hot word comes alone, large. | ![hype](docs\u002Fstills\u002Fhype.jpg)\u003Cbr>**hype**\u003Cbr>A calm medium-weight line in soft white with a gentle shadow; the key word turns warm yellow. Hard cut in, no outline. | ![impact](docs\u002Fstills\u002Fimpact.jpg)\u003Cbr>**impact**\u003Cbr>Heavy round caps; every letter bounces in along an arc with overshoot and a little tilt, on a hard offset shadow. |\n| ![karaoke](docs\u002Fstills\u002Fkaraoke.jpg)\u003Cbr>**karaoke**\u003Cbr>The whole line shows dim; each word turns solid as it is spoken. One weight, no motion. | ![keyword](docs\u002Fstills\u002Fkeyword.jpg)\u003Cbr>**keyword** *(behind you)*\u003Cbr>One giant pale-lime keyword behind the speaker, the other words small and stacked beside it. | ![magazine](docs\u002Fstills\u002Fmagazine.jpg)\u003Cbr>**magazine**\u003Cbr>A tight justified block like an ad super: keywords in big serif italic, glue words in small grotesk capitals, every line the same width. | ![newsroom](docs\u002Fstills\u002Fnewsroom.jpg)\u003Cbr>**newsroom**\u003Cbr>Bold yellow sans, every word on screen at once, the word being spoken turns white; soft black outline, lower third. The news-explainer look. |\n| ![numeral](docs\u002Fstills\u002Fnumeral.jpg)\u003Cbr>**numeral** *(behind you)*\u003Cbr>Numbers, years and names go giant behind the speaker, digits rolling into place like an odometer; everything else stays small in front. | ![outline](docs\u002Fstills\u002Foutline.jpg)\u003Cbr>**outline** *(behind you)*\u003Cbr>A giant hollow word behind the speaker that draws on, then fills with colour as it is spoken; a small bold line in front. | ![poster](docs\u002Fstills\u002Fposter.jpg)\u003Cbr>**poster** *(behind you)*\u003Cbr>Two or three words stacked behind the speaker, each line a different face fitted to the same width, like a film poster's title block. | ![punch](docs\u002Fstills\u002Fpunch.jpg)\u003Cbr>**punch**\u003Cbr>Heavy upper-case sans that pops in word by word with overshoot; the spoken word swells and turns lime, thick black outline. The short-form creator look. |\n| ![quiet](docs\u002Fstills\u002Fquiet.jpg)\u003Cbr>**quiet**\u003Cbr>Lowercase medium sans, each line rises gently into place; no box, a refined soft shadow. The premium brand-film look. | ![rise](docs\u002Fstills\u002Frise.jpg)\u003Cbr>**rise** *(behind you)*\u003Cbr>The giant word climbs out from behind the speaker's shoulders letter by letter, and sinks back when the word is done. | ![serif](docs\u002Fstills\u002Fserif.jpg)\u003Cbr>**serif**\u003Cbr>Display serif italic filled with a top-lit silver gradient; quiet and luxurious. | ![shine](docs\u002Fstills\u002Fshine.jpg)\u003Cbr>**shine**\u003Cbr>Serif italic in one accent colour; a diagonal band of light sweeps across each word, then a soft glow fades. |\n| ![split](docs\u002Fstills\u002Fsplit.jpg)\u003Cbr>**split**\u003Cbr>Words alternate to the two sides of the speaker and step down around the head like a staircase, never over the face. | ![stack](docs\u002Fstills\u002Fstack.jpg)\u003Cbr>**stack**\u003Cbr>A tilted, overlapping pile of words, each at its own size and angle, key words in yellow; the tilt mirrors on alternate pages. | ![sticker](docs\u002Fstills\u002Fsticker.jpg)\u003Cbr>**sticker**\u003Cbr>Rounded pink bubbles, one per line, each new line offset to the right of the last and stacked like typed messages; the stack tilts a little more on every page. Words are dark until spoken, then white. | ![terminal](docs\u002Fstills\u002Fterminal.jpg)\u003Cbr>**terminal**\u003Cbr>Green monospace typed character by character with a blinking block cursor. |\n| ![ticket](docs\u002Fstills\u002Fticket.jpg)\u003Cbr>**ticket**\u003Cbr>A hard-edged label tight around the text, tilted a different angle on every page. The hot word sits alone on a big label, filler phrases on a small one. Hard cuts. Colourway: yellow. | ![title](docs\u002Fstills\u002Ftitle.jpg)\u003Cbr>**title**\u003Cbr>A typed title whose letter spacing collapses as the letters arrive, with a small handwritten note under it. | ![whisper](docs\u002Fstills\u002Fwhisper.jpg)\u003Cbr>**whisper**\u003Cbr>Lowercase warm-yellow text; each word is revealed by a soft left-to-right wipe and the page dissolves with a blur. |  |\n\nA style is one JSON file in `styles\u002F` plus one small component in `template\u002Fsrc\u002Fstyles\u002F`. Copy a preset, change the\nfont, colours, size or timing, and pass its path to `--style`. Some styles have colourways: `--style ticket:yellow`.\n`python3 scripts\u002Fsubtle.py --list-styles` prints them all.\n\n## Use it from the command line\n\n```bash\npython3 scripts\u002Fsubtle.py talk.mp4                          # glide\npython3 scripts\u002Fsubtle.py talk.mp4 --style glass            # frosted-glass pill\npython3 scripts\u002Fsubtle.py talk.mp4 --style keyword          # a giant keyword behind the speaker\npython3 scripts\u002Fsubtle.py talk.mp4 --style cover --legibility off --palette off   # behind a headline, preset colours\npython3 scripts\u002Fsubtle.py talk.mp4 --style ticket:yellow    # a colourway of a style\npython3 scripts\u002Fsubtle.py talk.mp4 --style accent --emphasis-words 'gold, $5,000' --vocab \"Meera, RBI\"\npython3 scripts\u002Fsubtle.py talk.mp4 --emphasis numbers       # highlight only numbers, prices, percentages and years\npython3 scripts\u002Fsubtle.py talk.mp4 --hinglish               # Hindi written in Latin letters\npython3 scripts\u002Fsubtle.py talk.mp4 --lang es                # Spanish (detected by itself when --lang is left out)\npython3 scripts\u002Fsubtle.py talk.mp4 --aspect 9:16            # centre-crop first\npython3 scripts\u002Fsubtle.py talk.mp4 --placement off --cuts off   # keep the style's own position, ignore cuts\npython3 scripts\u002Fsubtle.py talk.mp4 --behind off             # draw giant words in front, never behind\npython3 scripts\u002Fsubtle.py talk.mp4 --captions talk.captions.json   # re-render after editing the captions\n```\n\nThe transcript is cached by the file's hash, so trying another style does not transcribe again.\n\n## Limits\n\n- The behind-the-speaker effect (`keyword`, `cover`, `outline`, `poster`, `rise`, `numeral`) works best with one person and a steady camera. Fine hair, fast hand\n  movement and fast pans show at the matte edge. Subtle checks the subject first and draws the words in front when it\n  would look bad.\n- Styles without a container (soft-shadow text) can be hard to read on bright or busy footage; the check warns about\n  low contrast and suggests `glass`, `chip` or `block`.\n- Whisper spells Hindi words in Latin letters unevenly. Read the transcript before rendering and fix words with\n  `--replace heard=Shown`.\n- A giant number is never put behind the speaker in `keyword` (hidden digits would change it): it is drawn in front. `numeral` is built for numerals behind the speaker.\n- Word timings come from Whisper's attention, not forced alignment. They are usually within a frame or two; very fast\n  speech can drift.\n\n## Licences\n\nSubtle's code is MIT. The bundled fonts are under the SIL Open Font License. The default renderer uses\n[Remotion](https:\u002F\u002Fwww.remotion.dev), which is free for individuals and companies of up to 3 people; larger companies\nneed a Remotion company licence. Details for every dependency are in [THIRD_PARTY.md](THIRD_PARTY.md).\n\nThe showcase site (`site\u002F`) uses a third-party clip for demo only. That media is not in this repo; see\n[site\u002FREADME.md](site\u002FREADME.md) for how to make your own.\n\nHow the pieces fit together: [docs\u002FARCHITECTURE.md](docs\u002FARCHITECTURE.md).\n\n---\n\nMade by [Refs](https:\u002F\u002Frefs.video).\n",2,"2026-11-24 04:55:13","CREATED_QUERY"]