feat!: release v2 (#6545)
Co-authored-by: Artur <145776561+arturict@users.noreply.github.com> Co-authored-by: arturict <arturict@users.noreply.github.com> Co-authored-by: Thomas <thomas@ajnart.fr> Co-authored-by: Afonso Jorge Ramos <afonsojorgeramos@gmail.com> Co-authored-by: Danura30082 <danura30082+github@gmail.com> Co-authored-by: Kushie <122986913+kushiemoon-dev@users.noreply.github.com> Co-authored-by: ajnart <thomas@ajnart.fr> Co-authored-by: ajnart <thomas@ajnart.dev> Co-authored-by: chenjun <chenjun@foxmail.com> Co-authored-by: Wikibear <wikibear@users.noreply.github.com> Co-authored-by: Bergasha <bergasha@gmail.com> Co-authored-by: leafyelin <43306196+leafyelin@users.noreply.github.com> Co-authored-by: Lucas Araujo <lucas.lra@gmail.com> Co-authored-by: GreenMonito <86085570+GreenMonito@users.noreply.github.com> Co-authored-by: Nerdy-Technician <roffo@nerdy-technician.social> Co-authored-by: Jun <34545896+jcstrong@users.noreply.github.com> Co-authored-by: Edmond Abraham <54119952+gitedmond@users.noreply.github.com> Co-authored-by: thrawnx <tight.bulb9384@fastmail.com> Co-authored-by: Chris <58918656+nordada@users.noreply.github.com> Co-authored-by: yi111 <153097222+Yi-111-a@users.noreply.github.com> Co-authored-by: Yanis <naamaneyanis@gmail.com> Co-authored-by: Wikibear <me@sej.de> Co-authored-by: alessiottavo <93441886+alessiottavo@users.noreply.github.com>
This commit is contained in:
3286 files changed
+284386
-139176
No files matched your search
@@ -10,8 +10,9 @@ import type {
|
||||
LiveStatsEvent,
|
||||
} from "../../beszel/beszel-types";
|
||||
|
||||
const GB = 1024 * 1024 * 1024;
|
||||
const KB = 1024;
|
||||
const KIBIBYTE = 1024;
|
||||
const MEBIBYTE = 1024 * KIBIBYTE;
|
||||
const GIBIBYTE = 1024 * MEBIBYTE;
|
||||
|
||||
interface MockSystemDef {
|
||||
name: string;
|
||||
@@ -34,7 +35,7 @@ const mockSystems: MockSystemDef[] = [
|
||||
os: "Ubuntu 24.04",
|
||||
cpu: "AMD Ryzen 9 7950X",
|
||||
cores: 16,
|
||||
mem: 64 * GB,
|
||||
mem: 64 * GIBIBYTE,
|
||||
arch: "amd64",
|
||||
baseCpu: 35,
|
||||
baseMem: 55,
|
||||
@@ -47,7 +48,7 @@ const mockSystems: MockSystemDef[] = [
|
||||
os: "Debian 12",
|
||||
cpu: "Intel Xeon E-2388G",
|
||||
cores: 8,
|
||||
mem: 32 * GB,
|
||||
mem: 32 * GIBIBYTE,
|
||||
arch: "amd64",
|
||||
baseCpu: 12,
|
||||
baseMem: 70,
|
||||
@@ -60,7 +61,7 @@ const mockSystems: MockSystemDef[] = [
|
||||
os: "Raspberry Pi OS",
|
||||
cpu: "ARM Cortex-A76",
|
||||
cores: 4,
|
||||
mem: 8 * GB,
|
||||
mem: 8 * GIBIBYTE,
|
||||
arch: "aarch64",
|
||||
baseCpu: 45,
|
||||
baseMem: 82,
|
||||
@@ -73,7 +74,7 @@ const mockSystems: MockSystemDef[] = [
|
||||
os: "Proxmox VE 8.2",
|
||||
cpu: "Intel i7-13700K",
|
||||
cores: 16,
|
||||
mem: 128 * GB,
|
||||
mem: 128 * GIBIBYTE,
|
||||
arch: "amd64",
|
||||
baseCpu: 22,
|
||||
baseMem: 48,
|
||||
@@ -86,7 +87,7 @@ const mockSystems: MockSystemDef[] = [
|
||||
os: "TrueNAS SCALE",
|
||||
cpu: "Intel Xeon E5-2680",
|
||||
cores: 12,
|
||||
mem: 48 * GB,
|
||||
mem: 48 * GIBIBYTE,
|
||||
arch: "amd64",
|
||||
baseCpu: 8,
|
||||
baseMem: 30,
|
||||
@@ -95,15 +96,15 @@ const mockSystems: MockSystemDef[] = [
|
||||
},
|
||||
];
|
||||
|
||||
const containerProfiles: { name: string; cpuBase: number; memMB: number; netKB: number }[] = [
|
||||
{ name: "nginx", cpuBase: 2, memMB: 120, netKB: 800 },
|
||||
{ name: "postgres", cpuBase: 8, memMB: 450, netKB: 200 },
|
||||
{ name: "redis", cpuBase: 3, memMB: 180, netKB: 500 },
|
||||
{ name: "grafana", cpuBase: 5, memMB: 280, netKB: 150 },
|
||||
{ name: "prometheus", cpuBase: 6, memMB: 350, netKB: 300 },
|
||||
{ name: "traefik", cpuBase: 4, memMB: 90, netKB: 1200 },
|
||||
{ name: "minio", cpuBase: 3, memMB: 200, netKB: 600 },
|
||||
{ name: "gitea", cpuBase: 4, memMB: 250, netKB: 100 },
|
||||
const containerProfiles: { name: string; cpuBase: number; memMiB: number; netKiB: number }[] = [
|
||||
{ name: "nginx", cpuBase: 2, memMiB: 120, netKiB: 800 },
|
||||
{ name: "postgres", cpuBase: 8, memMiB: 450, netKiB: 200 },
|
||||
{ name: "redis", cpuBase: 3, memMiB: 180, netKiB: 500 },
|
||||
{ name: "grafana", cpuBase: 5, memMiB: 280, netKiB: 150 },
|
||||
{ name: "prometheus", cpuBase: 6, memMiB: 350, netKiB: 300 },
|
||||
{ name: "traefik", cpuBase: 4, memMiB: 90, netKiB: 1200 },
|
||||
{ name: "minio", cpuBase: 3, memMiB: 200, netKiB: 600 },
|
||||
{ name: "gitea", cpuBase: 4, memMiB: 250, netKiB: 100 },
|
||||
];
|
||||
|
||||
const rand = (min: number, max: number) => min + Math.random() * (max - min);
|
||||
@@ -144,30 +145,30 @@ function generateSystemStatsSeries(count: number, sys: MockSystemDef): BeszelSys
|
||||
const netSendWalk = smoothWalk(500, 200, count, 10, 8000);
|
||||
const netRecvWalk = smoothWalk(800, 300, count, 10, 12000);
|
||||
|
||||
const diskTotal = rand(200, 2000) * GB;
|
||||
const diskTotal = rand(200, 2000) * GIBIBYTE;
|
||||
|
||||
return cpuWalk.map((cpu, i) => {
|
||||
const memPct = memPctWalk[i] ?? sys.baseMem;
|
||||
const diskPct = diskPctWalk[i] ?? sys.baseDisk;
|
||||
const memTotalGB = sys.mem / GB;
|
||||
const diskTotalGB = diskTotal / GB;
|
||||
const memTotalGiB = sys.mem / GIBIBYTE;
|
||||
const diskTotalGiB = diskTotal / GIBIBYTE;
|
||||
return {
|
||||
cpu,
|
||||
la: [cpu / 20 + rand(0, 0.5), cpu / 25 + rand(0, 0.3), cpu / 30 + rand(0, 0.2)] as [number, number, number],
|
||||
m: memTotalGB,
|
||||
mu: (memTotalGB * memPct) / 100,
|
||||
m: memTotalGiB,
|
||||
mu: (memTotalGiB * memPct) / 100,
|
||||
mp: memPct,
|
||||
mb: rand(0.5, 4),
|
||||
s: 4,
|
||||
su: rand(0, 2),
|
||||
d: diskTotalGB,
|
||||
du: (diskTotalGB * diskPct) / 100,
|
||||
d: diskTotalGiB,
|
||||
du: (diskTotalGiB * diskPct) / 100,
|
||||
dp: diskPct,
|
||||
dr: diskReadWalk[i] ?? 5,
|
||||
dw: diskWriteWalk[i] ?? 3,
|
||||
ns: (netSendWalk[i] ?? 500) * KB,
|
||||
nr: (netRecvWalk[i] ?? 800) * KB,
|
||||
b: [(netSendWalk[i] ?? 500) * KB * 0.7, (netRecvWalk[i] ?? 800) * KB * 0.7] as [number, number],
|
||||
ns: ((netSendWalk[i] ?? 500) * KIBIBYTE) / MEBIBYTE,
|
||||
nr: ((netRecvWalk[i] ?? 800) * KIBIBYTE) / MEBIBYTE,
|
||||
b: [(netSendWalk[i] ?? 500) * KIBIBYTE * 0.7, (netRecvWalk[i] ?? 800) * KIBIBYTE * 0.7] as [number, number],
|
||||
};
|
||||
});
|
||||
}
|
||||
@@ -176,16 +177,19 @@ function generateContainerStatsSeries(count: number, profiles: typeof containerP
|
||||
const walks = profiles.map((p) => ({
|
||||
profile: p,
|
||||
cpuWalk: smoothWalk(p.cpuBase, 1.5, count, 0, 50),
|
||||
memWalk: smoothWalk(p.memMB, p.memMB * 0.1, count, p.memMB * 0.5, p.memMB * 2),
|
||||
netWalk: smoothWalk(p.netKB, p.netKB * 0.3, count, 0, p.netKB * 4),
|
||||
memWalk: smoothWalk(p.memMiB, p.memMiB * 0.1, count, p.memMiB * 0.5, p.memMiB * 2),
|
||||
netWalk: smoothWalk(p.netKiB, p.netKiB * 0.3, count, 0, p.netKiB * 4),
|
||||
}));
|
||||
|
||||
return Array.from({ length: count }, (_, i) =>
|
||||
walks.map(({ profile, cpuWalk, memWalk, netWalk }) => ({
|
||||
n: profile.name,
|
||||
c: cpuWalk[i] ?? profile.cpuBase,
|
||||
m: memWalk[i] ?? profile.memMB,
|
||||
b: [(netWalk[i] ?? profile.netKB) * KB * 0.4, (netWalk[i] ?? profile.netKB) * KB * 0.6] as [number, number],
|
||||
m: memWalk[i] ?? profile.memMiB,
|
||||
b: [(netWalk[i] ?? profile.netKiB) * KIBIBYTE * 0.4, (netWalk[i] ?? profile.netKiB) * KIBIBYTE * 0.6] as [
|
||||
number,
|
||||
number,
|
||||
],
|
||||
})),
|
||||
);
|
||||
}
|
||||
@@ -227,7 +231,7 @@ export class BeszelMockService {
|
||||
mp: clamp(sys.baseMem + rand(-5, 5), 0, 100),
|
||||
dp: clamp(sys.baseDisk + rand(-2, 2), 0, 100),
|
||||
efs: i === 0 ? { "/mnt/sda": 86.9, "/mnt/sdb": 70.5, "/mnt/sdc": 42.7 } : undefined,
|
||||
bb: rand(200, 3000) * KB,
|
||||
bb: rand(200, 3000) * KIBIBYTE,
|
||||
v: "0.8.2",
|
||||
g: i === 3 ? rand(15, 45) : 0,
|
||||
dt: rand(32, 58),
|
||||
|
||||
@@ -48,6 +48,17 @@ const missingItems: MissingMediaItem[] = [
|
||||
imageUrl: "https://image.tmdb.org/t/p/w300/2cxhvwyEwRlysAmRH4iodkvo0z5.jpg",
|
||||
link: "https://www.imdb.com/title/tt9218128/",
|
||||
},
|
||||
{
|
||||
// "book" (added for Bindery) has no season/episode fields; the widget
|
||||
// falls back to a themed icon when, as here, there is no cover image.
|
||||
id: 6,
|
||||
title: "The Will of the Many",
|
||||
type: "book",
|
||||
year: 2023,
|
||||
seriesTitle: "James Islington",
|
||||
imageUrl: null,
|
||||
link: "https://openlibrary.org/works/OL27448W",
|
||||
},
|
||||
];
|
||||
|
||||
const queuedItems: QueuedMediaItem[] = [
|
||||
@@ -97,6 +108,17 @@ const queuedItems: QueuedMediaItem[] = [
|
||||
imageUrl: "https://image.tmdb.org/t/p/w300/z2yahl2uefxDCl0nogcRBstwruJ.jpg",
|
||||
link: "https://www.imdb.com/title/tt11198330/",
|
||||
},
|
||||
{
|
||||
id: 105,
|
||||
title: "The Will of the Many",
|
||||
type: "book",
|
||||
status: "downloading",
|
||||
timeLeft: "12m",
|
||||
percentComplete: 54,
|
||||
seriesTitle: "James Islington",
|
||||
imageUrl: null,
|
||||
link: "https://openlibrary.org/works/OL27448W",
|
||||
},
|
||||
];
|
||||
|
||||
export class MediaOrganizerMockService implements IMediaOrganizerIntegration {
|
||||
|
||||
@@ -26,7 +26,9 @@ const sessions: StreamSession[] = [
|
||||
type: "video",
|
||||
name: "Breaking Bad",
|
||||
seasonName: "Season 5",
|
||||
seasonNumber: 5,
|
||||
episodeName: "Ozymandias",
|
||||
episodeNumber: 14,
|
||||
albumName: null,
|
||||
episodeCount: null,
|
||||
playback: { state: null, positionMs: null, durationMs: null },
|
||||
@@ -58,7 +60,9 @@ const sessions: StreamSession[] = [
|
||||
type: "video",
|
||||
name: "Severance",
|
||||
seasonName: "Season 2",
|
||||
seasonNumber: 2,
|
||||
episodeName: "The We We Are",
|
||||
episodeNumber: 10,
|
||||
albumName: null,
|
||||
episodeCount: null,
|
||||
playback: { state: null, positionMs: null, durationMs: null },
|
||||
|
||||
@@ -0,0 +1,387 @@
|
||||
import type { AnchorNote, AnchorNoteSummary } from "../anchor/anchor-types";
|
||||
import type { ArchiveTeamWarriorStatus } from "../archive-team-warrior/archive-team-warrior-types";
|
||||
import type { BazarrBadges } from "../bazarr/bazarr-types";
|
||||
import type { CoolifyInstanceInfo } from "../coolify/coolify-types";
|
||||
import type { ImmichAlbum, ImmichServerStats } from "../immich/immich-integration";
|
||||
import type { NavidromeDashboardData } from "../navidrome/navidrome-types";
|
||||
import type { PaperlessNgxStats } from "../paperless-ngx/paperless-ngx-types";
|
||||
import type { PatchMonStats } from "../patchmon/patchmon-types";
|
||||
import type { SpeedtestTrackerDashboardData } from "../speedtest-tracker/speedtest-tracker-types";
|
||||
import type { TracearrDashboardData } from "../tracearr/tracearr-types";
|
||||
import type { TraefikDashboardData } from "../traefik/traefik-types";
|
||||
import type { UmamiEventSeries, UmamiMetricItem, UmamiVisitorStats, UmamiWebsite } from "../umami/umami-types";
|
||||
import type { UptimeKumaDashboardData } from "../uptime-kuma/uptime-kuma-types";
|
||||
import type { LlamacppStats } from "../llama-cpp/llamacpp-types";
|
||||
import type { WudStats } from "../wud/wud-types";
|
||||
import { createWazuhMockData } from "../wazuh/wazuh-mock";
|
||||
import type {
|
||||
FirewallCpuSummary,
|
||||
FirewallInterfacesSummary,
|
||||
FirewallMemorySummary,
|
||||
FirewallVersionSummary,
|
||||
} from "../interfaces/firewall-summary/firewall-summary-types";
|
||||
import type { VpnSummary } from "../interfaces/vpn-summary/vpn-summary-types";
|
||||
|
||||
const demoTimestamp = "2026-08-24T12:00:00.000Z";
|
||||
|
||||
const anchorNote: AnchorNote = {
|
||||
id: "homarr-demo-note",
|
||||
title: "Homarr demo runbook",
|
||||
content: JSON.stringify({
|
||||
ops: [
|
||||
{ insert: "Welcome to the complete Homarr widget gallery.\n", attributes: { bold: true } },
|
||||
{ insert: "Every integration-backed card below is powered by safe mock data.\n" },
|
||||
],
|
||||
}),
|
||||
createdAt: demoTimestamp,
|
||||
updatedAt: demoTimestamp,
|
||||
isPinned: true,
|
||||
isArchived: false,
|
||||
tagIds: ["demo"],
|
||||
permission: "editor",
|
||||
background: null,
|
||||
userId: "demo",
|
||||
};
|
||||
|
||||
export const mockWidgetData = {
|
||||
timestamp: demoTimestamp,
|
||||
anchorNote,
|
||||
anchorNotes: [
|
||||
{
|
||||
id: anchorNote.id,
|
||||
title: anchorNote.title,
|
||||
updatedAt: anchorNote.updatedAt,
|
||||
isPinned: anchorNote.isPinned,
|
||||
tagIds: anchorNote.tagIds,
|
||||
permission: anchorNote.permission,
|
||||
},
|
||||
] satisfies AnchorNoteSummary[],
|
||||
archiveTeamWarrior: {
|
||||
status: "running",
|
||||
runnerStatus: "running",
|
||||
project: { id: "urlteam2", title: "URLTeam 2" },
|
||||
selectedProject: "urlteam2",
|
||||
broadcastMessage: "Archiving the open web, one URL at a time.",
|
||||
bandwidth: {
|
||||
received: 8_942_000_000,
|
||||
sent: 1_284_000_000,
|
||||
receiving: 4_800_000,
|
||||
sending: 720_000,
|
||||
session_id: "homarr-demo-session",
|
||||
},
|
||||
items: [
|
||||
{ id: "demo-1", name: "urls-20260824-01", status: "running", project: "urlteam2", startTime: 1_777_000_000 },
|
||||
{ id: "demo-2", name: "urls-20260824-00", status: "completed", project: "urlteam2" },
|
||||
],
|
||||
counts: { running: 1, completed: 284, failed: 2, canceled: 0 },
|
||||
updatedAt: demoTimestamp,
|
||||
} satisfies ArchiveTeamWarriorStatus,
|
||||
audioStats: { artistCount: 842, albumCount: 1_976, songCount: 24_681 } satisfies NavidromeDashboardData,
|
||||
bazarr: {
|
||||
episodes: 12,
|
||||
movies: 4,
|
||||
providers: 6,
|
||||
status: 0,
|
||||
sonarr_signalr: "connected",
|
||||
radarr_signalr: "connected",
|
||||
announcements: 1,
|
||||
} satisfies BazarrBadges,
|
||||
coolify: {
|
||||
version: "4.0.0-beta.420",
|
||||
servers: [
|
||||
{
|
||||
id: 1,
|
||||
uuid: "homarr-demo-edge",
|
||||
name: "Paris edge",
|
||||
ip: "10.0.0.20",
|
||||
is_reachable: true,
|
||||
is_usable: true,
|
||||
settings: { server_id: 1, is_build_server: true, is_reachable: true, is_usable: true },
|
||||
},
|
||||
],
|
||||
applications: [
|
||||
{
|
||||
id: 1,
|
||||
uuid: "homarr-demo-app",
|
||||
name: "Homarr",
|
||||
status: "running:healthy",
|
||||
fqdn: "https://homarr.dev",
|
||||
projectName: "Home cloud",
|
||||
environmentName: "Production",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
uuid: "media-demo-app",
|
||||
name: "Media stack",
|
||||
status: "running:healthy",
|
||||
fqdn: null,
|
||||
projectName: "Home cloud",
|
||||
environmentName: "Production",
|
||||
},
|
||||
],
|
||||
services: [
|
||||
{
|
||||
id: 3,
|
||||
uuid: "postgres-demo-service",
|
||||
name: "Postgres",
|
||||
status: "running:healthy",
|
||||
fqdn: null,
|
||||
applications: [],
|
||||
projectName: "Home cloud",
|
||||
environmentName: "Production",
|
||||
},
|
||||
],
|
||||
} satisfies CoolifyInstanceInfo,
|
||||
firewallCpu: { total: 23 } satisfies FirewallCpuSummary,
|
||||
firewallInterfaces: [
|
||||
{
|
||||
data: [
|
||||
{ name: "WAN", receive: 18_400_000, transmit: 4_200_000 },
|
||||
{ name: "LAN", receive: 46_700_000, transmit: 21_300_000 },
|
||||
],
|
||||
timestamp: new Date(demoTimestamp),
|
||||
},
|
||||
] satisfies FirewallInterfacesSummary[],
|
||||
firewallMemory: { used: 3_220_000_000, total: 8_590_000_000, percent: 37.5 } satisfies FirewallMemorySummary,
|
||||
firewallVersion: { version: "24.7.11" } satisfies FirewallVersionSummary,
|
||||
immichStats: {
|
||||
userCount: 4,
|
||||
photoCount: 48_392,
|
||||
videoCount: 2_418,
|
||||
totalLibraryUsageInBytes: 684_510_412_800,
|
||||
} satisfies ImmichServerStats,
|
||||
immichAlbums: [
|
||||
{ id: "demo-paris", albumName: "Paris weekend", assetCount: 128 },
|
||||
{ id: "demo-mountains", albumName: "Alpine trails", assetCount: 84 },
|
||||
],
|
||||
immichAlbum: {
|
||||
id: "demo-paris",
|
||||
albumName: "Paris weekend",
|
||||
assets: [
|
||||
{
|
||||
id: "demo-photo-1",
|
||||
thumbhash: null,
|
||||
fileModifiedAt: demoTimestamp,
|
||||
fileCreatedAt: demoTimestamp,
|
||||
updatedAt: demoTimestamp,
|
||||
type: "IMAGE",
|
||||
publicLink: "https://images.unsplash.com/photo-1502602898657-3e91760cbb34?auto=format&fit=crop&w=1200&q=80",
|
||||
},
|
||||
{
|
||||
id: "demo-photo-2",
|
||||
thumbhash: null,
|
||||
fileModifiedAt: demoTimestamp,
|
||||
fileCreatedAt: demoTimestamp,
|
||||
updatedAt: demoTimestamp,
|
||||
type: "IMAGE",
|
||||
publicLink: "https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1200&q=80",
|
||||
},
|
||||
],
|
||||
} satisfies ImmichAlbum,
|
||||
paperlessNgx: {
|
||||
documentsTotal: 2_847,
|
||||
documentsInbox: 14,
|
||||
correspondentsCount: 96,
|
||||
tagsCount: 38,
|
||||
documentTypesCount: 12,
|
||||
} satisfies PaperlessNgxStats,
|
||||
patchmon: {
|
||||
totalHosts: 18,
|
||||
hostsNeedingUpdates: 5,
|
||||
securityUpdates: 7,
|
||||
upToDateHosts: 13,
|
||||
hostsWithSecurityUpdates: 3,
|
||||
recentUpdates24h: 11,
|
||||
totalOutdatedPackages: 26,
|
||||
totalRepos: 42,
|
||||
lastUpdated: demoTimestamp,
|
||||
osDistribution: [
|
||||
{ name: "Ubuntu 24.04", count: 9, osType: "linux", osVersion: "24.04" },
|
||||
{ name: "Debian 13", count: 6, osType: "linux", osVersion: "13" },
|
||||
{ name: "Fedora 42", count: 3, osType: "linux", osVersion: "42" },
|
||||
],
|
||||
} satisfies PatchMonStats,
|
||||
...createWazuhMockData(demoTimestamp),
|
||||
speedtestTracker: {
|
||||
latestResult: {
|
||||
id: 42,
|
||||
ping: 8.4,
|
||||
download_bits: 936_000_000,
|
||||
upload_bits: 487_000_000,
|
||||
healthy: true,
|
||||
created_at: new Date(demoTimestamp),
|
||||
},
|
||||
stats: {
|
||||
ping: { avg: 9.1, min: 6.8, max: 14.2 },
|
||||
download: { avg: 901, avg_bits: 901_000_000, min: 822, max: 948 },
|
||||
upload: { avg: 472, avg_bits: 472_000_000, min: 431, max: 495 },
|
||||
total_results: 128,
|
||||
},
|
||||
recentResults: [
|
||||
{
|
||||
id: 42,
|
||||
ping: 8.4,
|
||||
download_bits: 936_000_000,
|
||||
upload_bits: 487_000_000,
|
||||
healthy: true,
|
||||
created_at: new Date(demoTimestamp),
|
||||
},
|
||||
],
|
||||
} satisfies SpeedtestTrackerDashboardData,
|
||||
tracearr: {
|
||||
stats: { activeStreams: 2, totalUsers: 14, totalSessions: 1_248, recentViolations: 1, timestamp: demoTimestamp },
|
||||
streams: {
|
||||
data: [],
|
||||
summary: {
|
||||
total: 2,
|
||||
transcodes: 1,
|
||||
directStreams: 0,
|
||||
directPlays: 1,
|
||||
totalBitrate: "24.8 Mbps",
|
||||
byServer: [
|
||||
{
|
||||
serverId: "demo",
|
||||
serverName: "Homarr Media",
|
||||
total: 2,
|
||||
transcodes: 1,
|
||||
directStreams: 0,
|
||||
directPlays: 1,
|
||||
totalBitrate: "24.8 Mbps",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
violations: { data: [], meta: { total: 1, page: 1, pageSize: 10 } },
|
||||
recentActivity: { data: [], meta: { total: 1_248, page: 1, pageSize: 10 } },
|
||||
} satisfies TracearrDashboardData,
|
||||
traefik: {
|
||||
version: "3.5.0",
|
||||
entryPoints: ["web", "websecure", "metrics"],
|
||||
failedEndpoints: [],
|
||||
resources: [
|
||||
{ protocol: "http", type: "router", name: "homarr@docker", provider: "docker", status: "enabled" },
|
||||
{ protocol: "http", type: "service", name: "homarr@docker", provider: "docker", status: "enabled" },
|
||||
{ protocol: "http", type: "middleware", name: "secure-headers@file", provider: "file", status: "enabled" },
|
||||
],
|
||||
http: {
|
||||
routers: { total: 12, enabled: 12, warnings: 0, errors: 0 },
|
||||
services: { total: 10, enabled: 10, warnings: 0, errors: 0 },
|
||||
middlewares: { total: 8, enabled: 8, warnings: 0, errors: 0 },
|
||||
},
|
||||
tcp: {
|
||||
routers: { total: 2, enabled: 2, warnings: 0, errors: 0 },
|
||||
services: { total: 2, enabled: 2, warnings: 0, errors: 0 },
|
||||
middlewares: { total: 0, enabled: 0, warnings: 0, errors: 0 },
|
||||
},
|
||||
udp: {
|
||||
routers: { total: 1, enabled: 1, warnings: 0, errors: 0 },
|
||||
services: { total: 1, enabled: 1, warnings: 0, errors: 0 },
|
||||
},
|
||||
} satisfies TraefikDashboardData,
|
||||
umamiWebsites: [{ id: "homarr-demo", name: "Homarr demo", domain: "demo.homarr.dev" }] satisfies UmamiWebsite[],
|
||||
umamiVisitorStats: {
|
||||
domain: "demo.homarr.dev",
|
||||
websiteId: "homarr-demo",
|
||||
websiteName: "Homarr demo",
|
||||
totalVisitors: 8_429,
|
||||
totalPageviews: 21_384,
|
||||
totalVisits: 11_207,
|
||||
bounceRate: 32.4,
|
||||
avgDuration: 284,
|
||||
timeFrame: "24h",
|
||||
dataPoints: [
|
||||
{ timestamp: "2026-08-24T08:00:00.000Z", visitors: 280, events: 0 },
|
||||
{ timestamp: "2026-08-24T10:00:00.000Z", visitors: 410, events: 0 },
|
||||
{ timestamp: "2026-08-24T12:00:00.000Z", visitors: 536, events: 0 },
|
||||
],
|
||||
eventCount: 0,
|
||||
} satisfies UmamiVisitorStats,
|
||||
umamiEventNames: ["dashboard_opened", "widget_added", "board_shared"],
|
||||
umamiTopPages: [
|
||||
{ x: "/", y: 8_240 },
|
||||
{ x: "/boards/home", y: 5_812 },
|
||||
{ x: "/manage/integrations", y: 1_942 },
|
||||
] satisfies UmamiMetricItem[],
|
||||
umamiTopReferrers: [
|
||||
{ x: "github.com", y: 3_842 },
|
||||
{ x: "google.com", y: 2_106 },
|
||||
{ x: "docs.homarr.dev", y: 1_284 },
|
||||
] satisfies UmamiMetricItem[],
|
||||
umamiEventSeries: [
|
||||
{
|
||||
eventName: "dashboard_opened",
|
||||
dataPoints: [
|
||||
{ x: "2026-08-24T08:00:00.000Z", y: 92 },
|
||||
{ x: "2026-08-24T10:00:00.000Z", y: 134 },
|
||||
{ x: "2026-08-24T12:00:00.000Z", y: 188 },
|
||||
],
|
||||
},
|
||||
] satisfies UmamiEventSeries[],
|
||||
uptimeKuma: {
|
||||
totalMonitors: 6,
|
||||
upCount: 5,
|
||||
downCount: 1,
|
||||
pausedCount: 0,
|
||||
averageUptimePercent: 99.72,
|
||||
monitors: [
|
||||
{ id: 1, name: "Homarr", status: "up", uptimePercent24h: 100 },
|
||||
{ id: 2, name: "Media server", status: "up", uptimePercent24h: 99.98 },
|
||||
{ id: 3, name: "Home cloud", status: "up", uptimePercent24h: 99.91 },
|
||||
{ id: 4, name: "Backups", status: "up", uptimePercent24h: 99.62 },
|
||||
{ id: 5, name: "VPN", status: "up", uptimePercent24h: 99.8 },
|
||||
{ id: 6, name: "Lab service", status: "down", uptimePercent24h: 98.99 },
|
||||
],
|
||||
} satisfies UptimeKumaDashboardData,
|
||||
vpn: {
|
||||
vpnStatus: "running",
|
||||
dnsStatus: "running",
|
||||
publicIp: "198.51.100.42",
|
||||
country: "France",
|
||||
city: "Paris",
|
||||
vpnProvider: { protocol: "wireguard", provider: "Mullvad" },
|
||||
} satisfies VpnSummary,
|
||||
wud: {
|
||||
totalContainers: 24,
|
||||
updatesAvailable: 3,
|
||||
updates: [
|
||||
{
|
||||
id: "homarr",
|
||||
name: "Homarr",
|
||||
currentVersion: "v1.35.0",
|
||||
newVersion: "v1.36.0",
|
||||
link: "https://github.com/homarr-labs/homarr",
|
||||
},
|
||||
{ id: "postgres", name: "Postgres", currentVersion: "17.5", newVersion: "17.6", link: null },
|
||||
{ id: "redis", name: "Redis", currentVersion: "8.0.2", newVersion: "8.0.3", link: null },
|
||||
],
|
||||
} satisfies WudStats,
|
||||
llamacpp: {
|
||||
health: "ok",
|
||||
model: {
|
||||
id: "unsloth/Qwen3.8-27B-UD-Q4_K_XL.gguf",
|
||||
name: "Qwen3.8-27B-UD-Q4_K_XL",
|
||||
contextSize: 32768,
|
||||
parameterCount: 27_347_098_624,
|
||||
fileSizeBytes: 16_842_776_576,
|
||||
quantization: "Q4_K_XL",
|
||||
},
|
||||
contextUsage: { usedTokens: 8192, contextSize: 32768, percent: 25 },
|
||||
slots: { total: 2, processing: 1, decoding: 1, speculative: false },
|
||||
metrics: {
|
||||
generationSpeedTps: 42.5,
|
||||
promptSpeedTps: 1840.2,
|
||||
avgGenerationSpeedTps: 39.8,
|
||||
avgPromptSpeedTps: 2104.6,
|
||||
requestsProcessing: 1,
|
||||
requestsDeferred: 0,
|
||||
tokensProcessed: 12_483,
|
||||
tokensGenerated: 1_024,
|
||||
promptCacheHitRate: 62,
|
||||
requestDecodedTokens: 96,
|
||||
taskId: 1042,
|
||||
specDraftTokens: 48,
|
||||
specAcceptedTokens: 12,
|
||||
specDrafts: 8,
|
||||
},
|
||||
} satisfies LlamacppStats,
|
||||
} as const;
|
||||
Reference in new issue
Block a user