Key Info
A developer working on OpenCode outlined three plugin ideas: native C ABI shared libraries, TypeScript plugins running on a Bun JS host via a compatibility layer, and plugins distributed as source. In a sweep of ~890 TUI plugins from npm, ~710 behaved the same as in the current TUI.
Highlights
- Native C ABI would let plugins be written in any language that can build a C-ABI shared library, using the same plugin API as built-in Rust plugins.
- TypeScript plugins would run on a Bun JS host through a compat layer; the author says they likely will ship this after more testing.
- The TS plugin approach aims to ease the transition from the current TypeScript TUI to a Rust TUI for users who have customized OpenCode.
- Plugins as source is proposed to avoid putting distribution complexity on plugin authors.