Documentation

Plugin Platform Overview

Architecture, sandboxing, host-rendered UI, and permission model for Netcatty plugins

Netcatty includes a security-first plugin platform that lets developers extend the workspace with rich database IDEs, terminal providers, scoped AI workflows, and theme packs—without giving plugin code access to your SSH keys, host renderer, or operating system.

Browse available plugins in the Plugin Marketplace.

Architectural Principles

Every normal Netcatty plugin runs inside an isolated, offline sandbox and renders custom views exclusively through Host-Rendered UI.

Loading diagram...

1. Three Package Placement Tiers

TierManifest mainAdmissionCapabilities
Data-only Theme Pack{ "data": "theme" }Standard SettingsContributes WCAG-checked light/dark host color palettes. Zero JavaScript runs; zero permissions required.
Browser-only Plugin{ "browser": "dist/index.js" }Standard SettingsRuns in an offline, sandboxed BrowserWindow with no Node APIs, no direct internet access, and no host bridge. All capabilities go through host-mediated RPC brokers.
Advanced Node / Companion{ "node": "dist/node.js" }Developer mode only (NETCATTY_PLUGIN_DEV=1)Runs in a dedicated utilityProcess with optional SHA-256-pinned native companions. Requires runtime.advanced and is excluded from the public catalog.

Setting NETCATTY_PLUGIN_DEV=1 only unlocks local installation of advanced development packages. It never auto-grants permissions or turns Node into a sandbox.

2. Host-Rendered UI (Zero Plugin Code in Host Renderer)

Netcatty never loads plugin scripts, <iframe> embeds, or arbitrary HTML into the main application renderer:

  • Your plugin builds its interface with ordinary React (@netcatty/plugin-sdk/host-react) or DOM (@netcatty/plugin-sdk/host-dom) inside its own isolated runtime.
  • Serialized tree mutations, styles, and package image references cross into the main process, where they pass strict schema, rate, node, and CSS validation before Netcatty renders the visible elements inside a closed Shadow DOM.
  • Plugins can embed high-performance, host-owned IDE primitives—PluginCodeEditor (Monaco), PluginDataGrid (virtualized editable grid), PluginMetricChart (60fps real-time SVG telemetry charts), PluginBiChart (10 interactive BI chart types with cross-filtering and SVG/2× PNG export), PluginSplitPane, PluginErCanvas, and PluginPopover—while remaining completely isolated.

3. Security & Permission Boundaries

Declared capabilities default to Allow when supported, and every installed plugin exposes host-owned Allow / Ask / Deny controls in Settings → Plugins:

  • Allow: Permits operations within the manifest's declared resource bounds without prompting every time (interactive target pickers such as Vault SSH host selection still confirm the target).
  • Ask: Prompts in a trusted Netcatty dialog before performing the operation or releasing content.
  • Deny: Rejects the capability before any side effect or existence check.

Policies persist across restarts, disables, and same-source updates. Undeclared permissions, unknown RPC methods, and out-of-scope resources always fail closed.

  • Security principals: Unsigned packages bind grants to a hash of (pluginId, publisher, package SHA-256). Modifying package bytes never silently inherits previous grants.
  • Encrypted secrets: context.secrets encrypts values with OS-backed storage (safeStorage). Plugins can never read Netcatty Vault SSH passwords or private keys—Vault SSH tunnels (network.hostStream), bounded SSH commands (vault.hostExec), pooled SFTP (sftp.read/sftp.write), port-forwarding control (portForward.read/portForward.manage), and zero-credential host probes (vault.probeHost) are all mediated strictly by the main process.
  • Source isolation: Each install source (official registry, GitHub repository, third-party market, or local import) receives an opaque storage owner namespace. Cross-source updates are rejected unless you explicitly uninstall and clear that source's private data.

4. Rich Safe Host Capabilities for Browser Plugins

Ordinary browserOnly plugins can safely tap into Netcatty's core workspace and infrastructure primitives through permission-gated main-process brokers:

  • Vault & Server Operations: Durable host bindings (hb_*), zero-credential RDP/VNC/SSH reachability probes (vault.probeHost), bounded pooled SSH command execution (vault.execHostCommand), pooled SFTP (vault.sftp.*), Vault group listing, and non-secret host notes/tags updates.
  • Tunnels & Snippets: Inspect and manage port-forwarding rules (portForward.*) bound via durable host tokens, and read or save reusable ops scripts in the Snippets library (snippets.*).
  • Terminals & Workspace: List open sessions, read bounded terminal screens, send audited input (terminals.*), open local terminals, inspect or focus workspace tabs (workspace.*), and trigger native dialogs or confirmed https:// browser links (ui.confirm, ui.openExternalUrl).
  • AI & Models: Invoke host-configured AI models (ai.invoke) and host Agent sessions (ai.agent.use) without ever handling API keys.

See the full Safe Host Capabilities Catalog in the Plugin Development Guide.

Installing Plugins in Netcatty

Netcatty supports four transparent installation paths that all converge on the same serialized PluginManager, PackageStore, and manifest/archive validator:

  1. Official Marketplace — Fixed to https://plugins.netcatty.app/v1/snapshot.json, serving hash-bound catalogs, READMEs with up to 8 verified screenshots, icons, and Delivery v2 packages.
  2. Install from GitHub — Open Settings → Plugins → Browse → Install from GitHub and enter owner/repo. Netcatty fetches the single .ncpkg asset from the latest stable release, displays its manifest permissions and SHA-256, and installs it disabled.
  3. Local .ncpkg Import — Open Settings → Plugins → Browse → Import .ncpkg to install a validated local package archive.
  4. Third-Party Static Market Sources — Add any public HTTPS origin serving /v1/snapshot.json under the static distribution contract.

Fresh plugin installs always start disabled so you can review declared permissions before turning a plugin on. Netcatty checks for updates automatically when you open plugin views, but never silently installs code without your explicit click on Update.

Next Steps