Skip to content

Commit bfa6502

Browse files
dylanpulverclaude
andcommitted
add animated demo GIF as README hero
Faithful frame-by-frame recreation of the real flow (agent runs keypop → native dialog collects the value → terminal shows only 'saved: … (164 chars)'), rendered deterministically from assets/demo.html via headless Chrome + ffmpeg (assets/build-demo.sh, reproducible). Static social.png stays as the OG preview. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ALLd6FVagpVcJwtwgKH91a
1 parent 515b434 commit bfa6502

4 files changed

Lines changed: 141 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<p align="center"><img src="assets/social.png" alt="keypop — stop pasting API keys into Claude Code and Cursor; your agent asks for a secret it never sees" width="640"></p>
2-
31
<h1 align="center">🔑 keypop</h1>
42

53
<p align="center"><b>Stop pasting API keys into Claude Code, Cursor, and other AI agents.</b><br>
@@ -13,6 +11,8 @@ keypop pops a native dialog so your agent collects a secret it never sees — th
1311
<a href="SECURITY.md"><img src="https://img.shields.io/badge/security-model-informational.svg" alt="Security model"></a>
1412
</p>
1513

14+
<p align="center"><img src="assets/demo.gif" alt="keypop demo: an agent runs keypop, a native dialog collects the API key, the terminal shows only 'saved: OPENAI_API_KEY (164 chars)'" width="760"></p>
15+
1616
---
1717

1818
A secure secret-intake channel for AI coding agents (Claude Code, Cursor, etc.).

assets/build-demo.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
# build-demo.sh — render assets/demo.html frame-by-frame with headless Chrome and
3+
# stitch them into assets/demo.gif with ffmpeg. Reproducible; no screen recording needed.
4+
set -euo pipefail
5+
DIR="$(cd "$(dirname "$0")" && pwd)"
6+
CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
7+
TMP="$(mktemp -d)"
8+
9+
# per-frame hold time in seconds (index = frame number)
10+
holds=(1.4 1.0 0.5 1.1 1.6 0.8 1.8 1.9)
11+
12+
for f in "${!holds[@]}"; do
13+
"$CHROME" --headless=new --disable-gpu --hide-scrollbars --force-device-scale-factor=2 \
14+
--window-size=1000,600 --screenshot="$TMP/frame-$f.png" \
15+
"file://$DIR/demo.html?frame=$f" >/dev/null 2>&1
16+
done
17+
18+
# concat list with per-frame durations
19+
: > "$TMP/list.txt"
20+
for f in "${!holds[@]}"; do
21+
printf "file '%s/frame-%s.png'\nduration %s\n" "$TMP" "$f" "${holds[$f]}" >> "$TMP/list.txt"
22+
done
23+
# ffmpeg needs the last frame repeated once more for the final duration to apply
24+
printf "file '%s/frame-%s.png'\n" "$TMP" "$((${#holds[@]}-1))" >> "$TMP/list.txt"
25+
26+
# two-pass palette for a clean GIF, downscaled to 1000px wide
27+
ffmpeg -y -f concat -safe 0 -i "$TMP/list.txt" -vf "scale=1000:-1:flags=lanczos,palettegen=stats_mode=diff" "$TMP/pal.png" >/dev/null 2>&1
28+
ffmpeg -y -f concat -safe 0 -i "$TMP/list.txt" -i "$TMP/pal.png" \
29+
-lavfi "scale=1000:-1:flags=lanczos[x];[x][1:v]paletteuse=dither=bayer:bayer_scale=3" \
30+
"$DIR/demo.gif" >/dev/null 2>&1
31+
32+
echo "wrote $DIR/demo.gif"
33+
ls -lh "$DIR/demo.gif"

assets/demo.gif

215 KB
Loading

