# Peers<no value>

<div class="alert alert-info">
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;margin-right:4px"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>
  <strong>Federation Dashboard</strong> — Shows live data from <code>/api/v1/federation/status</code>. Auto-refreshes every 30 seconds. Peers appear here when other relays are connected via the gossip mesh.
</div>

<div id="playground-peers">
  <div id="peer-loader" class="text-center py-4" style="display:block;">
    <div class="spinner-border" role="status"><span class="visually-hidden">Loading...</span></div>
    <p class="mt-2 text-muted">Fetching federation status...</p>
  </div>
</div>

<div class="card mt-4">
  <div class="card-header">
    <button class="btn btn-sm btn-outline-secondary" type="button" data-bs-toggle="collapse" data-bs-target="#peerRawCollapse" aria-expanded="false">
      <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;margin-right:3px"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>
      Raw JSON Response
    </button>
  </div>
  <div class="collapse" id="peerRawCollapse">
    <div class="card-body">
      <pre id="peer-raw" style="background:#1e293b;color:#e2e8f0;padding:0.75rem;border-radius:6px;font-size:0.8rem;max-height:400px;overflow-y:auto;">Loading...</pre>
    </div>
  </div>
</div>

<script src="/js/peers.js"></script>
