Plugin Authoring Guide

Every v2d plugin is a pure declarative JSON file (schemaVersion: 2). You never need to write Rust, Swift, or Mini Program code to support a new desktop app.

Super-Simple Icon Options

Pick whichever is fastest for you:

  • Emoji (Fastest!): Just set "icon": "🎬" or "icon": "🎵" with a soft "iconBg": "#eef2ff" — works everywhere with zero design tools.
  • Upload PNG / SVG: In our Visual Plugin Studio, drop any image or SVG and it auto-embeds into a single .v2dplugin file.
  • Folder icon.svg: When submitting to the repository plugins/<id>/, you can place an icon.svg alongside plugin.json.

Minimal plugin.json Example

{
  "schemaVersion": 2,
  "id": "obs-studio",
  "name": "OBS Studio",
  "version": "1.0.0",
  "author": "your-github-id",
  "category": "media",
  "tags": ["Streaming", "Recording"],
  "description": "Control OBS recording, scene switching, and mute from your phone",
  "icon": "🎬",
  "iconBg": "#eef2ff",
  "detect": {
    "windowPatterns": ["obs"],
    "exePaths": ["$PROGRAMFILES/obs-studio/bin/64bit/obs64.exe"]
  },
  "actions": [
    {
      "id": "focus",
      "label": "Focus OBS",
      "icon": "window",
      "kind": "primary",
      "when": "always",
      "exec": { "type": "focus" }
    },
    {
      "id": "record",
      "label": "Start / Stop Rec",
      "hint": "Ctrl + Shift + R",
      "icon": "mic",
      "kind": "secondary",
      "when": "always",
      "exec": { "type": "hotkey", "chord": "Ctrl + Shift + R" }
    }
  ]
}

Universal Action Primitives (exec)

exec.typeBehaviorParameters
focusFocuses the app window or launches appPathNone
hotkeyFocuses the window and sends any key chordchord: e.g. "Ctrl + Enter", "F5"
send_textFocuses composer, pastes text, and presses Entertext: preset message, or omit with "ui": "compose" to open the mobile keyboard sheet
uiaNative UI Automation semantic actiontarget: "approve" / "stop" / "new_chat" / "voice" / "dictate" / "composer"
resetClears pending approval/error alerts and re-probesNone

Prefer not to hand-edit JSON? Open the Visual Plugin Studio to pick an Emoji icon, add buttons, preview the mobile card live, and download a ready-to-import .v2dplugin file in 60 seconds!

← Quick Start Contributing Plugins →