README Source History Refs Reviews Compare Notes Search Review guide Add a branded social preview card for the repository (#34) b0c7ba9b592984d963261b0c8a4dde30fa8cf225
Oliver Jan Krylow <oliver@bugabinga.net > · 19 Jul 2026
SSH signature · not checked
Browse files Compare with HEAD
Shared links to the repo currently render GitHub's blank Open Graph
card,
which says nothing about what smith is. A terminal-window card carrying
the
wordmark, the one-line pitch, and the status bar the TUI actually shows
lets a
reader grasp the product before the first click.
GitHub offers no API for this — the card is applied by hand under
Settings.
So the raster is committed alongside its Chromium-rendered source rather
than
generated by the build, keeping the asset reproducible without touching
the
cargo-only toolchain. New files live under docs/assets/ (image, HTML
source,
README).
Co-authored-by: Claude <noreply@anthropic.com> Changed files (3) +211 / −0 text lines · 1 binary (striped old/new sizes in 64-byte units, not churn) · lines and sizes scale separately
Diff layout Auto Unified Split
docs/assets/README.md Added new file mode 100644+28 / −0 text lines
3 + Repository imagery. Currently: the GitHub **social preview** card.7 + The image GitHub shows when the repo is shared on social platforms (the Open8 + Graph card). Sized to GitHub's recommended **1280×640** with every meaningful9 + element kept inside the 40px safe border so previews are never cropped.11 + GitHub exposes no API for this — apply it by hand:12 + **Settings → General → Social preview → Edit → Upload an image.**16 + `social-preview.png` is rendered from `social-preview.html` (Catppuccin Mocha,17 + the spec's default theme example) with headless Chromium. The window renders18 + short when the page body equals the viewport, so render on a taller canvas and19 + crop the top 1280×640:22 + chromium --headless= new --force-device-scale-factor= 1 \23 + --window-size= 1280,760 --default-background-color= 00000000 \24 + --screenshot= full.png docs/assets/social-preview.html28 + Edit the HTML, re-render, and commit both files together.docs/assets/social-preview.html Added new file mode 100644+183 / −0 text lines
11 + <meta charset="utf-8" >27 + * { margin : 0 ; padding : 0 ; box-sizing : border-box ; }28 + html , body { width : 1280 px ; height : 640 px ; }31 + font-family : "DejaVu Sans Mono" , "Liberation Mono" , monospace ;33 + radial-gradient (1100 px 720 px at 80 % -14 % , rgba (203 ,166 ,247 ,0.16 ), transparent 60 % ),34 + radial-gradient (900 px 620 px at 6 % 118 % , rgba (137 ,180 ,250 ,0.13 ), transparent 60 % ),36 + -webkit-font-smoothing : antialiased ;42 + top : 48 px ; left : 72 px ;43 + width : 1136 px ; height : 544 px ; 44 + background : linear-gradient (180 deg , #24243a 0 % , var(--base) 24 % );45 + border : 1 px solid #3a3a52 ;47 + box-shadow : 0 34 px 90 px rgba (0 ,0 ,0 ,0.55 ), inset 0 1 px 0 rgba (255 ,255 ,255 ,0.04 );53 + top : 0 ; left : 0 ; right : 0 ;58 + background : rgba (17 ,17 ,27 ,0.5 );59 + border-bottom : 1 px solid #2a2a3d ;62 + .dot { width : 13 px ; height : 13 px ; border-radius : 50 % ; }63 + .dot.r { background : var (--red ); }64 + .dot.y { background : var (--yellow ); }65 + .dot.g { background : var (--green ); }68 + color : var (--overlay );75 + top : 48 px ; bottom : 48 px ; left : 0 ; right : 0 ;77 + flex-direction : column ;78 + justify-content : center ;82 + .wordmark { display : flex ; align-items : baseline ; }87 + letter-spacing : -2 px ;88 + background : linear-gradient (92 deg , var(--mauve) 0 % , var (--blue ) 56 % , var (--teal ) 100 % );89 + -webkit-background-clip : text ;90 + background-clip : text ;94 + display : inline-block ;95 + width : 24 px ; height : 84 px ;96 + background : var (--peach );99 + box-shadow : 0 0 26 px rgba (250 ,179 ,135 ,0.5 );107 + .tagline .accent { color : var (--peach ); }117 + color : var (--subtext );118 + background : rgba (49 ,50 ,68 ,0.5 );119 + border : 1 px solid #3a3a52 ;120 + border-radius : 999 px ;123 + .chip b { color : var (--text ); font-weight : bold ; }128 + bottom : 0 ; left : 0 ; right : 0 ;130 + background : rgba (17 ,17 ,27 ,0.85 );131 + border-top : 1 px solid #2a2a3d ;133 + align-items : center ;136 + color : var (--subtext );139 + .statusbar .seg { display : flex ; align-items : center ; gap: 10 px ; }140 + .statusbar .sep { color : #3a3a52 ; }141 + .statusbar .ok { color : var (--green ); }142 + .statusbar .blue { color : var (--blue ); }143 + .statusbar .peach { color : var (--peach ); }144 + .statusbar .spacer { flex : 1 ; }145 + .bar { display : inline-block ; width : 96 px ; height : 8 px ; border-radius : 4 px ;146 + background : var (--surface ); overflow : hidden ; }147 + .bar > i { display : block ; height : 100 % ; width : 37 % ;148 + background : linear-gradient (90 deg , var(--blue ), var (--teal )); }152 + <div class="window" >153 + <div class="titlebar" >154 + <span class="dot r" ></span ><span class="dot y" ></span ><span class="dot g" ></span >155 + <span class="path" >smith — ~/project</span >159 + <div class="wordmark" >160 + <span class="name" >smith</span >161 + <span class="caret" ></span >163 + <div class="tagline" >A fast, extensible AI coding agent <span class="accent" >for your terminal.</span ></div >164 + <div class="features" >165 + <span class="chip" ><b >Rust</b > TUI</span >166 + <span class="chip" >Provider-independent <b >agent loop</b ></span >167 + <span class="chip" >Sandboxed <b >Lua plugins</b ></span >168 + <span class="chip" >Deterministic <b >replay</b ></span >172 + <div class="statusbar" >173 + <span class="seg" ><span class="blue" >▲</span > smith</span >174 + <span class="sep" >·</span >175 + <span class="seg" >ctx <span class="bar" ><i ></i ></span > 37%</span >176 + <span class="sep" >·</span >177 + <span class="seg" >cost <span class="peach" >$0.12</span ></span >178 + <span class="spacer" ></span >179 + <span class="seg" ><span class="ok" >●</span > ready</span >docs/assets/social-preview.png Added new file mode 100644Binary size (old → new): 0 → 120767 bytes.