Dashboard Manifest

Dashboard Manifest

Every Huitzo Dashboard requires a huitzo-dashboard.yaml manifest file that defines metadata, pack dependencies, pricing, and deployment configuration. This file lives at the root of your dashboard project.

Manifest Files: Dashboards use huitzo-dashboard.yaml. Intelligence Packs use huitzo.yaml. See Pack Manifest for pack configuration.

Quick Example

dashboard:
  name: "claims-dashboard"
  namespace: "claims"
  version: "1.0.0"
  description: "Claims management dashboard"
  visibility: "organization"
  author: "Acme Insurance"
  license: "proprietary"

pack_dependencies:
  - scope: "@acme"
    name: "claims-processor"
    version: ">=2.0.0 <3.0.0"
    required: true
  - scope: "@huitzo"
    name: "analytics"
    version: "*"
    required: false

pricing:
  model: "subscription"
  price: 29
  billing_period: "monthly"
  trial_days: 14

build:
  framework: "react"
  node_version: ">=20.0.0"
  build_command: "npm run build"
  output_directory: "dist"
  entry_point: "main.js"

deployment:
  hosting: "huitzo-cdn"
  cdn:
    subdomain: "claims"

metadata:
  homepage: "https://acme.com/claims-dashboard"
  keywords: ["claims", "insurance", "management"]
  category: "business"
  screenshots:
    - url: "https://cdn.acme.com/screenshot1.png"
      caption: "Main dashboard view"
    - url: "https://cdn.acme.com/screenshot2.png"
      caption: "Claims detail page"

File Structure

The manifest uses YAML format with these main sections:

Section Required Description
dashboard ✅ Yes Core dashboard metadata
pack_dependencies ✅ Yes Required Intelligence Packs
pricing ❌ No Marketplace pricing
build ❌ No Build configuration
deployment ❌ No Deployment settings
metadata ❌ No Additional metadata
listing ❌ No Marketplace/hub listing presentation (publisher, links, brand, descriptions)

Dashboard Section

The dashboard section defines core metadata about your dashboard.

Required Fields

dashboard:
  name: "my-dashboard"           # Unique identifier (kebab-case)
  namespace: "mydash"            # Short namespace (lowercase)
  version: "1.0.0"               # Semantic version
  description: "Dashboard for managing widgets"

Optional Fields

dashboard:
  # ... required fields ...

  visibility: "organization"     # public | unlisted | organization | private
  author: "Your Name"            # Author or company
  license: "MIT"                 # License identifier
  min_sdk_version: "1.0.0"       # Minimum Dashboard SDK version

Field Reference

Field Type Required Default Description
name string ✅ - Unique dashboard identifier (kebab-case)
namespace string ✅ - Publishing scope: lowercase letter first, then lowercase letters, digits, or hyphens; 2-39 characters
version string ✅ - Semantic version (MAJOR.MINOR.PATCH)
description string ✅ - Short description (max 200 chars)
visibility enum ❌ organization Access control level
author string ❌ - Author name or organization
license string ❌ proprietary License identifier
min_sdk_version string ❌ 1.0.0 Minimum Dashboard SDK version

Visibility Levels

Level Description Discovery Access
public Available to all users Searchable, browsable No access grant required
unlisted Hidden from discovery Not searchable Requires dashboard link or ID
organization Requires explicit access Org members only Must have DashboardAccessGrant
private Only available to owner Owner only Owner organization only

Pack Dependencies Section

The pack_dependencies section declares which Intelligence Packs your dashboard consumes.

pack_dependencies:
  - scope: "@acme"
    name: "claims-processor"
    version: ">=2.0.0 <3.0.0"
    required: true

  - scope: "@huitzo"
    name: "analytics"
    version: "*"
    required: false

  - scope: "@acme"
    name: "notifications"
    version: "^1.0.0"
    required: false

Dependency Field Reference

Field Type Required Description
scope string ✅ Pack scope (e.g., @acme, @huitzo)
name string ✅ Pack name (kebab-case)
version string ✅ Semver range or * for any
required bool ❌ Whether pack must be installed (default: true)