assets/demo.html

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
<!doctype html>
2+
<meta charset="utf-8">
3+
<style>
4+
* { margin: 0; padding: 0; box-sizing: border-box; }
5+
html, body { width: 1000px; height: 600px; }
6+
body {
7+
background: radial-gradient(1000px 500px at 30% 15%, #16233f 0%, #0b1220 55%, #070b14 100%);
8+
font-family: -apple-system, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
9+
color: #e8eef8; position: relative; overflow: hidden;
10+
}
11+
/* terminal window */
12+
.term {
13+
position: absolute; left: 70px; top: 96px; width: 860px; height: 300px;
14+
background: #0d1526; border: 1px solid #22304d; border-radius: 12px;
15+
box-shadow: 0 24px 60px rgba(0,0,0,.5); padding: 0 0 18px;
16+
}
17+
.bar { height: 34px; display: flex; align-items: center; padding: 0 14px; gap: 8px; border-bottom: 1px solid #1b2740; }
18+
.dot { width: 12px; height: 12px; border-radius: 50%; }
19+
.r{background:#ff5f57}.y{background:#febc2e}.g{background:#28c840}
20+
.bar span { margin-left: 10px; color: #6b7a99; font-size: 13px; }
21+
.body { padding: 16px 20px; font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 18px; line-height: 1.7; }
22+
.prompt { color: #5ed6a0; }
23+
.cmd { color: #e8eef8; }
24+
.out { color: #8aa0c6; }
25+
.out b { color: #d7e3f7; font-weight: 600; }
26+
.hidden { display: none; }
27+
/* dialog */
28+
.dlg {
29+
position: absolute; left: 50%; top: 210px; transform: translateX(-50%);
30+
width: 460px; background: #ecedef; color: #1d1d1f; border-radius: 14px;
31+
box-shadow: 0 30px 80px rgba(0,0,0,.6); padding: 22px 24px 18px; opacity: 1;
32+
}
33+
:root[data-dlg="off"] .dlg { display: none; }
34+
.dlg .icon { font-size: 34px; margin-bottom: 8px; }
35+
.dlg h2 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
36+
.dlg p { font-size: 13.5px; color: #55555b; margin-bottom: 14px; }
37+
.field {
38+
background: #fff; border: 1px solid #c9c9ce; border-radius: 7px; height: 40px;
39+
display: flex; align-items: center; padding: 0 12px; font-size: 17px; letter-spacing: 1px;
40+
font-family: "SF Mono", ui-monospace, Menlo, monospace; color: #1d1d1f;
41+
}
42+
.caret { display: inline-block; width: 1.5px; height: 20px; background: #1a73e8; margin-left: 1px; }
43+
.btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
44+
.btn { font-size: 13.5px; padding: 6px 16px; border-radius: 7px; border: 1px solid #c4c4c9; background: #fbfbfd; color: #1d1d1f; }
45+
.btn.primary { background: #1a73e8; border-color: #1a73e8; color: #fff; }
46+
.btn.hot { box-shadow: 0 0 0 3px rgba(26,115,232,.35); }
47+
/* caption */
48+
.cap {
49+
position: absolute; left: 0; right: 0; bottom: 34px; text-align: center;
50+
font-size: 20px; font-weight: 600; color: #cdd8ea;
51+
}
52+
.cap b { color: #6ea8ff; }
53+
</style>
54+
<body>
55+
<div class="term">
56+
<div class="bar"><i class="dot r"></i><i class="dot y"></i><i class="dot g"></i><span>agent — keypop</span></div>
57+
<div class="body">
58+
<div><span class="prompt">$</span> <span class="cmd" id="cmd"></span></div>
59+
<div class="out hidden" id="out">saved: <b>OPENAI_API_KEY (164 chars)</b></div>
60+
</div>
61+
</div>
62+
63+
<div class="dlg">
64+
<div class="icon">🔑</div>
65+
<h2>Needed: OPENAI_API_KEY</h2>
66+
<p id="note">for embeddings</p>
67+
<div class="field"><span id="fieldval"></span><span class="caret" id="caret"></span></div>
68+
<div class="btns">
69+
<div class="btn">Cancel all</div>
70+
<div class="btn" id="toggle">Reveal</div>
71+
<div class="btn primary" id="save">Save</div>
72+
</div>
73+
</div>
74+
75+
<div class="cap" id="cap"></div>
76+
77+
<script>
78+
const F = parseInt(new URLSearchParams(location.search).get('frame') || '0', 10);
79+
const dots = n => '•'.repeat(n);
80+
const set = (id, v) => { document.getElementById(id).textContent = v; };
81+
const show = (id, on) => { document.getElementById(id).classList.toggle('hidden', !on); };
82+
// per-frame state: dialog on/off, command text, field content, toggle label, save-hot, output, caption
83+
const S = {
84+
0: {dlg:'off', cmd:'keypop OPENAI_API_KEY:"for embeddings"', cap:'Your agent needs a key. It runs <b>keypop</b>.'},
85+
1: {dlg:'on', field:'', toggle:'Reveal', cap:'A native dialog pops on <b>your</b> screen.'},
86+
2: {dlg:'on', field:dots(9), toggle:'Reveal', cap:'You paste the value. Masked by default.'},
87+
3: {dlg:'on', field:dots(24), toggle:'Reveal', cap:'You paste the value. Masked by default.'},
88+
4: {dlg:'on', field:'sk-proj-9f2a…e71', toggle:'Hide', reveal:true, cap:'<b>Reveal</b> to check the paste landed right.'},
89+
5: {dlg:'on', field:'sk-proj-9f2a…e71', toggle:'Hide', reveal:true, save:true, cap:'Save.'},
90+
6: {dlg:'off', out:true, cap:'The agent sees only <b>“164 chars”</b> — never the value.'},
91+
7: {dlg:'off', out:true, cap:'Secrets never touch the chat, transcript, or logs.'},
92+
};
93+
const s = S[F] || S[0];
94+
document.documentElement.setAttribute('data-dlg', s.dlg);
95+
set('cmd', s.cmd !== undefined ? s.cmd : 'keypop OPENAI_API_KEY:"for embeddings"');
96+
if (s.field !== undefined) set('fieldval', s.field);
97+
if (s.toggle) set('toggle', s.toggle);
98+
if (s.save) document.getElementById('save').classList.add('hot');
99+
// caret only visible while typing (frames 1-3), monospace field
100+
document.getElementById('caret').style.display = (F>=1 && F<=3) ? 'inline-block' : 'none';
101+
// plaintext (revealed) uses normal spacing
102+
if (s.reveal) document.getElementById('fieldval').style.letterSpacing = '0';
103+
show('out', !!s.out);
104+
document.getElementById('cap').innerHTML = s.cap || '';
105+
</script>
106+
</body>

0 commit comments

Comments
 (0)