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.

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

import { customWidgetImportSchema } from "./custom-jsx-schema";

export * from "./custom-jsx-schema";
export * from "./definition-schemas";
export * from "./schema-types";

let customWidgetJsonSchema: Record<string, unknown> | undefined;

export function getCustomWidgetJsonSchema() {
  customWidgetJsonSchema ??= {
    ...z.toJSONSchema(customWidgetImportSchema, { io: "input" }),
    title: "Homarr Custom JSX v2 widget",
    description: "The only supported Homarr custom-widget format. Secrets are configured separately.",
  };
  return customWidgetJsonSchema;
}