Version Specifiers

Specifier Example Description
Exact 1.0.0 Exactly this version
Range >=1.0.0 <2.0.0 Version within range
Caret ^1.0.0 Compatible with 1.x.x
Tilde ~1.0.0 Compatible with 1.0.x
Any * Any version

Required vs Optional Dependencies

Required dependencies (required: true): - Dashboard won't install until user has the pack - Validation fails if pack is missing - User is prompted to install missing packs

Optional dependencies (required: false): - Dashboard installs without the pack - Features using the pack degrade gracefully - Use SDK to check if pack is available:

const { isPackInstalled } = useHuitzo();

if (isPackInstalled('@huitzo/analytics')) {
  // Show analytics features
}

Pricing Section

The pricing section configures marketplace pricing. Same models as Intelligence Packs.

Basic Pricing

pricing:
  model: "one-time"
  price: 99

Subscription Pricing

pricing:
  model: "subscription"
  price: 29
  billing_period: "monthly"
  trial_days: 14

Usage-Based Pricing (v2.5+)

pricing:
  model: "usage"
  per_session: 0.10       # Per user session
  monthly_minimum: 10

Pricing Models

Model Description Best For
one-time Pay once, access forever Tools, utilities
subscription Recurring payment SaaS products
usage Pay per session High-volume apps
free No charge (price: 0) Open source, demos

Pricing Field Reference

Field Type Required Default Description
model enum ❌ one-time Pricing model
price int ❌ 0 Price in USD
currency string ❌ usd Currency code
billing_period enum ❌ monthly For subscriptions: monthly, annual
trial_days int ❌ 0 Free trial period (0-30)
per_session float ❌ - Per-session price (usage model)
monthly_minimum float ❌ 0 Minimum monthly charge (usage model)

Pricing Validation Rules

These rules apply to both dashboards and packs (unified pricing model):

Rule Requirement
Minimum paid price $5 USD (prevents race-to-bottom)
Maximum price $10,000 USD
Trial days 0-30 days for subscriptions
Per-session $0.001 - $100 USD

Revenue Split

See Billing Reference for complete revenue split details.

Annual Revenue Platform Fee Developer Keeps
$0 - $5,000 0% 100%
$5,001 - $50,000 20% 80%
$50,001+ 10% 90%

Build Section

The build section configures how your dashboard is built.

build:
  framework: "react"
  node_version: ">=20.0.0"
  build_command: "npm run build"
  output_directory: "dist"
  entry_point: "main.js"
  env_prefix: "VITE_"          # Environment variable prefix

Build Field Reference

Field Type Required Default Description
framework enum ❌ react Framework: react, vue, svelte, angular, vanilla
node_version string ❌ >=18.0.0 Required Node.js version
build_command string ❌ npm run build Command to build the dashboard
output_directory string ❌ dist Build output directory
entry_point string ❌ main.js ESM module entry point (Vite library mode output)
env_prefix string ❌ VITE_ Environment variable prefix

Framework Support

Framework Status Template Command
React ✅ Supported huitzo dashboard new --template react
Vue 📋 Planned -
Svelte 📋 Planned -
Angular 📋 Planned -
Vanilla ✅ Supported huitzo dashboard new --template vanilla

Deployment Section

The deployment section configures where and how your dashboard is hosted.

Huitzo Hub (Default)

deployment:
  hosting: "huitzo-hub"
  hub:
    slug: "claims-dashboard"      # hub.huitzo.com/d/claims-dashboard

Self-Hosted Hub

deployment:
  hosting: "self-hosted"
  self_hosted:
    hub_url: "https://hub.company.com"
    slug: "claims-dashboard"      # hub.company.com/d/claims-dashboard
    api_url: "https://hub.company.com/api"

Deployment Field Reference

Field Type Required Default Description
hosting enum ❌ huitzo-hub Hosting type: huitzo-hub, self-hosted
hub.slug string ❌ (from name) Dashboard slug for Hub URL
self_hosted.hub_url string ❌ - Self-hosted Hub URL
self_hosted.slug string ❌ (from name) Dashboard slug
self_hosted.api_url string ❌ - Huitzo API endpoint

