Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

600 B
Raw Blame
import { z } from "zod/v4";

export const statsEntrySchema = z.object({
  id: z.string().min(1).max(128),
  integrationId: z.string().min(1).max(128),
  metric: z.string().min(1).max(128),
  label: z.string().max(128).default(""),
  hidden: z.boolean().default(false),
  compact: z.boolean().default(false),
});
export const statsEntriesSchema = z
  .array(statsEntrySchema)
  .max(100)
  .refine((entries) => new Set(entries.map((entry) => entry.id)).size === entries.length, {
    message: "Metric entry identifiers must be unique",
  });
export type StatsEntry = z.infer<typeof statsEntrySchema>;