App guidelines
A few standards keep the catalog high-quality and every app safe to run.
Mustโ
- Renders cleanly.
gdn validatepasses for every page. - No secrets. Never commit API keys. Declare an
api_keyinput and read it fromctx.inputs, see HTTP requests. - Declared assets. Every PNG you draw is listed under
assets:and kept small. - Sensible refresh. Use the slowest
refreshthat still looks live,3600for hourly data,60-300for fast-moving data. - Clear metadata. A real
name, a one-linedescription, and anauthor.
Shouldโ
- Readable at 32px. Favor big fonts and high-contrast colors; test tiny text on the real panel size in preview.
- Helpful inputs. Give each input a clear
label, a gooddefault, and ahelphint. Pick the right input type. - Degrade gracefully. If an input is blank, fall back to a sane default rather than drawing nothing.
Namingโ
- App
id: lowercase, hyphens, no spaces (local-aqi, notLocal AQI). - Keep it descriptive, it's the folder name and the endpoint.