See Deployment Guide for complete setup instructions.


Metadata Section

Additional metadata for discoverability and documentation.

metadata:
  homepage: "https://acme.com/claims-dashboard"
  repository: "https://github.com/acme/claims-dashboard"
  documentation: "https://docs.acme.com/claims-dashboard"
  changelog: "https://github.com/acme/claims-dashboard/releases"
  keywords:
    - "claims"
    - "insurance"
    - "management"
  category: "business"
  screenshots:
    - url: "https://cdn.acme.com/screenshot1.png"
      caption: "Main dashboard"
    - url: "https://cdn.acme.com/screenshot2.png"
      caption: "Claims list"
  video_url: "https://youtube.com/watch?v=..."

Category Options

Category Description
business Business tools, CRM, management
analytics Data visualization, reporting
productivity Personal productivity, tasks
finance Financial dashboards, accounting
marketing Marketing dashboards, campaigns
operations Operations, monitoring
developer Developer tools, admin panels
other Uncategorized

Listing Section

Conceptual, additive — not yet schema-enforced for dashboards. This mirrors the listing: section added to the pack manifest in huitzo-sdk 1.5.0 (see Pack Manifest → Listing Section for the code-first schema, field constraints, and validation rules — the PackManifest.listing Pydantic model is the source of truth those rules come from). The dashboard manifest loader ignores listing: today — it does not reject an unknown top-level key, so including listing: is safe and will not fail huitzo dashboard validate, but nothing checks its shape or contents either. This section documents the shared shape so pack and dashboard listings stay conceptually aligned ahead of dashboard-side enforcement.

Because nothing validates it at build/CLI time, every listing value in a raw dashboard bundle is untrusted publisher input — this remains true; huitzo dashboard validate and the CLI loader still do not check listing:'s shape or contents. Any consumer that reads listing directly from an uploaded huitzo-dashboard.json — before dashboard-side CLI enforcement lands — MUST independently validate asset paths as bundle-relative (reject .., absolute paths, and ://) and MUST contextually escape all copy before rendering it; never pass a listing field to dangerouslySetInnerHTML.

The backend closes this gap on the read side (T-062). At upload, the backend independently validates a dashboard's raw listing block against the same ListingSection model the pack manifest uses (https-only URLs, bundle-relative asset paths, markup rejection — all of it); an invalid block is dropped, not stored (see Listing Snapshot Persistence). The catalog API's allow-listed listing projection (GET /api/v1/dashboards, GET /api/v1/dashboards/{scope}/{slug}, and the listing-history endpoint) therefore never returns a listing value that failed those checks. The untrusted-input warning above is scoped to a consumer reading the raw bundle manifest directly — a path this repo's own CLI and any future third-party tooling can still take — not to the backend catalog API.

A second, hard-reject layer validates asset content (T-063). The schema-shape check above still drops a malformed listing block rather than failing the publish (backward-compat carve-out, unchanged by this layer). Referenced assets (brand.logo, screenshots[]) go through a separate, always-enforced content check — MIME/magic-byte sniffing, size caps, and SVG default-deny sanitization against the dashboard's extracted bundle — that DOES reject the whole publish (or the whole PATCH .../listing request) on failure. See Pack Manifest → Asset/Content Security Validation for the full rule set and stable error codes.

The optional listing: section carries the same publisher identity, discovery links, brand assets, and descriptive copy as the pack manifest's listing: section:

listing:
  publisher:
    name: "Acme Insurance Tech"
    organization: "Acme Insurance Tech"
    contact_email: "[email protected]"

  links:
    website: "https://acme.com/claims-dashboard"
    support: "https://acme.com/support"

  legal:
    terms_url: "https://acme.com/terms"

  brand:
    logo: "assets/logo.png"     # convention: bundle-relative (not yet enforced for dashboards)
    accent: "primary"           # primary | secondary | success | warning | danger | info | neutral

  compatibility:
    notes: "Tested against huitzo-sdk 1.4+ and platform v2.x."

  commercial: {}                # reserved placeholder — see Pack Manifest reference

  short_description: "Claims management, built for insurers."
  long_description: "Full-length marketing copy for the marketplace listing page."
  screenshots:
    - "assets/screenshot-1.png"
    - "assets/screenshot-2.png"

