{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://rapidash.io/schema/dashboard.v1.json","title":"Rapidash dashboard","description":"A portable description of a Rapidash dashboard: layout and widget settings only (no data, no code).","type":"object","required":["widgets"],"properties":{"$schema":{"type":"string"},"rapidash":{"const":"dashboard/v1"},"name":{"type":"string"},"description":{"type":"string"},"exportedAt":{"type":"string","format":"date-time"},"branding":{"type":"object","description":"Logo, colors, font and white-label settings.","properties":{"brandName":{"type":"string","maxLength":80},"logoUrl":{"type":"string","description":"https URL or a data:image/... URL (≤ 300 KB)."},"palette":{"type":"array","items":{"type":"string","pattern":"^#[0-9a-fA-F]{3,6}$"},"maxItems":8,"description":"Accent colors in order (replacing orange, yellow, pink, purple, teal, indigo, blue, mint). Red/green keep their meaning."},"background":{"type":"string","pattern":"^#[0-9a-fA-F]{3,6}$"},"surface":{"type":"string","pattern":"^#[0-9a-fA-F]{3,6}$"},"font":{"enum":["system","inter","manrope","dm-sans","jakarta","space-grotesk","ibm-plex","sora","outfit","lora"]},"theme":{"enum":["light","dark","auto"]},"corners":{"enum":["rounded","soft","square"]},"whiteLabel":{"type":"boolean","description":"Hide all Rapidash branding on shared views and embeds."},"website":{"type":"string","format":"uri"}}},"datasets":{"type":"array","items":{"type":"object","required":["ref"],"properties":{"ref":{"type":"string","description":"Key widgets use in their `dataset` field."},"name":{"type":"string"},"source":{"oneOf":[{"type":"object","properties":{"kind":{"const":"sample"},"key":{"enum":["ecommerce","saas","marketing"]}},"required":["kind","key"]},{"type":"object","properties":{"kind":{"const":"url"},"url":{"type":"string","format":"uri"},"refreshSec":{"type":"integer"}},"required":["kind","url"]},{"type":"object","properties":{"kind":{"const":"file"},"fileName":{"type":"string"}},"required":["kind"]},{"type":"object","properties":{"kind":{"const":"manual"}},"required":["kind"]}]},"columns":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["number","date","string"]}},"required":["name"]}}}}},"widgets":{"type":"array","maxItems":200,"items":{"type":"object","required":["type"],"properties":{"type":{"enum":["kpi","trend","bar","donut","leaderboard","goal","calendar","compare","sparktable","hourmap","forecast","funnel","waterfall","sankey","stream","scatter","treemap","gauge","bignumber","pace","geo","points","feed","ask","anomaly","insight","table","prebuilt"]},"size":{"enum":["small","medium","large","xlarge"]},"title":{"type":"string"},"dataset":{"type":"string","description":"A datasets[].ref."},"x":{"type":"string"},"y":{"type":"string"},"series":{"type":"string"},"y2":{"type":"string"},"y3":{"type":"string"},"lat":{"type":"string"},"lng":{"type":"string"},"text":{"type":"string"},"agg":{"enum":["sum","avg","count","min","max","last"]},"format":{"enum":["number","compact","currency","percent"]},"tint":{"enum":["orange","red","yellow","pink","purple","indigo","blue","teal","mint","green"]},"stages":{"type":"array","items":{"type":"string"}},"columns":{"type":"array","items":{"type":"string"}},"target":{"type":"number"},"note":{"type":"string"},"deadline":{"type":"string","format":"date"},"query":{"type":"string"},"ref":{"type":"string","description":"Prebuilt library widget, \"<shelf>/<id>\"."}}}}}}