Skip to content

po4yka/RIPDPI / docs/design/rds

ripdpi-design

Verified

Use this skill to generate well-branded interfaces and assets for RIPDPI (an Android-native, Compose-first VPN and DPI-bypass app), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, brand-ship icons, and an interactive UI kit of every public composable from the live ui/components tree.

FileKindSize
COVERAGE.mdmarkdown23.0 KB
README.mdmarkdown19.6 KB
SKILL.mdskill md4.0 KB
assets/ic_launcher.pngbinary9.7 KB
assets/ic_launcher.svgother3.0 KB
assets/icons/ic_article_outline.svgother315 B
assets/icons/ic_launcher_foreground_ripdpi_clean.svgother3.0 KB
assets/icons/ic_launcher_foreground_ripdpi_cracked.svgother6.6 KB
assets/icons/ic_launcher_foreground_ripdpi_disintegrate.svgother9.5 KB
assets/icons/ic_launcher_foreground_ripdpi_glitch.svgother8.4 KB
assets/icons/ic_launcher_foreground_ripdpi_rubble.svgother7.8 KB
assets/icons/ic_launcher_foreground_ripdpi_stitch.svgother13.3 KB
assets/icons/ic_launcher_monochrome_ripdpi.svgother3.0 KB
assets/icons/ic_notification.svgother270 B
assets/icons/ic_settings_outline.svgother1.0 KB
assets/icons/ic_stop_outline.svgother153 B
assets/icons/ic_tune_outline.svgother244 B
assets/icons/ic_vpn_key_outline.svgother296 B
assets/icons/ripdpi_wordmark.svgother34.6 KB
assets/raw/ic_article_outline.xmlconfig552 B
assets/raw/ic_launcher_foreground_ripdpi_clean.xmlconfig3.4 KB
assets/raw/ic_launcher_foreground_ripdpi_cracked.xmlconfig7.0 KB
assets/raw/ic_launcher_foreground_ripdpi_disintegrate.xmlconfig10.1 KB
assets/raw/ic_launcher_foreground_ripdpi_glitch.xmlconfig8.7 KB
assets/raw/ic_launcher_foreground_ripdpi_rubble.xmlconfig8.4 KB
assets/raw/ic_launcher_foreground_ripdpi_stitch.xmlconfig13.5 KB
assets/raw/ic_launcher_monochrome_ripdpi.xmlconfig3.4 KB
assets/raw/ic_notification.xmlconfig3.4 KB
assets/raw/ic_settings_outline.xmlconfig1.2 KB
assets/raw/ic_stop_outline.xmlconfig338 B
assets/raw/ic_tune_outline.xmlconfig429 B
assets/raw/ic_vpn_key_outline.xmlconfig481 B
colors_and_type.cssother12.2 KB
diagnostic-reports-index.htmlother4.8 KB
fonts/geist_mono_bold.ttfbinary146.8 KB
fonts/geist_mono_medium.ttfbinary145.7 KB
fonts/geist_mono_regular.ttfbinary144.9 KB
fonts/geist_sans_bold.ttfbinary125.7 KB
fonts/geist_sans_medium.ttfbinary124.6 KB
fonts/geist_sans_regular.ttfbinary123.0 KB
mobile-diagnostic-report.htmlother12.0 KB
mobile-elements-showcase.htmlother19.3 KB
mobile-vpn-connection.htmlother12.2 KB
preview/a11y-color-contrast.htmlother8.3 KB
preview/a11y-focus-rings.htmlother6.5 KB
preview/android-crash-screen.htmlother2.3 KB
preview/android-customization.htmlother3.0 KB
preview/android-glance-widget.htmlother4.0 KB
preview/android-history.htmlother2.3 KB
preview/android-nav-bar.htmlother1.6 KB
preview/android-nav-rail.htmlother3.2 KB
preview/android-notif-foreground.htmlother3.4 KB
preview/android-notif-heads-up.htmlother2.5 KB
preview/android-notif-lock-screen.htmlother2.3 KB
preview/android-permission-rationale.htmlother3.0 KB
preview/android-qs-tile.htmlother2.3 KB
preview/android-scanner.htmlother1.9 KB
preview/android-splash.htmlother1.4 KB
preview/android-split-columns.htmlother2.1 KB
preview/android-status-bar.htmlother2.9 KB
preview/android-vpn-permission.htmlother2.0 KB
preview/brand-launcher-variants.htmlother4.7 KB
preview/brand-mark.htmlother3.4 KB
preview/color-anchors.htmlother2.0 KB
preview/color-destructive.htmlother1.9 KB
preview/color-edges.htmlother3.4 KB
preview/color-info.htmlother1.8 KB
preview/color-neutrals.htmlother3.3 KB
preview/color-restricted.htmlother1.9 KB
preview/color-success.htmlother1.8 KB
preview/color-warning.htmlother1.8 KB
preview/components-accordion.htmlother6.2 KB
preview/components-actuator-states.htmlother8.8 KB
preview/components-actuator.htmlother6.6 KB
preview/components-analysis-progress.htmlother2.1 KB
preview/components-bottom-nav.htmlother2.1 KB
preview/components-bottom-sheet.htmlother2.0 KB
preview/components-brand-badge.htmlother2.6 KB
preview/components-buttons.htmlother2.5 KB
preview/components-card.htmlother2.1 KB
preview/components-chips.htmlother1.6 KB
preview/components-cidr-input.htmlother5.0 KB
preview/components-combobox.htmlother6.8 KB
preview/components-command-palette.htmlother7.3 KB
preview/components-dialog.htmlother2.1 KB
preview/components-diff-viewer.htmlother6.6 KB
preview/components-dropdown.htmlother2.6 KB
preview/components-empty-state.htmlother1.5 KB
preview/components-filter-bar.htmlother5.9 KB
preview/components-heartbeat-indicator.htmlother6.4 KB
preview/components-icon-buttons.htmlother3.9 KB
preview/components-json-tree.htmlother7.7 KB
preview/components-kbd-shortcut.htmlother4.2 KB
preview/components-live-counter.htmlother7.3 KB
preview/components-log-row.htmlother2.5 KB
preview/components-log-stream.htmlother7.5 KB
preview/components-metric-pill.htmlother1.7 KB
preview/components-page-indicators.htmlother1.4 KB
preview/components-preset-card.htmlother2.0 KB
preview/components-progress-bar.htmlother4.8 KB
preview/components-section-header.htmlother1.7 KB
preview/components-segmented.htmlother4.3 KB
preview/components-settings-row.htmlother2.0 KB
preview/components-shimmer.htmlother3.9 KB
preview/components-slider.htmlother6.6 KB
preview/components-snackbar.htmlother3.0 KB
preview/components-spinner.htmlother1.8 KB
preview/components-stage-progress.htmlother1.9 KB
preview/components-stale-data-badge.htmlother5.8 KB
preview/components-status-indicator.htmlother1.9 KB
preview/components-stepper.htmlother7.0 KB
preview/components-switch.htmlother1.8 KB
preview/components-tabs.htmlother4.6 KB
preview/components-text-action.htmlother2.2 KB
preview/components-text-field.htmlother1.8 KB
preview/components-toggle-alternatives.htmlother2.4 KB
preview/components-tooltip.htmlother2.0 KB
preview/components-top-app-bar.htmlother2.3 KB
preview/components-warning-banner.htmlother3.1 KB
preview/diagnostic-censorship-signature.htmlother8.1 KB
preview/diagnostic-dns-resolvers.htmlother10.1 KB
preview/diagnostic-hop-trace.htmlother7.1 KB
preview/diagnostic-mtu-scan.htmlother7.4 KB
preview/diagnostic-port-matrix.htmlother7.5 KB
preview/diagnostic-report-summary.htmlother5.2 KB
preview/gesture-long-press-menu.htmlother6.9 KB
preview/gesture-pull-to-refresh.htmlother8.5 KB
preview/gesture-swipe-actions.htmlother7.4 KB
preview/icon-set.htmlother2.9 KB
preview/motion-connection-states.htmlother7.5 KB
preview/motion-data-ticker.htmlother5.5 KB
preview/motion-easing-curves.htmlother4.6 KB
preview/motion-page-transitions.htmlother6.0 KB
preview/motion-probe-pulse.htmlother5.4 KB
preview/motion-reduced-motion.htmlother6.7 KB
preview/motion-skeleton-shimmer.htmlother5.8 KB
preview/motion-toast-choreography.htmlother8.4 KB
preview/motion-tokens.htmlother2.8 KB
preview/onboarding-coach-mark.htmlother7.6 KB
preview/onboarding-tour-cards.htmlother5.6 KB
preview/preview.cssother1.9 KB
preview/radii.htmlother3.8 KB
preview/share-bottom-sheet.htmlother5.6 KB
preview/share-link-preview.htmlother5.1 KB
preview/share-qr-code.htmlother5.2 KB
preview/share-result-viewer.htmlother3.5 KB
preview/share-stats-card.htmlother3.5 KB
preview/spacing-scale.htmlother3.6 KB
preview/strokes.htmlother1.3 KB
preview/touch-targets.htmlother1.9 KB
preview/type-body.htmlother1.4 KB
preview/type-brand.htmlother1.1 KB
preview/type-display.htmlother1.4 KB
preview/type-mono.htmlother1.4 KB
preview/type-section-title.htmlother1.3 KB
preview/vpn-awg-editor.htmlother12.6 KB
preview/vpn-block-check.htmlother3.5 KB
preview/vpn-confirm-disconnect.htmlother2.4 KB
preview/vpn-data-transparency.htmlother3.9 KB
preview/vpn-degradation-strip.htmlother5.5 KB
preview/vpn-detection-check.htmlother3.7 KB
preview/vpn-dns-picker.htmlother3.4 KB
preview/vpn-export-consent.htmlother3.6 KB
preview/vpn-first-run-test.htmlother5.1 KB
preview/vpn-handshake-timeline.htmlother9.7 KB
preview/vpn-identity-card.htmlother2.8 KB
preview/vpn-in-app-browser.htmlother3.9 KB
preview/vpn-kill-switch.htmlother3.7 KB
preview/vpn-latency-graph.htmlother2.9 KB
preview/vpn-network-change.htmlother2.9 KB
preview/vpn-oom-recovery.htmlother2.4 KB
preview/vpn-pcap-viewer.htmlother3.1 KB
preview/vpn-per-app-routing.htmlother3.9 KB
preview/vpn-permission-summary.htmlother3.4 KB
preview/vpn-presets-gallery.htmlother3.3 KB
preview/vpn-probe-live.htmlother3.0 KB
preview/vpn-profile-switcher.htmlother2.9 KB
preview/vpn-quick-vs-advanced.htmlother3.0 KB
preview/vpn-reconnect-toast.htmlother5.9 KB
preview/vpn-relay-picker.htmlother4.0 KB
preview/vpn-replay-failure.htmlother3.6 KB
preview/vpn-session-card.htmlother7.2 KB
preview/vpn-snooze.htmlother2.9 KB
preview/vpn-state-history.htmlother9.2 KB
preview/vpn-state-machine.htmlother11.4 KB
preview/vpn-strategy-ab.htmlother5.0 KB
preview/vpn-strategy-editor.htmlother4.2 KB
preview/vpn-strategy-import.htmlother3.6 KB
preview/vpn-strategy-probe-wizard.htmlother3.8 KB
preview/vpn-throughput-graph.htmlother3.5 KB
preview/whats-new-card.htmlother6.1 KB
ui_kits/android/MobileDiagnosticReport.jsxother33.4 KB
ui_kits/android/MobileElements.jsxother34.1 KB
ui_kits/android/MobileVpnConnection.jsxother36.6 KB
ui_kits/android/README.mdmarkdown3.5 KB
ui_kits/android/RipDpiComponents.jsxother27.1 KB
ui_kits/android/RipDpiScreens.jsxother17.7 KB
ui_kits/android/android-frame.jsxother9.2 KB
ui_kits/android/index.htmlother14.2 KB

