--- import { getCollection } from 'astro:content'; // Heady Machines Management - Alpine.js/Astro Implementation 🤠 import Layout from '../layouts/Layout.astro'; // Fetch live machine data const allMachines = await getCollection('machines'); const currentUser = await getCollection('users').then((users) => users[0]); // Machine statistics const totalMachines = allMachines.length; const onlineMachines = allMachines.filter((m) => m.data.online).length; const offlineMachines = totalMachines - onlineMachines; const expiredMachines = allMachines.filter((m) => m.data.expired).length; // Group machines by OS const machinesByOS = allMachines.reduce( (acc, machine) => { const os = machine.data.os || 'unknown'; acc[os] = (acc[os] || 0) + 1; return acc; }, {} as Record, ); // Recent activity (would come from activity collection) const recentActivity = [ { action: 'Machine connected', machine: 'dev-laptop', timestamp: '2 minutes ago', }, { action: 'Machine disconnected', machine: 'server-01', timestamp: '1 hour ago', }, { action: 'Machine added', machine: 'mobile-phone', timestamp: '3 hours ago', }, ]; ---

🖥️ Machine Management

Manage and monitor your Tailscale network devices

🖥️
Total Machines
{totalMachines}
Online
{onlineMachines}
Offline
{offlineMachines}
⚠️
Expired
{expiredMachines}
Machine Status IP Address OS User Last Seen Actions
🤠

No machines found

No machines match your current filters. No machines have been added to your network yet.

Add New Machine

To add a new machine to your Tailscale network, install Tailscale on the device and authenticate it.

Installation Command:

curl -fsSL https://tailscale.com/install.sh | sh

Authentication:

sudo tailscale up --login-server=