LAN-Orangutan is a self-hosted network discovery tool. Find every device on your LAN, label and group them, snapshot your network and compare it later, and get flagged when something unexpected shows up. Single binary, no setup, Tailscale built in. Built by 291 Group.
Go clidevice-discoverygolanghomelabinternet-of-thingslannetwork-discoverynetwork-monitoringnetwork-monitoring-toolnetwork-scannernetworkingnmapsecurityself-hostedselfhostedtailscaletailscale-networkweb-dashboard
<!DOCTYPE html>
<html lang="en" data-theme="{{.Theme}}">
<head>
<script>(function(){try{var t=localStorage.getItem("theme");if(t)document.documentElement.setAttribute("data-theme",t);var a=localStorage.getItem("accent")||"blue";if(a!=="orange")document.documentElement.setAttribute("data-accent",a);if({{if .ContinuousScan}}true{{else}}false{{end}})document.documentElement.classList.add("live-view");}catch(e){}})();</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LAN Orangutan - Network Discovery</title>
<link rel="stylesheet" href="/static/style.css?v={{.Version}}">
<link rel="icon" type="image/svg+xml" href="/static/orangutan.svg">
</head>
<body>
<noscript>
<div class="noscript-screen">
<div class="noscript-card">
<div class="noscript-head">
<img src="/static/orangutan.svg" alt="LAN Orangutan" class="noscript-logo" width="60" height="60">
<div>
<h1>JavaScript is switched off</h1>
<p class="noscript-sub">The web dashboard needs JavaScript to run. Here's what it offers, and how to use LAN Orangutan without it. Pick whichever you prefer.</p>
</div>
</div>
<div class="noscript-cols">
<section class="noscript-panel">
<h2>The web dashboard</h2>
<p>A live, visual view of your network. It uses JavaScript for:</p>
<ul>
<li>Live device updates as the server scans</li>
<li>Running scans, and sorting, filtering, searching</li>
<li>Editing labels and groups, and copying addresses</li>
</ul>
<p class="noscript-action">Allow JavaScript for this site (in your browser or script blocker), then reload.</p>
</section>
<section class="noscript-panel">
<h2>Or the command line</h2>
<p>Same discovery, no browser or JavaScript needed, straight from your terminal:</p>
<pre class="noscript-cli"><code>orangutan scan all # scan your networks
orangutan list # list found devices
orangutan status # service & network status
orangutan export out.csv</code></pre>
<p class="noscript-action-muted">Run <code>orangutan --help</code> to see everything.</p>
</section>
</div>
<p class="noscript-safety"><strong>Is the dashboard safe?</strong> Yes. LAN Orangutan is self-hosted: its JavaScript runs entirely in your own browser against your own server, and makes no third-party or external calls. It is served from this machine at <code>/static/app.js</code>.</p>
<footer class="noscript-footer">
<img src="/static/orangutan.svg" alt="" class="noscript-footer-logo" width="22" height="22">
<span class="noscript-footer-name">LAN Orangutan by 291 Group</span>
<span class="noscript-footer-sep">•</span>
<a href="https://github.com/291-Group/LAN-Orangutan" target="_blank" rel="noopener">github.com/291-Group/LAN-Orangutan</a>
</footer>
</div>
</div>
</noscript>
<header class="header">
<a href="/" class="header-brand">
<img src="/static/orangutan.svg" alt="" class="logo" width="32" height="32">
<h1>LAN Orangutan</h1>
</a>
<nav class="header-nav">
<a href="/" class="nav-link active">Dashboard</a>
<a href="/settings" class="nav-link">Settings</a>
{{if .AuthEnabled}}<a href="/logout" class="nav-link">Sign out</a>{{end}}
<button class="theme-toggle" onclick="toggleTheme()" title="Toggle theme (T)">◐</button>
</nav>
</header>
<main class="main">
{{if .NetworkWarning}}
{{/* Shown when the app cannot reach a real network, which happens in a
container without host networking. Scans would look successful
while reporting devices that do not exist. */}}
<div class="alert alert-warning network-warning">
<strong>No access to your local network.</strong>
{{.NetworkWarning}}
</div>
{{end}}
<!-- Summary strip. On wide screens it pops up into the header's empty
middle as you scroll (transparent + light), snapping in the instant
it touches the header so it is never drawn over it. The docked state
is a class on <body>, and the holder reserves the strip's space, so
the strip is never moved or referenced by JS: an auto-refresh that
swaps it out cannot break the effect, and the page never jumps. See
.stat-strip in the CSS and initStatDock in app.js. -->
<div class="stat-strip-holder">
<div class="stat-strip">
<div class="stat-strip-main">
<div class="stat-item">
<span class="stat-dot dot-total"></span>
<span class="stat-num">{{.Stats.Total}}</span>
<span class="stat-cap">device{{if ne .Stats.Total 1}}s{{end}}</span>
</div>
<span class="stat-sep"></span>
<div class="stat-item">
<span class="stat-dot dot-online"></span>
<span class="stat-num online">{{.Stats.Online}}</span>
<span class="stat-cap">online</span>
</div>
<span class="stat-sep"></span>
<div class="stat-item">
<span class="stat-dot dot-offline"></span>
<span class="stat-num">{{.Stats.Offline}}</span>
<span class="stat-cap">offline</span>
</div>
<span class="stat-sep"></span>
<div class="stat-item">
<span class="stat-num">{{len .Networks}}</span>
<span class="stat-cap">network{{if ne (len .Networks) 1}}s{{end}}</span>
</div>
</div>
<div class="stat-strip-meta">
{{if .Flagged}}
<span class="stat-chip stat-chip-danger stat-chip-filter" data-filter="flagged" role="button" tabindex="0" title="Show the {{.Flagged}} device{{if ne .Flagged 1}}s{{end}} exposing a risky service">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><path d="M12 9v4M12 17h.01"/></svg>
{{.Flagged}} flagged
</span>
{{else if .Stats.Total}}
<span class="stat-chip stat-chip-ok" title="No devices are exposing a risky service">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg>
All clear
</span>
{{end}}
{{if .Moved}}
<span class="stat-chip stat-chip-warn stat-chip-filter" data-filter="moved" role="button" tabindex="0" title="Show the {{.Moved}} device{{if ne .Moved 1}}s{{end}} that changed IP address">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg>
{{.Moved}} moved
</span>
{{end}}
{{if .Unexpected}}
<span class="stat-chip stat-chip-warn stat-chip-filter" data-filter="unexpected" role="button" tabindex="0" title="Show the {{.Unexpected}} online device{{if ne .Unexpected 1}}s{{end}} not marked as expected">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 8v4M12 16h.01"/></svg>
{{.Unexpected}} unexpected
</span>
{{end}}
{{if .Missing}}
<span class="stat-chip stat-chip-danger stat-chip-filter" data-filter="missing" role="button" tabindex="0" title="Show the {{.Missing}} expected device{{if ne .Missing 1}}s{{end}} that {{if ne .Missing 1}}are{{else}}is{{end}} currently offline">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 2h8M12 2v6M5 13a7 7 0 1 0 14 0 7 7 0 0 0-14 0z"/></svg>
{{.Missing}} missing
</span>
{{end}}
{{if or .ContinuousScan .LastScanAt}}
<span class="stat-scan">
<span class="live-indicator"><span class="live-dot"></span>Live</span>{{if .LastScanAt}}<span class="live-sep">·</span><span class="scan-when">scanned <span data-relative-time="{{.LastScanUnix}}">{{.LastScanAgo}}</span></span>{{end}}
</span>
{{end}}
</div>
</div>
</div>
<!-- Networks Section -->
<section class="section">
<h2 class="section-title">Networks</h2>
<div class="network-cards">
{{/* Tailscale gets its own card below, and its interface is a
single-address /32 that there is no point sweeping, so it is
skipped here rather than shown twice. */}}
{{range .Networks}}{{if not .IsTailscale}}
<div class="net-card">
<div class="net-card-top">
<span class="net-icon"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.55a11 11 0 0 1 14 0"/><path d="M8.5 16.1a6 6 0 0 1 7 0"/><path d="M2 8.82a15 15 0 0 1 20 0"/><line x1="12" y1="19.5" x2="12.01" y2="19.5"/></svg></span>
<span class="net-name">{{.FriendlyName}}</span>
<span class="status-badge online">Active</span>
</div>
<div class="net-meta">
<span class="net-mono">{{.CIDR}}</span>
<span class="net-sep">·</span>
<span>{{.Interface}}</span>
</div>
<div class="net-meta net-meta-muted">you <span class="net-mono">{{.IP}}</span></div>
<button class="btn btn-primary btn-sm net-scan" onclick="scanNetwork('{{.CIDR}}')">Scan network</button>
</div>
{{end}}{{end}}
{{if and .Tailscale.Installed .Tailscale.Running}}
<div class="net-card tailscale">
<div class="net-card-top">
<span class="net-icon"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg></span>
<span class="net-name">Tailscale VPN</span>
<span class="status-badge {{if .Tailscale.Connected}}online{{else}}offline{{end}}">{{.Tailscale.StatusLabel}}</span>
</div>
{{/* The IP and peer list linger from the last session after
Tailscale is stopped, so only show them while connected. */}}
{{if .Tailscale.Connected}}
<div class="net-meta">
{{if .Tailscale.SelfIP}}<span class="net-mono">{{.Tailscale.SelfIP}}</span><span class="net-sep">·</span>{{end}}
<span>{{.Tailscale.PeerCount}} peer{{if ne .Tailscale.PeerCount 1}}s{{end}}</span>
</div>
{{else}}
<div class="net-meta net-meta-muted">Not connected</div>
{{end}}
{{if .Tailscale.Installed}}
<div class="tailscale-actions">
{{if .Tailscale.Connected}}
<button class="btn btn-sm net-scan" onclick="disconnectTailscale()">Disconnect</button>
{{else}}
<button class="btn btn-sm btn-primary net-scan" onclick="connectTailscale()">Connect</button>
{{end}}
</div>
<div id="tailscale-message" class="tailscale-message"></div>
{{end}}
</div>
{{end}}
</div>
</section>
<!-- Devices Section -->
<section class="section">
<div class="section-header">
<h2 class="section-title">Discovered Devices</h2>
<div class="section-actions">
<div class="auto-refresh">
<span>Continuous scan</span>
<div class="toggle-switch{{if .ContinuousScan}} active{{end}}" id="continuous-scan-toggle" role="switch" aria-checked="{{if .ContinuousScan}}true{{else}}false{{end}}" tabindex="0" onclick="toggleContinuousScan()" data-tip="On: keeps scanning and the view stays live. Off: a static snapshot you can refresh with Scan All."></div>
</div>
<input type="text" id="device-search" class="input search-input" placeholder="Search devices..." oninput="filterDevices()">
<select id="device-filter" class="select" style="width:auto" onchange="filterDevices()">
<option value="all">All Status</option>
<option value="online">Online</option>
<option value="offline">Offline</option>
</select>
<select id="group-filter" class="select" style="width:auto" onchange="filterDevices()">
<option value="all">All Groups</option>
{{range .Groups}}<option value="{{.}}">{{.}}</option>{{end}}
</select>
<button class="btn" onclick="markAllExpected()" title="Mark every current device as expected, so you are flagged only when something new appears or a known device goes missing">Mark all expected</button>
<button class="btn" onclick="openSnapshots()">Snapshots</button>
<div class="dropdown">
<button class="btn" onclick="toggleDropdown('export-menu')">Export</button>
<div id="export-menu" class="dropdown-menu">
<a class="dropdown-item" onclick="exportDevices('csv')">Export as CSV</a>
<a class="dropdown-item" onclick="exportDevices('json')">Export as JSON</a>
</div>
</div>
<button class="btn btn-primary" onclick="scanAllNetworks()">Scan All</button>
</div>
</div>
<div class="table-container">
<div class="table-toolbar">
<span class="table-info" id="device-count">Showing {{len .Devices}} device{{if ne (len .Devices) 1}}s{{end}}</span>
<span class="table-scanned" id="scan-time-top"><span class="live-indicator"><span class="live-dot"></span>Live</span>{{if .LastScanAt}}<span class="live-sep">·</span><span class="scan-when">scanned <span data-relative-time="{{.LastScanUnix}}">{{.LastScanAgo}}</span></span>{{end}}</span>
</div>
<table class="table" id="devices-table">
<thead>
<tr>
<th data-sort="status" onclick="sortTable('status')">Status <span class="sort-icon">↕</span></th>
<th data-sort="ip" onclick="sortTable('ip')">IP Address <span class="sort-icon">↕</span></th>
<th data-sort="hostname" onclick="sortTable('hostname')">Hostname <span class="sort-icon">↕</span></th>
<th data-sort="type" onclick="sortTable('type')">Type <span class="sort-icon">↕</span></th>
<th data-sort="mac" onclick="sortTable('mac')">MAC Address <span class="sort-icon">↕</span></th>
<th data-sort="vendor" onclick="sortTable('vendor')">Vendor <span class="sort-icon">↕</span></th>
<th data-sort="label" onclick="sortTable('label')">Label <span class="sort-icon">↕</span></th>
<th data-sort="group" onclick="sortTable('group')">Group <span class="sort-icon">↕</span></th>
<th data-sort="lastseen" onclick="sortTable('lastseen')">Last Seen <span class="sort-icon">↕</span></th>
<th>Actions</th>
</tr>
</thead>
<tbody id="devices-tbody">
{{range .Devices}}
<tr class="device-row {{.StatusClass}}"
data-ip="{{.IP}}"
data-hostname="{{lower .Hostname}}"
data-mac="{{lower .MAC}}"
data-vendor="{{lower .Vendor}}"
data-type="{{lower .Type}}"
data-type-original="{{.Type}}"
data-custom-type="{{if .CustomType}}1{{else}}0{{end}}"
data-label="{{lower .Label}}"
data-label-original="{{.Label}}"
data-notes="{{.Notes}}"
data-group="{{.Group}}"
data-status="{{.Status}}"
data-moved="{{if .AddressHistory}}1{{end}}"
data-flagged="{{if .Risks}}1{{end}}"
data-expected="{{if .Expected}}1{{end}}"
data-unexpected="{{if and .IsOnline (not .Expected)}}1{{end}}"
data-missing="{{if and .Expected (not .IsOnline)}}1{{end}}"
data-lastseen="{{.LastSeenUnix}}">
<td data-label="Status">
<span class="status-indicator {{.StatusClass}}"></span>
</td>
<td class="ip-cell" data-label="IP Address" data-copy="{{.IP}}">
{{.IP}}{{if .AddressHistory}}<span class="moved-indicator" data-tip="Changed address{{range .AddressHistory}}, was {{.IP}}{{end}}"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m17 2 4 4-4 4"/><path d="M3 11v-1a4 4 0 0 1 4-4h14"/><path d="m7 22-4-4 4-4"/><path d="M21 13v1a4 4 0 0 1-4 4H3"/></svg></span>{{end}}{{if .IPv6}}<span class="ipv6-addr" data-copy="{{.IPv6}}" data-tip="IPv6: {{.IPv6}} (click to copy)">{{.IPv6}}</span>{{end}}
</td>
<td class="hostname-cell" data-label="Hostname" data-copy="{{.Hostname}}">{{if .Hostname}}{{.Hostname}}{{else}}<span style="color:var(--text-muted)">-</span>{{end}}</td>
<td class="type-cell" data-label="Type">
{{if .Type}}<span class="type-badge">{{typeIcon .Type}}{{.Type}}</span>{{end}}
{{if .WebUI}}<span class="web-indicator" data-tip="Serves a web interface"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg></span>{{end}}
{{if .Risks}}<span class="risk-indicator" data-tip="Security: {{range $i, $r := .Risks}}{{if $i}}; {{end}}{{$r}}{{end}}"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><path d="M12 9v4M12 17h.01"/></svg></span>{{end}}
</td>
<td class="mac-cell" data-label="MAC Address" data-copy="{{.MAC}}">
{{if .MAC}}{{.MAC}}{{else}}<span style="color:var(--text-muted)">-</span>{{end}}
</td>
<td class="vendor-cell" data-label="Vendor" data-copy="{{.Vendor}}">{{if .Vendor}}{{.Vendor}}{{else}}<span style="color:var(--text-muted)">Unknown</span>{{end}}</td>
<td class="label-cell" data-label="Label">{{.Label}}{{if .Notes}}<span class="notes-indicator" data-tip="{{.Notes}}"><svg class="icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z"/><path d="M14 2v6h6"/><path d="M8 13h8M8 17h5"/></svg></span>{{end}}</td>
<td data-label="Group">
<select class="group-select" data-ip="{{.IP}}" onchange="updateDeviceGroup(this)">
<option value="">-</option>
{{$g := .Group}}{{range $.Groups}}<option value="{{.}}" {{if eq $g .}}selected{{end}}>{{.}}</option>{{end}}
</select>
</td>
<td class="time-cell" data-label="Last Seen" data-relative-time="{{.LastSeenUnix}}">{{.TimeAgo}}</td>
<td class="actions-cell" data-label="Actions">
<button class="btn-icon" onclick="editDevice('{{.IP}}')" data-tip="Edit" aria-label="Edit"><svg class="icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"/><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z"/></svg></button>
<button class="btn-icon danger" onclick="deleteDevice('{{.IP}}')" data-tip="Delete" aria-label="Delete"><svg class="icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 6h18"/><path d="M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2"/><path d="M19 6v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6"/><path d="M10 11v6M14 11v6"/></svg></button>
</td>
</tr>
{{end}}
</tbody>
</table>
{{/* Everything above is a snapshot from the last scan, not a
live view. State when that was, so "last seen" times are
read in the right context. */}}
<div class="table-footer">
<div class="status-legend" aria-label="What the status colours mean">
<span class="legend-item"><span class="legend-dot online"></span>Online</span>
<span class="legend-item"><span class="legend-dot seen"></span>Seen recently</span>
<span class="legend-item"><span class="legend-dot offline"></span>Offline</span>
<span class="legend-item clip-hint" id="clip-hint" hidden>Shortened values show in full on hover</span>
</div>
{{if or .ContinuousScan .LastScanAt}}
<span class="table-footer-label">
<span class="live-indicator"><span class="live-dot"></span>Live</span>{{if .LastScanAt}}<span class="live-sep">·</span><span class="scan-when">scanned <span data-relative-time="{{.LastScanUnix}}">{{.LastScanAgo}}</span> <span class="table-footer-detail">· {{.LastScanAt}}</span></span>{{end}}
</span>
{{else}}
<span class="table-footer-label">Not scanned yet · run a scan to discover devices</span>
{{end}}
</div>
</div>
{{if not .Devices}}
<div class="empty-state">
<div class="empty-state-icon"><svg class="icon" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg></div>
<h3>No devices discovered yet</h3>
<p>Click "Scan All" to discover devices on your network.</p>
</div>
{{end}}
</section>
</main>
<!-- Edit Modal -->
<div id="edit-modal" class="modal" style="display:none">
<div class="modal-content">
<div class="modal-header">
<h3>Edit Device</h3>
<button class="modal-close" onclick="closeModal()">×</button>
</div>
<div class="modal-body">
<form id="edit-form">
<input type="hidden" id="edit-ip" name="ip">
<div class="form-group">
<label>IP Address</label>
<input type="text" id="edit-ip-display" class="input" disabled>
</div>
<div class="form-group">
<label>Label</label>
<input type="text" id="edit-label" name="label" class="input" placeholder="e.g., Living Room TV">
</div>
<div class="form-group">
<label>Device Type</label>
<select id="edit-type-select" name="type" class="select">
<option value="">Auto (Detect)</option>
{{range .Types}}<option value="{{.}}">{{.}}</option>{{end}}
</select>
</div>
<div class="form-group">
<label>Group</label>
<select id="edit-group" name="group" class="select">
<option value="">None</option>
{{range .Groups}}<option value="{{.}}">{{.}}</option>{{end}}
</select>
</div>
<div class="form-group">
<label>Notes</label>
<textarea id="edit-notes" name="notes" class="input" rows="3" placeholder="Add notes about this device..."></textarea>
</div>
<div class="form-group">
<label style="display: flex; align-items: center; gap: 0.5rem; cursor: pointer;">
<input type="checkbox" id="edit-expected">
<span>Expected device — part of my known network</span>
</label>
</div>
</form>
</div>
<div class="modal-footer">
<button class="btn" onclick="closeModal()">Cancel</button>
<button class="btn btn-primary" onclick="saveDevice()">Save Changes</button>
</div>
</div>
</div>
<div id="snapshots-modal" class="modal" style="display:none">
<div class="modal-content modal-wide">
<div class="modal-header">
<h3>Snapshots</h3>
<button class="modal-close" onclick="closeModal()">×</button>
</div>
<div class="modal-body">
<p class="form-help" style="margin-top:0;">Save a snapshot of the network now, then compare it later to see what is new, gone, or changed.</p>
<div class="form-group" style="display:flex; gap:0.5rem; align-items:center; margin-bottom:0.35rem;">
<input type="text" id="snapshot-name" class="input" placeholder="Snapshot name (optional)" style="flex:1;">
<button class="btn btn-primary" onclick="saveSnapshot()">Save current</button>
</div>
<span id="snapshot-status" class="form-help" style="margin:0;"></span>
<h4 style="margin:1.25rem 0 0.5rem;">Saved snapshots</h4>
<div id="snapshot-list"></div>
<h4 style="margin:1.5rem 0 0.5rem;">Compare</h4>
<div style="display:flex; gap:0.5rem; align-items:center; flex-wrap:wrap;">
<select id="compare-from" class="select" style="width:auto;"></select>
<span class="form-help" style="margin:0;">→</span>
<select id="compare-to" class="select" style="width:auto;"></select>
<button class="btn" onclick="runCompare()">Compare</button>
</div>
<div id="compare-result" style="margin-top:1rem;"></div>
</div>
</div>
</div>
<div id="toast" class="toast"></div>
<div id="scan-progress" class="scan-progress" style="display:none">
<div class="scan-progress-head">
<span id="scan-title">Scanning network...</span>
<button type="button" class="btn btn-sm scan-cancel" id="scan-cancel" onclick="cancelScan()">Cancel</button>
</div>
<div class="scan-bar" id="scan-bar">
<div class="scan-bar-fill" id="scan-bar-fill"></div>
</div>
<div class="scan-progress-meta">
<span id="scan-detail"></span>
<span id="scan-eta"></span>
</div>
<div class="scan-progress-count" id="scan-count"></div>
<div class="scan-progress-hint" id="scan-hint"></div>
</div>
<footer class="footer">
<p>LAN Orangutan • <a href="https://github.com/291-Group/LAN-Orangutan" target="_blank">GitHub</a></p>
<p style="margin-top:0.5rem;font-size:0.8rem;">Press <kbd class="kbd">/</kbd> to search • <kbd class="kbd">R</kbd> to refresh • <kbd class="kbd">T</kbd> to toggle theme</p>
</footer>
<button type="button" id="scroll-top" class="scroll-top" aria-label="Back to top">
<svg class="scroll-top-chevron" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 15l8-8 8 8"/></svg>
<img src="/static/orangutan.svg" alt="" class="scroll-top-logo" width="28" height="28">
</button>
<script src="/static/app.js?v={{.Version}}"></script>
</body>
</html>