mobile-elements-showcase.html

View on GitHub
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>RIPDPI · Mobile element library</title>
<meta name="viewport" content="width=1180, initial-scale=1">
<link rel="stylesheet" href="colors_and_type.css">
<style>
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; min-height: 100vh; }
  body {
    background: var(--rdp-background);
    color: var(--rdp-foreground);
    font: var(--rdp-type-body);
    padding: 40px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
  }
  .info, .controls {
    max-width: 380px;
    display: flex; flex-direction: column; gap: 16px;
    align-self: flex-start;
    position: sticky; top: 40px;
  }
  .info .label { font: var(--rdp-type-section-title); letter-spacing: 0.72px; text-transform: uppercase; color: var(--rdp-muted-foreground); }
  .info h1 { font: var(--rdp-type-screen-title); margin: 0; }
  .info p { color: var(--rdp-muted-foreground); font: var(--rdp-type-body); margin: 0; }
  .info ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
  .info ol li b { font-weight: 500; }
  .info ol li span { color: var(--rdp-muted-foreground); }
  .info code { font: var(--rdp-type-mono-small); }

  .frame-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .frame {
    width: 412px; height: 892px;
    border-radius: 48px;
    border: 10px solid #1A1A1A;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    overflow: hidden;
    display: flex; flex-direction: column;
    position: relative;
  }
  .frame.dark { border-color: #2A2A2A; }
  .frame .notch {
    position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
    width: 22px; height: 22px; border-radius: 99px; background: #2E2E2E; z-index: 10;
  }
  .frame .statusbar {
    height: 36px; padding: 10px 24px;
    display: flex; align-items: center; justify-content: space-between;
    font: var(--rdp-type-mono-small);
    flex-shrink: 0;
  }
  .frame .gesturebar { height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .frame .gesturebar .pill { width: 108px; height: 4px; border-radius: 99px; opacity: 0.5; }
  .frame .scroll { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; }
  .frame .scroll::-webkit-scrollbar { width: 0; }

  .controls > div {
    background: var(--rdp-card);
    border: 1px solid var(--rdp-card-border);
    border-radius: 16px; padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
  }
  .controls .row { display: flex; gap: 8px; flex-wrap: wrap; }
  .ctrl-btn {
    padding: 8px 14px; min-height: 36px;
    border: 1px solid var(--rdp-border);
    background: transparent; color: var(--rdp-foreground);
    border-radius: 12px;
    font: var(--rdp-type-small-label);
    cursor: pointer;
  }
  .ctrl-btn.sel { background: var(--rdp-foreground); color: var(--rdp-background); border-color: var(--rdp-foreground); }
  .ctrl-btn:hover:not(.sel) { background: var(--rdp-accent); }
  .controls .ttl { font: var(--rdp-type-section-title); letter-spacing: 0.72px; text-transform: uppercase; color: var(--rdp-muted-foreground); }

  @keyframes mePulse { 0% { transform: translate(-50%,-50%) scale(0.6); opacity: 0.6; } 100% { transform: translate(-50%,-50%) scale(2); opacity: 0; } }
  @keyframes meShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
  @keyframes meIndet { 0% { left: -35%; } 60% { left: 100%; } 100% { left: 100%; } }
  @keyframes meArrive { from { opacity: 0; transform: translateY(-2px); background: var(--rdp-accent); } to { opacity: 1; transform: translateY(0); } }
  @keyframes meCoachPulse { 0% { transform: translate(-50%,-50%) scale(1); opacity: 1; } 100% { transform: translate(-50%,-50%) scale(1.18); opacity: 0; } }

  @media (max-width: 1100px) {
    body { grid-template-columns: 1fr; place-items: center; }
    .info, .controls { position: static; max-width: 100%; }
  }
</style>
</head>
<body>

<div class="info">
  <div class="label">RIPDPI · Mobile adoption</div>
  <h1>Element library, on a phone.</h1>
  <p>Mobile recomposition of the new RDS primitives — each composed naturally inside a real app screen, not isolated on a spec card.</p>
  <ol>
    <li><b>Live state</b> <span>— heartbeat, live counter, stale badge, progress bar, shimmer</span></li>
    <li><b>Search &amp; filter</b> <span>— command palette, kbd, filter bar, combobox</span></li>
    <li><b>Inputs</b> <span>— slider, segmented, tabs, CIDR input, stepper</span></li>
    <li><b>Data surfaces</b> <span>— log stream, JSON tree, unified diff, accordion</span></li>
    <li><b>Onboarding</b> <span>— coach mark overlay, what's-new sheet</span></li>
  </ol>
  <p style="font: var(--rdp-type-caption); color: var(--rdp-muted-foreground)">Motion specs (easing curves, probe pulse, toast choreography…) and a11y specs (focus rings, contrast pairs) are universal — they apply across every mobile surface and are already manifest in existing mobile screens.</p>
  <p style="font: var(--rdp-type-caption); color: var(--rdp-muted-foreground)">Gestures (pull-to-refresh, swipe-actions, long-press) are mobile-native by definition — see the previews under Design System → Gestures.</p>
  <p style="font: var(--rdp-type-caption); color: var(--rdp-muted-foreground)">Source: <code>ui_kits/android/MobileElements.jsx</code>.</p>
</div>

<div class="frame-wrap">
  <div id="frame-host"></div>
  <div style="font: var(--rdp-type-mono-small); color: var(--rdp-muted-foreground)">412 × 892 · Android compact width</div>
</div>

<div id="controls-host"></div>

<script src="https://unpkg.com/react@18.3.1/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>
<script src="https://unpkg.com/react-dom@18.3.1/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>
<script src="https://unpkg.com/@babel/standalone@7.29.0/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>

<script type="text/babel" src="ui_kits/android/RipDpiComponents.jsx"></script>
<script type="text/babel" src="ui_kits/android/MobileElements.jsx"></script>

<script type="text/babel">
function StatusBarChrome({ dark }) {
  return (
    <div className="statusbar" style={{ color: dark ? '#E8E8E8' : '#1A1A1A' }}>
      <span>9:30</span>
      <span style={{ display: 'inline-flex', gap: 8, alignItems: 'center' }}>
        <svg width="14" height="14" viewBox="0 0 16 16"><path d="M8 13.3L.67 5.97a10.37 10.37 0 0114.66 0L8 13.3z" fill="currentColor"/></svg>
        <svg width="14" height="14" viewBox="0 0 16 16"><path d="M14.67 14.67V1.33L1.33 14.67h13.34z" fill="currentColor"/></svg>
        <svg width="18" height="12" viewBox="0 0 18 12"><rect x="0.5" y="0.5" width="13" height="11" rx="2" fill="none" stroke="currentColor"/><rect x="2" y="2" width="9" height="8" rx="1" fill="currentColor"/><rect x="14" y="4" width="2" height="4" rx="1" fill="currentColor"/></svg>
      </span>
    </div>
  );
}

function Screen() {
  const { c } = useTheme();
  const [tab, setTab] = React.useState('overview');
  const [timeRange, setTimeRange] = React.useState('24 h');
  const [coach, setCoach] = React.useState(false);
  const [whatsNew, setWhatsNew] = React.useState(false);

  return (
    <>
      {/* Top bar */}
      <div style={{ padding: '12px 20px 14px', display: 'flex', alignItems: 'center', gap: 12, borderBottom: `0.5px solid ${c.divider}` }}>
        <div style={{ flex: 1 }}>
          <div style={{ font: `500 18px/22px ${RDP.type.sans}` }}>Elements</div>
          <div style={{ font: `400 12px/16px ${RDP.type.mono}`, color: c.mutedForeground }}>RIPDPI v3.2 · mobile library</div>
        </div>
        <RipDpiIconButton variant="ghost"
          onClick={() => setWhatsNew(true)}
          icon={<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>}/>
        <RipDpiIconButton variant="ghost"
          onClick={() => setCoach(true)}
          icon={<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>}/>
      </div>

      <MTabsUnderline tabs={[
        { id: 'overview', label: 'Overview' },
        { id: 'logs', label: 'Logs', badge: '1.5k' },
        { id: 'tune', label: 'Tune' },
        { id: 'inspect', label: 'Inspect', badge: '3', badgeTone: 'warn' },
        { id: 'issues', label: 'Issues', badge: '2', badgeTone: 'bad' },
      ]} selected={tab} onSelect={setTab}/>

      {tab === 'overview' && (
        <div style={{ padding: '14px 20px 24px', display: 'flex', flexDirection: 'column', gap: 16 }}>
          <SectionHeader>Live state</SectionHeader>
          <RipDpiCard variant="status">
            <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
              <span style={{ display: 'inline-flex', alignItems: 'center', gap: 8 }}>
                <MHeartbeat tone="tunl"/>
                <span style={{ font: `500 13px/16px ${RDP.type.sans}` }}>Tunneling</span>
              </span>
              <MStaleBadge ageMin={0.05}/>
            </div>
            <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 16, paddingTop: 8 }}>
              <div>
                <div style={{ font: `400 9.5px ${RDP.type.mono}`, letterSpacing: 0.4, textTransform: 'uppercase', color: c.mutedForeground }}>RTT p50</div>
                <MLiveCounter value="32" unit="ms"/>
              </div>
              <div>
                <div style={{ font: `400 9.5px ${RDP.type.mono}`, letterSpacing: 0.4, textTransform: 'uppercase', color: c.mutedForeground }}>Throughput</div>
                <MLiveCounter value="2.4" unit="MB/s"/>
              </div>
            </div>
            <MProgressBar label="Quota used this month" value={68} tone="default" sub="6.8 of 10 GB · resets May 31"/>
          </RipDpiCard>

          <SectionHeader>Loading skeleton</SectionHeader>
          <RipDpiCard>
            <div style={{ display: 'flex', flexDirection: 'column', gap: 10 }}>
              <MShimmer height={14} width="60%"/>
              <MShimmer height={10} width="40%"/>
              <div style={{ display: 'grid', gridTemplateColumns: '40px 1fr 60px', gap: 12, alignItems: 'center', paddingTop: 6 }}>
                <MShimmer height={40} width={40} style={{ borderRadius: 9999 }}/>
                <div style={{ display: 'flex', flexDirection: 'column', gap: 4 }}>
                  <MShimmer height={11} width="70%"/>
                  <MShimmer height={9} width="50%"/>
                </div>
                <MShimmer height={14}/>
              </div>
            </div>
          </RipDpiCard>

          <SectionHeader>Inline progress</SectionHeader>
          <RipDpiCard>
            <MProgressBar label="Probe wizard" value={64} sub="3 of 5 hosts checked"/>
            <MProgressBar indet label="Searching relays" sub="cycling through 47 known"/>
          </RipDpiCard>
        </div>
      )}

      {tab === 'logs' && (
        <div style={{ padding: '14px 20px 24px', display: 'flex', flexDirection: 'column', gap: 16 }}>
          <MFilterBar/>
          <MLogStream/>
          <SectionHeader>Recent transitions</SectionHeader>
          <MAccordion items={[
            { title: 'SNI block · youtube.com', sub: 'tls.sni · 0.94 conf', tone: 'bad', meta: '2 evidence', body: 'ClientHello with target SNI dropped silently. Same target with echo SNI completes.' },
            { title: 'RST injection', sub: 'tcp.rst · 0.97 conf', tone: 'bad', meta: '2 evidence' },
            { title: 'QUIC throttling', sub: 'udp.qos · 0.62', tone: 'warn', meta: 'trace' },
            { title: 'ECH accepted', sub: 'tls.ech · 0.88', tone: 'ok', meta: 'bypassed' },
          ]} openIdx={0}/>
        </div>
      )}

      {tab === 'tune' && (
        <div style={{ padding: '14px 20px 24px', display: 'flex', flexDirection: 'column', gap: 16 }}>
          <SectionHeader>Strategy parameters</SectionHeader>
          <RipDpiCard>
            <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
              <span style={{ font: `400 11px ${RDP.type.mono}`, color: c.mutedForeground }}>Window</span>
              <MSegmented options={['1 h', '6 h', timeRange, '7 d'].filter((v, i, a) => a.indexOf(v) === i)} selected={timeRange} onSelect={setTimeRange}/>
            </div>
            <MSlider label="MTU floor" value={1380} unit="b" min={576} max={1500}
              ticks={[{v: 576, label: '576'}, {v: 1000, label: '1000'}, {v: 1280, label: '1280'}, {v: 1500, label: '1500'}]}/>
            <MSlider label="Probe timeout" value={2.5} unit="s" min={0} max={10}
              tone="warn"
              snaps={[{v:0},{v:1},{v:2},{v:2.5},{v:5},{v:10}]}
              ticks={[{v: 0, label: '0 s'}, {v: 2.5, label: '2.5 s'}, {v: 5, label: '5 s'}, {v: 10, label: '10 s'}]}/>
          </RipDpiCard>

          <SectionHeader>Custom relay</SectionHeader>
          <RipDpiCard>
            <MCombobox/>
            <MCidrInput label="Source CIDR · /24" octets={['192','168','1','0']} mask={24}/>
            <MCidrInput label="DNS server" octets={['1','1','1','1']} mask={32}/>
          </RipDpiCard>

          <SectionHeader>Probe wizard</SectionHeader>
          <RipDpiCard>
            <MStepper steps={[
              { name: 'Pick host', desc: 'cloudflare-dns.com · 24 ms' },
              { name: 'TLS ClientHello', desc: 'ECH outer · 192 ms' },
              { name: 'MTU probe', desc: 'binary search · attempt 2 of 5' },
              { name: 'First packet', desc: 'timeout · 8 s budget', failed: true },
              { name: 'Establish', desc: 'awaiting · blocked by step 4' },
            ]} current={2}/>
          </RipDpiCard>
        </div>
      )}

      {tab === 'inspect' && (
        <div style={{ padding: '14px 20px 24px', display: 'flex', flexDirection: 'column', gap: 16 }}>
          <SectionHeader>Diagnostic JSON</SectionHeader>
          <div style={{ font: `400 10px ${RDP.type.mono}`, color: c.mutedForeground }}>path · <span style={{ color: c.foreground }}>.diagnostic.signatures[0]</span></div>
          <MJsonTree/>

          <SectionHeader>Strategy diff</SectionHeader>
          <div style={{ font: `400 10px ${RDP.type.mono}`, color: c.mutedForeground }}>tlsrec_split_host.toml · <span style={{ color: c.success }}>+3</span> · <span style={{ color: c.destructive }}>−2</span></div>
          <MDiffViewer/>
        </div>
      )}

      {tab === 'issues' && (
        <div style={{ padding: '14px 20px 24px', display: 'flex', flexDirection: 'column', gap: 16 }}>
          <SectionHeader>Open issues</SectionHeader>
          <MAccordion items={[
            { title: 'High loss on QUIC', sub: '21.4% · 30 s window', tone: 'bad', meta: 'open', body: 'Loss above kill-switch threshold. Tunnel will tear down unless a new strategy is applied.' },
            { title: 'Stale DNS cache', sub: 'TTL exceeded by 4 m', tone: 'warn', meta: 'open' },
          ]}/>
          <SectionHeader>Shortcuts</SectionHeader>
          <RipDpiCard>
            {[
              { lbl: 'Reconnect tunnel', kbd: ['⌘', 'R'] },
              { lbl: 'Disconnect (confirm)', kbd: ['⌘', '⇧', 'D'] },
              { lbl: 'Open command palette', kbd: ['⌘', 'K'] },
              { lbl: 'Toggle log stream', kbd: ['⌘', 'L'] },
            ].map((s, i) => (
              <div key={s.lbl} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '10px 0', borderTop: i === 0 ? 'none' : `0.5px solid ${c.divider}` }}>
                <span style={{ font: `400 12px ${RDP.type.mono}` }}>{s.lbl}</span>
                <span style={{ display: 'inline-flex', gap: 4 }}>{s.kbd.map(k => <MKbd key={k} size="sm">{k}</MKbd>)}</span>
              </div>
            ))}
          </RipDpiCard>
          <SectionHeader>Command palette · ⌘ K</SectionHeader>
          <MCommandPalette/>
        </div>
      )}

      {coach && <MCoachMark targetTop={160}/>}
      {whatsNew && (
        <div style={{ position: 'absolute', inset: 0, background: 'rgba(0,0,0,0.4)', display: 'flex', alignItems: 'flex-end', zIndex: 6 }} onClick={() => setWhatsNew(false)}>
          <div style={{ width: '100%', padding: 16 }} onClick={e => e.stopPropagation()}>
            <MWhatsNewSheet/>
          </div>
        </div>
      )}
      {(coach || whatsNew) && (
        <div onClick={() => { setCoach(false); setWhatsNew(false); }}
          style={{ position: 'absolute', inset: 0, zIndex: coach && !whatsNew ? 7 : 0, background: 'transparent' }}/>
      )}
    </>
  );
}