Field Reference

Field Type Required Description
publisher object ✅ Publisher identity — name, organization, contact_email
links object ❌ Discovery links — website, support
legal object ❌ Developer-terms link — terms_url
brand object ❌ Packaged brand assets — logo, accent
compatibility object ❌ Declared compatibility statement — notes
commercial object ❌ Reserved placeholder — reserved (shape only, TASK-PRICING-09) — see the note below
short_description string ❌ Card-length summary (≤160 chars)
long_description string ❌ Full listing-page copy (≤5000 chars)
screenshots list ❌ Bundle-relative screenshot paths

commercial now has a specification (T-090), and no implementation. Execution-Pricing Schema Specification defines listing.commercial.execution_pricing for both manifest families, and requires the dashboard side to validate it against the same rules as the pack side when dashboard-side listing: enforcement lands (§1 rule 3). Today the dashboard loader still ignores listing: entirely and nothing reads execution_pricing.

The full field-level constraints (URL/https:// rules, length caps, bundle-relative asset path rules, the accent-token enum, and how legal.terms_url relates — and does not relate — to the platform's separate per-product developer-terms gating) are documented once, on the pack manifest page, to avoid two sources of truth — see Pack Manifest → Listing Section.


Validation

The CLI validates your manifest before building:

huitzo dashboard validate

Validation Rules

  1. Required fields - All required fields must be present
  2. Naming conventions - Names follow kebab-case rules
  3. Version format - Version is valid semver
  4. Pack dependencies - Referenced packs exist
  5. Subdomain uniqueness - CDN subdomain is available
  6. Build configuration - Build command and output are valid

Common Validation Errors

❌ Error: dashboard.name must be kebab-case
   Found: "MyDashboard"
   Expected: "my-dashboard"

❌ Error: Pack dependency not found
   Pack: @acme/nonexistent-pack
   Fix: Verify pack name and scope

❌ Error: CDN subdomain already taken
   Subdomain: "analytics"
   Fix: Choose a unique subdomain

Complete Example

# huitzo-dashboard.yaml - Insurance Claims Dashboard

dashboard:
  name: "claims-management"
  namespace: "claims"
  version: "2.1.0"
  description: "Complete claims management dashboard for insurance companies"
  visibility: "organization"
  author: "Acme Insurance Tech"
  license: "proprietary"
  min_sdk_version: "1.0.0"

pack_dependencies:
  - scope: "@acme"
    name: "claims-processor"
    version: ">=2.0.0 <3.0.0"
    required: true

  - scope: "@acme"
    name: "document-analyzer"
    version: "^1.5.0"
    required: true

  - scope: "@huitzo"
    name: "analytics"
    version: "*"
    required: false

  - scope: "@huitzo"
    name: "notifications"
    version: ">=1.0.0"
    required: false

pricing:
  model: "subscription"
  price: 99
  billing_period: "monthly"
  trial_days: 14

build:
  framework: "react"
  node_version: ">=20.0.0"
  build_command: "npm run build"
  output_directory: "dist"
  entry_point: "main.js"

deployment:
  hosting: "huitzo-cdn"
  cdn:
    subdomain: "claims-mgmt"

metadata:
  homepage: "https://acme-insurance.com/claims-dashboard"
  documentation: "https://docs.acme-insurance.com/claims"
  keywords:
    - "claims"
    - "insurance"
    - "management"
    - "processing"
  category: "business"
  screenshots:
    - url: "https://cdn.acme.com/claims-main.png"
      caption: "Claims overview dashboard"
    - url: "https://cdn.acme.com/claims-detail.png"
      caption: "Claim detail view"
    - url: "https://cdn.acme.com/claims-analytics.png"
      caption: "Analytics dashboard"