What starter-example plugins do comparable terminal/extension plugin systems ship first, what makes them copy-paste feasible, and which 8–10 fit DropTerm's Lua API?
Question: What example plugins do comparable terminal/emulator plugin systems
ship as canonical first examples, what makes those examples copy-paste friendly,
and which concrete example plugins are feasible for DropTerm's Lua plugin system
(a directory under plugins/ with plugin.lua + optional plugin.json)?
Date: 2026-12-01
TL;DR: Every surveyed system's canonical first example is one self-contained
artifact that demonstrates one concept, needs no build step, and states what you
should see when it works — VS Code's helloworld family ("Each sample is a
self-contained extension that explains one topic"), kitty's two-function
mykitten.py plus one map line, Yazi's five-line args-echoer, WezTerm's
Quick Start .wezterm.lua and its linted copy-paste fragments — and the strongest
precedent of all is Yazi's official plugins repo, which is the docs' code
snippets packaged so users install them with a package manager. Verdict
(proposal): ship an examples/plugins/ gallery of ten two-file plugin dirs
that cargo test can pin to the documented API, one per surface — a keybindable
command (the hello-world slot), a selection-transforming context-menu row, a
clipboard watcher with a settings toggle, an event-hook notifier, a chips-band
status chip, a persisted right-rail task list, a tab-switcher with a filter
field, an ssh tab-title provider, a cancellable progress job, and a
manifest-only styles/profiles plugin — each linked from the docs page that owns
its API; examples that need DropTerm surfaces that do not exist (screen-text
reading outside a menu run, timers, script-declared keybinds, previewers) are
rejected with the records that rejected the underlying surfaces.
Findings
1. VS Code: the samples repo's charter sentence is the clearest feasibility spec in the survey
- The microsoft/vscode-extension-samples
README (fetched 2026-12-01) states the charter: "Each sample is a
self-contained extension that explains one topic in VS Code API or VS Code's
Contribution Points. You can read, play with or adapt from these samples to
create your own extensions." What you "can expect from each sample": an
explanation of its functionality, a gif or screenshot demonstrating its
usage, a link to the guide on the VS Code website, a listing of used API
and Contribution Points, and "Code of the same style, enforced using ESLint."
Sixty-plus samples, one topic each; the README's table maps sample → guide →
exact API names (e.g. Status Bar Sample →
window.createStatusBarItem, Terminal Sample →window.createTerminal+ the four terminal events, Theme Sample →contributes.themes). - The Getting Started section names the canonical first examples: "Hello World Sample … See Extension Anatomy documentation", plus "Hello World Minimal Sample … written in JavaScript" (the fewest-files variant), a Test variant, and a Web variant. The minimal variant's existence is itself a finding: the repo ships a reduced hello world because even one topic has a floor of packaging that a beginner can skip first.
- Usage is two steps: "code
", "npm install in the terminal, then F5" (same README). The loop needs Node and a host launch — copy-paste in the file sense, but not in the no-toolchain sense. DropTerm's advantage is that its examples can be fully no-toolchain (copy the dir into plugins/, done), which no VS Code sample can claim.
2. WezTerm: no examples gallery — the Quick Start config plus linted docs fragments are the corpus
- The Configuration page (fetched
2026-12-01) opens with the canonical first example, a complete
.wezterm.lua:local wezterm = require 'wezterm'→local config = wezterm.config_builder()→ a few assignments (initial_cols,font_size,color_scheme) →return config. The same page teaches the convention the rest of the docs run on: "Throughout these docs you'll find configuration fragments that demonstrate configuration", showing how two fragments merge into one file — the docs' snippets are designed to be copy-paste-composable. - There is no standalone examples page today:
wezterm.org/config/examples.htmlandwezterm.org/config/examples/both returned 404 (2026-12-01), the repo'sdocs/tree has no examples dir beyond CLI synopsis fixtures (docs/ tree, checked via GitHub API 2026-12-01), and the sidebar shows a Recipes section of exactly three pages (hyperlinks, passing-data, workspaces). The old wezfurlong.org "Examples" section was folded into the per-topic config pages. - The real example corpus lives in the event docs: each
wezterm.onpage (e.g. format-tab-title, update-right-status, bell) carries a worked snippet that is a complete mini-plugin. These status-bar and tab-title snippets are the genre users copy most; the community awesome-wezterm list the plugins page points to is where they graduated into real plugins (the plugins page's own contract —plugin/init.luaexportingapply_to_config,file://dev URLs,wezterm.plugin.update_all()— was pinned by plugin-authoring-and-creator-ux finding 7, fetched 2026-11-26). - The host validates its examples: the changelog entry (verified on the live page 2026-12-01): "The lua examples in the docs are now syntax checked and formatted via Gelatyx and StyLua, thanks to @azzamsa! #2273 #2253." Copy-paste safety is enforced by CI, not hoped for.
3. kitty: the first example is one Python file and one config line — an input dialog that pastes text
- Custom kittens (fetched
2026-12-01) is the tutorial (the old
/kittens/tutorialURL now redirects here). Its first kitten is deliberately end-to-end tiny: create~/.config/kitty/mykitten.pywith two functions —main(args)runs in an overlay and asksinput('Enter some text: ');handle_result(...)pastes the answer viaboss.window_id_map.get(target_window_id)andw.paste_text(answer)— then add one line tokitty.conf:map ctrl+k kitten mykitten.py. "Start kitty and press Ctrl+K and you should see the kitten running." No scaffold, no build, no packaging: file + config line + observable result. - The page's second example is the no-UI scripting variant — a
zoom_toggle.pywith an emptymain()and a@result_handler(no_ui=True)handler that swaps layouts — showing the same format covers "script kitty without any terminal UI". The input-annotations table (type_of_input='text'|'selection'|'output'| 'history'|…) is the read-surface menu a kitten can ask for. - The page's development advice confirms the corpus model: "The best way to develop your own kittens is to modify one of the built-in kittens." The built-ins (kittens/ dir) are the examples, and the docs page links "Kittens created by kitty users" for third-party work. kitty also warns its internal API "is neither entirely stable nor documented" and points to remote control as the stable alternative — an example set can double as a stability statement.
4. Yazi: the docs' code snippets are packaged into an official monorepo behind a package manager — the strongest precedent for an examples folder
- The plugin docs (fetched
2026-12-01) pin the format: a plugin is a
.yazidirectory under~/.config/yazi/plugins/holdingmain.lua,README.md, andLICENSE. The docs' first runnable example is a five-line functional plugin —entry = function(self, job) ya.dbg(job.args[1]) ... end— bound by one keymap line (plugin test -- foo --bar --baz=qux), teaching the whole registration story in one screen. - The official yazi-rs/plugins repo
(fetched 2026-12-01) states its own purpose in the About line: "Place code
snippets from docs into this monorepo, so that users can update more easily
via package manager." Twenty-three plugins installable with
ya pkg, each one concept, one line of pitch each:smart-enter("Open files or enter directories all in one key!"),full-border("Add a full border … to make it look fancier"),no-status("Remove the status bar"),jump-to-char(vim-likef<char>),term-cwd("Inform terminal about current directory change by sending OSC code"),compress/git/mount/rclone/chmod/smart-paste(external-tool integrations),types.yazi(Lua API type definitions as a dev aid). The categories of the official corpus and the needs of a starter gallery are the same list. - Yazi's docs also carry the meta-lesson in their debugging section: errors
surface in a log file (
ya.dbg()→yazi.logunder aYAZI_LOGenv), i.e. the host ships the feedback loop examples rely on. DropTerm's equivalent — every wrong shape costs onedropterm:log line — is already shipped (plugins.md, "Timeouts and reloads" and each scan table).
5. Zellij: the host's own UI is the example set — but the WASM build step keeps it from being copy-paste
- The Zellij plugins page
(fetched 2026-12-01): "Zellij itself builds its UI from plugins, you can
browse their code for inspiration", linking
default-plugins
—
about,bars,configuration,context-menu,layout-manager,multiple-select,plugin-manager,prompt,session-manager,share,strider,fixture-plugin-for-tests(listed via GitHub API 2026-12-01). The host eating its own dog food is the strongest possible "these examples are current" statement. - But the format is Rust compiled to WASM ("Currently, Rust is the only language
officially supported"), so the examples are reference reading, not
copy-paste starters — despite the docs' own aspiration that plugins are
"visual cross-platform scripts that do not need to be installed or
compiled". Two lessons: (a) shipping the shell's own chrome as plugins is a
credible examples story — DropTerm already does this with the embedded
core-chipsplugin (bands.md, "The core chips"); (b) the no-build property is what separates a true starter gallery from inspiration material, and DropTerm's interpreted Lua 5.4 has it. Also notefixture-plugin-for-tests: Zellij ships a test fixture as a first-class plugin, a pattern DropTerm's test suite can mirror by pinning each example.
6. Warp: the extension tier is a YAML corpus, and its "starter examples" are one-line data files
- Warp ships no in-process plugin system — REA on the 0.2026.11.18 binary confirmed it extends through files and protocols only (terminal-plugin-systems, verdict line, fetched 2026-11-21). Its extension surface is the workflow schema: a YAML data-file corpus in its own MIT repo (498 specs at the pinned rev), surveyed and pinned by warp-completion-behavior (fetched 2026-11-23), and its in-app "editor" is a form that fills those YAML files, with an agent for autofill (plugin-authoring-and-creator-ux finding 12, fetched 2026-11-26).
- The lesson for examples: the declarative-only tier deserves its own pure
manifest example — something a user installs without any script at all.
DropTerm has that tier twice over: manifest
profiles[](plugins.md, "Profiles" — declared shell profiles the user adds) and manifeststyles[](styling.md, "Manifest styles" — "chrome restyles from launch with zero interpreter").
7. The categories recur: ten slots cover every surveyed system's starter corpus
| Category | VS Code | WezTerm | kitty | Yazi | Zellij | DropTerm slot |
|---|---|---|---|---|---|---|
| hello world / minimal | helloworld(-minimal) | Quick Start config | mykitten.py | args-echoer | — | paste-uptime command |
| a command you bind to a key | vim-sample, document-editing | key tables + snippets | every kitten's map line | functional plugins | keybinds | every command example |
| status widget | statusbar-sample | update-right-status | panel kitten | — | bars | chips-band chip |
| tab title / decoration | tabs-api-sample | format-tab-title | — | — | bars | tab_title + tab_chips |
| event hook | terminal-sample's onDidCloseTerminal | bell, user-var-changed | remote-control triggers | — | events | bell/child-exit/focus pair |
| dialog / picker / input | quickinput-sample | PromptInputLine | mykitten's input() | input in smart-filter | prompt | dialog button/input/pick kinds |
| themed UI / appearance | theme-sample, decorator-sample | appearance fragments | themes kitten | full-border, no-status | about | manifest styles |
| external-tool integration | task-provider-sample | launch_menu recipes | icat, hyperlinked_grep | compress, git, mount | session-manager | io.popen one-shot + send_text |
| text transformer | document-editing | — | hints kitten | smart-paste | — | menu row + p.selection |
| test fixture / corpus | helloworld-test-sample | linted docs snippets | built-in kittens | the monorepo itself | fixture-plugin-for-tests | tests pinning each example |
8. What makes an example copy-paste feasible — seven properties, each pinned by a source
- Self-contained artifact — one directory, everything it needs inside it
(VS Code charter sentence; Yazi's
.yazidir with its own README). - No build step — kitty's
.pyfile, Yazi'smain.lua, DropTerm'splugin.lua; Zellij's WASM pipeline is the counter-example that breaks copy-paste even with great docs. - One concept per example — the VS Code charter ("explains one topic"); every yazi-rs plugin pitch is one line long.
- Stated expected result — kitty's "press Ctrl+K and you should see the kitten running"; VS Code's per-sample gif/screenshot.
- Real-world useful, not a toy — Yazi's examples are the plugins users install; kitty points beginners at the built-ins users actually run.
- Linked to the reference — every VS Code sample row carries its guide URL and API list; examples without a docs anchor strand the reader.
- Machine-checked — WezTerm syntax-checks its docs examples with
Gelatyx/StyLua; VS Code enforces ESLint across samples. Copy-paste safety is
a CI property. DropTerm's analog:
cargo testpinning each example's Lua and JSON to the documented vocabulary (the repo already pins serialized config keys to docs the same way).
What DropTerm has today
Verified against the local docs at HEAD 17c47e4d (branch ced),
2026-12-01. This section is the API surface every example must stay inside;
the docs pages are ground truth.
Layout and loading (plugins.md): a plugin is a directory
under the config dir's plugins/ holding plugin.lua and an optional
plugin.json; the directory name is the id (lowercase slug, letters/digits/
hyphens, ≤64). A manifest-less script still loads, eagerly, with a nudge line.
Hot reload: any edit under plugins/ recreates the interpreter whole.
Timeouts: 100 ms soft bound (stale, discarded), 1 s hard cap (interpreter
teardown + reload). Trust model: full Lua 5.4 stdlib, io/os included, no
sandbox; a script blocked in a C call (io.read on a pipe, a blocking
os.execute) cannot be interrupted — examples must not model long blocking
work.
Manifest keys (closed vocabulary, kebab-case; unknown key = one log line, ignored):
name— display name only; the id is the directory.commands[] {id, description}— rows render bindable underscript/<id>on the Keybindings page and palette-searchable with no interpreter alive; each implicitly derives activationon_command:<id>.menu[] {label, command, when}— context-menu rows above "Settings…";when∈selection|word| absent; a run's handler receivesp.selection,p.word,p.cwdbeside the chord keys; one row per command.settings[] {key, label, type, default[, enum]}— typesboolean,string,number,enum,array,object; rendered on Settings' Plugins page; delivered to every dispatch asctx.settings/ the event handler's second argument; persisted inplugins-settings.json.profiles[] {id, name, command, cwd?, env?, color-scheme?, font-size?, scrollback-lines?}— shell-profile offers on the Plugins page (Add / Added / Update); nothing runs until the user adds it.activation[]— empty = lazy (first declared command press);on_startup;on_startup_finished(first painted frame + 50 ms).permissions[]— one slug today:clipboard-watch, gating theclipboard-changeevent; a watcher must also declareon_startup.panels[] {id, title, on_summon?}— Panel = the unit a user summons, one palette row underpanel/<id>;on_summon∈reveal(default) |float.bands[] {id, edge?}— declared bands,edge∈top|bottom|free;tab-stripis reserved.styles[] {selector, declarations}— manifest style sheet; chrome restyles from launch with no interpreter (styling.md, "Manifest styles").
Runtime port (require('dropterm')):
dropterm.on(name, handler)/dropterm.emit(name, payload)— the bus; handlers run in registration order; a raise is one log line.dropterm.command(name, description, handler)— slug identity, one live seat, handler receives{ tab }(script-commands.md); menu runs addselection,word,cwd.dropterm.send_text(text)— raw input on the dispatch's tab, fire-and-forget; drops with a line where no ctx tab exists (load-time, band/rail views,clipboard-changehandlers).dropterm.dialog{...}— three kinds: buttons (1–3{id, label, class?};class = 'accent'marks primary),kind = 'input'(placeholder?,value?,request_id?),kind = 'pick'(1–50items {id, label, class?, style?},request_id?); one live seat; answers arrive asslot-event.dropterm.panel_view(view_id, config, handler)—config.container∈right-rail|left-rail|tab-strip| a declared band id;config.titlerequired; optionalconfig.panel. Asked at registry change, at each drop-down show, at the once-a-second cadence while shown, and on astatus-refreshpull. Answers: a plain string, styled spans,{ rows = … }, ornilto hide. Text rows:{ text | spans, class?, style?, id? }; field rows:{ field, placeholder?, value?, set? }(field events areinput:change/input:submit, owner-only, newest-change-wins).- Chips (a band view's rows):
{ chip, text|spans, badge?, tip?, class?, copy? | action? }—actiontoday is onlyscroll_to_bottom; a chip with neither sendschip:pressto its owner. Band ctx carries the status mirror (home,cwd,reported_cwd,hostname,shell,profile_name,zoom_adj,zoom_step_mul_100,foreground,branch,grid,spawn_grid,tab_position,clock,running_elapsed,frozen,exit_status,scrolled_back,pasted,progress,program_status,ssh_destination,missed_activity) (bands.md, "The band view's ctx"). dropterm.tab_title(handler)— the one global title provider; ctx{ tab, title, cwd?, profile? }; returns a string ornil; the user's rename always wins (tab-titles.md).dropterm.tab_chips(handler)— the one decoration seat; per tab id{ badge?, class?, tip? }; never the label.dropterm.tabs—new([profile]),select(id),close(id),rename(id, title),duplicate(id),move(id, index),pin(id).dropterm.panels.open(id)/float(id[, bounds])/dock(id)— the plugin's own summoning calls;bounds = {x, y, width, height}is a first-open suggestion written once topanels.ron.dropterm.output(name)→handle:line(text)/handle:clear()— the plugin's own rail log; right rail only; newest 200 lines, 4 KiB per line.dropterm.state.get(key)/set(key, value)— JSON-shaped store, 256 keys, 128-byte keys, 64 KiB values, persisted inplugins-state.json.dropterm.progress.open(id, {title?, total?, cancellable?})/advance(id[, by])/finish(id)— the one progress chip; cancel arrives asslot-eventkind = 'cancel'.dropterm.clipboard.read({primary?})/write(text, {primary?})— 1 MiB cap; both on the host thread (keep them in handlers).dropterm.styles({ {selector, declarations}, … })— the runtime sheet; one call replaces the caller's runtime sheet (styling.md, "The runtime verb").dropterm.status_segment— retired; a chip in thechipsband replaces it.
Terminal events (seven from the engine/window plus the gated one):
bell {tab}, title {tab, title} (change-gated), title-reset {tab},
child-exit {tab, code} (OSC 133;D exit status), exit {tab},
focus-gained {tab}, focus-lost {tab}, and clipboard-change {text} for
clipboard-watch plugins only. tab is an opaque number, correlation only.
slot-event — the one interaction event, four keys {surface, slot, element_id, kind} (+ value / request_id where documented): dialog
press/dismiss, input:submit/input:dismiss, pick:select/
pick:dismiss, panel row presses (positional index or the row's numeric
id), field input:change/input:submit, chip chip:press, progress
cancel.
Styled spans — { text, class?, id?, style? }; inline declarations are a
closed set (color, background, font-weight, font-style,
text-decoration, icon); palette words accent, attention, fg, bg,
the eight ANSI names and their bright_* forms, or #rrggbb. Addressable
chrome (styling.md, "The addressable tree"): chip,
chip.attention, chip.scrolled, tabstrip, tab, tab.active,
settings-page.<page>, dialog, dialog-button, dialog-input,
dialog-item, dialog-item.selected, panel-view#id, panel-input,
output-channel#name, output-line, span, row.
Embedded core-chips — seven views in the chips band (process, cwd,
branch, command, scrolled, clock, activity), loadable as worked
examples; replacing one is registering a view with its id; shadowing all is a
user dir named core-chips (bands.md).
Not available to plugins (so examples must not use them): reading screen
text or scrollback (only a menu run receives selection/word), timers
(only the once-a-second view cadence and status-refresh pulls), script-side
keybinding (the user binds in settings, always), panes/splits, completions
(rejected in ai-completion-providers), and
plugin-declared keybinds or terminal verbs (rejected in
vscode-extension-lifecycle-rea).
Recommendation
Proposed: an examples/plugins/ gallery of ten plugin dirs, one per API
surface, each loadable by copying into plugins/, each pinned by a test that
loads its Lua (byte-compiles it) and validates its manifest JSON against the
documented vocabulary, each linked from the docs page that owns its surface.
The gallery triples as the docs' copy-paste snippets, the dropterm plugin new
templates plugin-authoring-and-creator-ux
already recommends, and the few-shot corpus external AI agents author against.
Ordering follows the precedent list: hello-world command first.
hello-uptime— the canonical first example. One command (paste-uptime) that runsio.popen('uptime'):read()andsend_texts the result; manifest declares the command so the row and palette entry exist before first press. Precedent: kitty'smykitten(input→paste, one file + one map line) and VS Code's helloworld pair. Surfaces:command,send_text, manifestcommands, activation-by-press.case-menu— two context-menu rows (Upper case,Lower case,when: selection) transformingp.selectionand writing it back. Precedent: the text-transformer slot (VS Code document-editing, kitty hints). Surfaces: manifestmenu,p.selection,send_text.clipboard-upper— a command that upper-cases the clipboard (clipboard.read/write), plus aclipboard-changewatcher that keeps a copy-count instate, with asettings[]boolean row muting it. Precedent: kitty's clipboard kitten; the event-hook slot. Surfaces:clipboard, permissionclipboard-watch,on_startup,settings,state. Carries the docs' loop caution (a handler writing back what it read fires the event again) as a comment.focus-notify— onfocus-lost+bell, show a button dialog ("Build finished?"-shaped); onchild-exitwith a nonzero code, log tab and code to anoutputchannel and show anattention-styled dialog; log every exit to the channel. Precedent: VS Code terminal-sample's terminal-event hook; the dialog slot. Surfaces:bell,child-exit,focus-gained,focus-lost,dialog,output, styled spans. (Anos.execute 'notify-send …'variant may be shown commented out, with the docs' blocking-in-a-C-call caution attached.)branch-chip— a chips-band chip showingctx.branch(falling back toctx.ssh_destination), click copies it,attentionclass whenctx.exit_statusis nonzero. Precedent: the status-widget slot (VS Code statusbar-sample; WezTermupdate-right-status; DropTerm's own embedded command chip is the in-repo model, quoted verbatim in bands.md). Surfaces:panel_viewinchips, band ctx mirror,copy,class.todo-rail— a right-rail task list: rows toggle done on press (slot-eventrow id → flip → next answer repaints), an input dialog adds items,statepersists across restarts. Precedent: VS Code quickinput-sample + tree-view-sample; the persisted-widget slot. Surfaces:panel_viewinright-rail,slot-event,dialoginput kind,state.tab-filter— a rail view whose first row is a text field: typing narrows the tab list, pressing a row switches viadropterm.tabs.select. The docs' panel-field filter example (plugins.md, "Panel fields") grown into a real tool. Precedent: kitty choose-files; VS Code quickinput. Surfaces: field rows (value+setdiscipline),input:change,emit('status-refresh'),tabs.select, positional press ids.remote-titles— atab_titleprovider naming tabs after the ssh destination in their title report (falling back tocwdbasename, thennil), plus atab_chipsseat badgingsshtabsremote. Precedent: WezTerm'sformat-tab-titlesnippets — the most-copied WezTerm example genre. Surfaces:tab_title,tab_chips, OSC title semantics.deploy-progress— a rail view simulating a job: each once-a-second ask advances aprogressitem (5 steps), the cancellable chip leads the chips band, itscancelslot-eventfinishes early, lines log to an output channel. Precedent: VS Code progress-sample. Surfaces:progressopen/advance/finish,slot-eventcancel, band chip,output.restyle-chrome— zero Lua: a manifest withstyles[]only (tab.activeinaccentbold; achip.attentionoverride; asettings-page.pluginsbackground) plusprofiles[]ssh offers. Shows the declarative tier that never runs code. Precedent: VS Code theme-sample (a pure contribution-points sample) and Yazifull-border; Warp's data-file tier is the cautionary shape. Surfaces: manifeststyles,profiles; no script at all (aplugin.luais optional).
Coverage note. The ten cover every runtime port verb and seven of eight
events. Deliberately undemonstrated: the title/title-reset/exit events
(correlation-only payloads; fold into focus-notify if wanted),
panels.float/dock (a one-line variant inside todo-rail),
settings enum/array/object rows (a variant inside clipboard-upper),
tab-strip and declared-band containers (a variant inside branch-chip),
and emit cross-script messaging (no natural first example; the bus is
documented in plugins.md). Every example stays inside the
surface summary above; none may io.popen-loop, os.execute a long job, or
read screen text, because those either cannot be interrupted or do not exist.
Rejected alternatives, with grounds:
- A completion/ghost-text example — no third-party completion API exists; rejected for the runtime in ai-completion-providers.
- An example declaring its own keybindings or terminal verbs — scripts never bind chords (the user binds, in settings, only, script-commands.md); plugin-declared keybindings were rejected in vscode-extension-lifecycle-rea.
- A screen-scraper example (kitty's
type_of_input='history'genre) — DropTerm exposes no scrollback read to plugins; the only selection a script sees is a menu run'sp.selection. - A long-running-job example using
os.execute/io.popenblocking — the timeout machinery cannot interrupt a script blocked inside a C call (plugins.md, "Timeouts and reloads"); examples model async work as event-driven state across dispatches (deploy-progress), never blocking loops. - A themes example in the gallery — themes-from-disk is a separate system
(the plugin initiative's theme-files module), not a plugin-manifest surface;
the
stylesexample covers chrome restyling at the plugin tier. - A webview/canvas example — the declarative-UI verdict (lua-declarative-ui-precedents) keeps v1 to the closed row/field/chip vocabulary; no free-drawing surface exists.
Feasibility. No host changes: every API the ten examples use is shipped
and documented at HEAD 17c47e4d. Work items: ten dirs (one plugin.lua
each, seven with a plugin.json), one test module pinning them (byte-compile
the Lua, schema-check the JSON, assert every id/slug/event name against the
closed vocabularies — the same discipline as the config-keys pin test), an
examples/plugins/README.md indexing them with the "what you should see" line
each, and one link line per owning docs page (plugins.md,
script-commands.md, bands.md, tab-titles.md, styling.md — just docs-check must pass). Roughly 14 items, no blockers, no spikes; the gallery
is the precondition plugin-authoring-and-creator-ux
names for plugin new, the validator few-shot corpus, and the AI authoring
path.
Sources
Web fetched 2026-12-01 unless noted; GitHub repos inspected via the API at fetch time.
- microsoft/vscode-extension-samples — README charter sentence, per-sample promises, Getting Started (helloworld family), the sample→guide→API table, usage steps.
- wezterm.org — Configuration — Quick
Start
.wezterm.lua, the "configuration fragments" convention, the merge recipe,apply_to_configmodule pattern; sidebar confirming the Recipes section's three pages and the absence of an examples page. - wezterm.org — Plugins — plugin
format (
plugin/init.lua,apply_to_config,file://dev loop), pinned by plugin-authoring-and-creator-ux (fetched 2026-11-26). - wezterm.org — Change Log — "The lua examples in the docs are now syntax checked and formatted via Gelatyx and StyLua" (#2273 #2253), verified by grep on the live page 2026-12-01.
- wezterm/wezterm docs tree —
docs/examples/holds CLI synopsis fixtures only;docs/recipes/holds hyperlinks/passing-data/workspaces (GitHub API, 2026-12-01). - sw.kovidgoyal.net/kitty — Custom kittens —
the
mykitten.pyfirst example (two functions +map ctrl+k kitten mykitten.py), thezoom_toggle.pyno-UI variant, the input-type table, "modify one of the built-in kittens", the internal-API stability note. - sw.kovidgoyal.net/kitty — Extend with kittens — the built-in kitten list and the "Learn to create your own kittens" pointer.
- yazi-rs.github.io — Plugins overview —
.yazidir format (main.lua/README/LICENSE), keymap binding, the args-echoer first example,ya.dbglogging, sync/async contexts. - yazi-rs/plugins — About line ("Place
code snippets from docs into this monorepo…"), the 23-plugin list with
one-line pitches,
ya pkginstall. - zellij.dev — Plugins — "Zellij itself builds its UI from plugins, you can browse their code for inspiration"; Rust-only support; the "do not need to be installed or compiled" aspiration.
- zellij-org/zellij default-plugins —
directory listing incl.
fixture-plugin-for-tests(GitHub API, 2026-12-01). - Prior records carrying pinned Warp facts: terminal-plugin-systems (fetched 2026-11-21; REA on the 0.2026.11.18 binary; the workflow corpus repo) and plugin-authoring-and-creator-ux (fetched 2026-11-26; docs.warp.dev workflow editor, Raycast templates, the examples-gallery recommendation).
- DropTerm local (HEAD
17c47e4d): docs/plugins.md, docs/script-commands.md, docs/bands.md, docs/tab-titles.md, docs/panel-containers.md, docs/styling.md,dropterm/src/core/plugins_manifest.rs(thestyles/profileskey parses and their test pins).
Unverified
- The old WezTerm "Examples" section's exact former URL set —
config/examples.htmlandconfig/examples/both 404 today and the docs tree has no examples dir, so "no standalone examples page exists" is established for the current site only; the wezfurlong.org-era pages' fate was not archived-checked. - kitty's tutorial URL history —
/kittens/tutorial/returned 404 and the custom-kittens page serves the tutorial content today; whether a redirect was ever configured (vs. content moving) was not verified. - Relative popularity of the VS Code samples — the README's Getting Started section names the helloworld family as the starting point, but per-sample usage/traffic data does not exist publicly; "most-used" claims were not made.
- The Gelatyx/StyLua changelog quote — confirmed on the live changelog page by grep (2026-12-01); the exact release version the entry belongs to was not pinned.
- Awesome-wezterm as the canonical community list — cited via the plugins docs' pointer and the prior record's fetch of that page; the list's current contents were not audited this session.
- Warp facts — all Warp claims cite the prior records' fetches (2026-11-21/23/26), not fresh fetches this session.
examples/plugins/as the location — the prior authoring record's feasibility section named "docs or a newexamples/plugins/"; no owner ruling yet pins the directory, and this record inherits that proposal.