const initialState = { dark: false };

function App() {
  const [state, setState] = React.useState(initialState);
  return (
    <RipDpiTheme dark={state.dark}>
      <Host state={state} setState={setState}/>
    </RipDpiTheme>
  );
}

function Host({ state, setState }) {
  const { c, dark } = useTheme();
  return (
    <>
      {ReactDOM.createPortal(
        <div className={'frame' + (dark ? ' dark' : '')} style={{ background: c.background }}>
          <div className="notch"/>
          <StatusBarChrome dark={dark}/>
          <div className="scroll" style={{ background: c.background, color: c.foreground }}>
            <Screen/>
          </div>
          <div className="gesturebar" style={{ background: c.background }}>
            <div className="pill" style={{ background: c.foreground }}/>
          </div>
        </div>,
        document.getElementById('frame-host')
      )}
      {ReactDOM.createPortal(
        <div className="controls">
          <div>
            <div className="ttl">Theme</div>
            <div className="row">
              <button className={'ctrl-btn ' + (!state.dark ? 'sel' : '')} onClick={() => setState(s => ({...s, dark: false}))}>Light</button>
              <button className={'ctrl-btn ' + (state.dark ? 'sel' : '')} onClick={() => setState(s => ({...s, dark: true}))}>Dark</button>
            </div>
          </div>
          <div>
            <div className="ttl">Coverage</div>
            <ul style={{ margin: 0, paddingLeft: 18, font: 'var(--rdp-type-mono-small)', color: 'var(--rdp-muted-foreground)', lineHeight: 1.7 }}>
              <li><b style={{color:'var(--rdp-foreground)'}}>Live state</b> — Overview tab</li>
              <li><b style={{color:'var(--rdp-foreground)'}}>Search · filter</b> — Logs tab</li>
              <li><b style={{color:'var(--rdp-foreground)'}}>Inputs · slider · stepper</b> — Tune tab</li>
              <li><b style={{color:'var(--rdp-foreground)'}}>JSON · diff · accordion</b> — Inspect tab</li>
              <li><b style={{color:'var(--rdp-foreground)'}}>Command palette · kbd</b> — Issues tab</li>
              <li><b style={{color:'var(--rdp-foreground)'}}>Coach mark</b> — ? icon in top bar</li>
              <li><b style={{color:'var(--rdp-foreground)'}}>What's new sheet</b> — ⓘ icon in top bar</li>
            </ul>
          </div>
        </div>,
        document.getElementById('controls-host')
      )}
    </>
  );
}

ReactDOM.createRoot(document.body.appendChild(document.createElement('div'))).render(<App/>);
</script>
</body>
</html>
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall