Skip to content

docs: recommend JSON output for new plugins, add kitchen-sink example - #125

Merged
navbytes merged 1 commit into
mainfrom
docs/json-first-kitchen-sink
Aug 26, 2026
Merged

docs: recommend JSON output for new plugins, add kitchen-sink example#125
navbytes merged 1 commit into
mainfrom
docs/json-first-kitchen-sink

Conversation

@navbytes

Copy link
Copy Markdown
Owner

What

  • Steers new-plugin authors toward the structured JSON output format across the README, docs pages (getting-started, plugin-authoring, json-output, writing-plugins-with-an-llm, sdk, migrating-from-swiftbar), and the SDK/plugin READMEs. The text protocol stays fully documented as the xbar/SwiftBar compatibility format.
  • Adds plugins/showcase/kitchen-sink.1m.sh: a zero-dependency, download-and-run bash plugin emitting one {"vee":1} object that exercises every JSON field — multi-line titles, colors/sfimage/size, header, href, shell action (say, honestly declared via <vee.exec>), refresh, disabled, checked, tooltip, separators, 3-level submenu, ⌥-alternate, sparkline, progress, toggle, slider, donut chart.
  • Links the kitchen-sink with a curl one-liner from every relevant doc page.

Verification

  • swift run vee render plugins/showcase/kitchen-sink.1m.sh — every row decodes and renders (nesting, alternate, all accessories).
  • swift run vee lint plugins/showcase/kitchen-sink.1m.sh — no findings.
  • No Swift sources touched.

Steer new-plugin authors toward the structured JSON format across the
README, docs pages, and SDK/plugin READMEs, keeping the text protocol
fully documented as the xbar/SwiftBar compatibility format.

Add plugins/showcase/kitchen-sink.1m.sh — a zero-dependency bash plugin
emitting one {"vee":1} object that exercises every JSON field (titles,
colors, sfimage, href, shell, submenu, alternate, sparkline, progress,
toggle, slider, chart) — linked from the docs with a download one-liner.
@navbytes
navbytes merged commit dfa25d8 into main Aug 26, 2026
10 checks passed
@navbytes
navbytes deleted the docs/json-first-kitchen-sink branch August 26, 2026 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant