Documentation

Marketplace Submission & Publishing Guide

Package requirements, GitHub release contract, official catalog PR workflow, security review checklist, and static market sources

Once your plugin builds cleanly and passes netcatty-plugin validate, you can distribute it to Netcatty users through three supported channels:

  1. Install from GitHub — Publish a .ncpkg asset on a public GitHub Release (immediate, self-serve).
  2. Official Marketplace / Curated Catalog — Open a Pull Request to list your plugin in the official curated catalog and static distribution (https://plugins.netcatty.app/v1/snapshot.json).
  3. Self-Hosted Static Market Source — Publish your own HTTPS /v1/snapshot.json feed for teams or organizations.

Distribution Comparison

AspectInstall from GitHubOfficial Marketplace (plugins.netcatty.app)Self-Hosted Static Source
Setup timeImmediate after publishing a GitHub ReleaseRequires maintainer review & PR mergeImmediate on any static HTTPS host
Max .ncpkg size100 MiB archive (250 MiB uncompressed)16 MiB (Delivery v2 static mirror)16 MiB (Delivery v2)
User install flowPaste owner/repo in Install from GitHubBrowse directly in Official marketplaceAdd origin URL in Third-party marketplace
UpdatesRe-enter repository to review latest stable releaseAutomatic update checks on plugin views + explicit one-click UpdateAutomatic update checks on plugin views + explicit one-click Update
Maintainer badgeNoneVerified checkmark (✓) automatically computed by the host for official binaricat/* plugins from plugins.netcatty.appNone

Install from GitHub

Install from GitHub is the fastest way to share a community plugin. Users open Settings → Plugins → Browse → Install from GitHub and paste owner/repo, github.com/owner/repo, or https://github.com/owner/repo.

Release Contract

Netcatty enforces a strict, zero-code-execution release contract (it never clones source code or runs npm install / build scripts):

  1. Public GitHub repository — Private repositories and auth tokens are unsupported.
  2. Published stable release — Netcatty queries /repos/{owner}/{repo}/releases/latest. Draft-only and prerelease-only repositories fail closed.
  3. Non-empty tag — Must resolve cleanly to a commit SHA via /repos/{owner}/{repo}/commits/{tag}.
  4. Exactly one .ncpkg release asset — Filename must start with an ASCII alphanumeric character, contain only letters, digits, ., _, -, and be <= 200 characters. Multiple .ncpkg assets in a single release are rejected so Netcatty never guesses which package to install.
  5. Validated package archive — Produced by netcatty-plugin pack with netcatty.plugin.json at the root, within package limits (<= 100 MiB archive, <= 250 MiB uncompressed, <= 5,000 files, <= 50 MiB single file).
# 1. Build and validate locally
npm ci --ignore-scripts
netcatty-plugin build .
netcatty-plugin pack . --out dist/my-plugin-1.0.0.ncpkg
netcatty-plugin validate dist/my-plugin-1.0.0.ncpkg

# 2. Tag and publish a GitHub Release with the single .ncpkg asset
git tag v1.0.0
git push origin v1.0.0
gh release create v1.0.0 dist/my-plugin-1.0.0.ncpkg \
  --title "v1.0.0" \
  --notes "Initial release."

The manifest version is authoritative; the Git tag provides release context. Both the tag, resolved commit SHA, manifest permissions, and computed SHA-256 are shown to users before installation.


Submitting to the Official Marketplace

The official curated catalog is maintained in the dedicated registry repository binaricat/netcatty-plugins, which builds and publishes immutable static snapshots to https://plugins.netcatty.app/v1/snapshot.json.

Publishing a new plugin or releasing a new version does not require a PR to binaricat/Netcatty or an app update. Clients fetch the latest /v1/snapshot.json directly from plugins.netcatty.app.

Pre-Submission Checklist

Before opening a Pull Request in binaricat/netcatty-plugins, verify every requirement below:

  • Runtime Eligibility: Must be a browser-only plugin (main.browser) or a data-only theme pack (main.data: "theme"). Node utility entrypoints, native companions, and raw terminal interceptors are excluded from the public catalog.
  • Stable Identity: Unique reverse-domain id (e.g., com.yourorg.plugin-name), accurate publisher, author, name, and concise description.
  • Open-Source Provenance: Public GitHub repository, explicit SPDX license matching the packaged netcatty.plugin.json, an immutable release tag, and an exact 40-character Git commit SHA (never a floating branch name).
  • Complete Validated Manifest: Engine ranges (engines.netcatty, engines.api), required/optional permissions, bounded resources, features, and contributes must match the built package bytes verbatim.
  • Least-Privilege Permissions:
    • Keep optional capabilities in permissions.optional with clear reason strings.
    • Required resource-scoped permissions (network, filesystem.*) must declare non-empty concrete bounds (wildcard * is invalid on required resource-scoped permissions).
  • Brand Icon (metadata.brand-icon):
    • Static .png or .webp (128×128 or 256×256 recommended), <= 256 KiB, dimensions 1..512px.
    • Provide both light and dark variants when appropriate; no SVG or animated images for top-level brand icons.
  • README & Verified Screenshots:
    • Relative .md path from repository root, <= 256 KiB. Safe structural Markdown/GFM tables and theme-aware <picture> tags are supported; raw scripts and external remote image URLs are never fetched.
    • To display screenshots inside Netcatty's detail view, pin up to 8 repository-local readmeImages (static .png or .webp, <= 256 KiB each) with exact SHA-256 digests in distribution/sources.json. Snapshot builds verify each file, mirror it to same-origin /assets/<sha256>.<ext>, and rewrite the pinned paths inside the published README.
  • Delivery v2 Artifact Size: Release artifacts must use https://github.com/OWNER/REPO/releases/download/TAG/NAME.ncpkg, be <= 16 MiB (ZIP32 as produced by netcatty-plugin pack), and match the exact lowercase SHA-256 recorded in index.json. Never fabricate an artifact URL—source-only entries use distribution: "source-only" and omit artifact and tag.

Pull Request Process (binaricat/netcatty-plugins)

Open a PR against binaricat/netcatty-plugins that modifies one plugin entry and includes:

  1. Registry Ledger & Distribution Metadata:
    • Append the new version record to index.json and point current to the new version (never delete or modify previously published versions—the ledger is append-only; use withdrawal metadata if a version must be withdrawn).
    • Pin README.md, iconLight / iconDark, optional readmeImages (up to 8 .png/.webp files <= 256 KiB), and authorSubject in distribution/sources.json.
    • Regenerate and commit catalog.json with python scripts/validate.py --write.
  2. PR Description Details:
    • Concise changelog (for updates) or overview (for new submissions).
    • Permission diff: explicitly list every added, widened, or removed permission and why it is needed.
    • OS test matrix: which desktop platforms (macOS, Windows, Linux) were tested and with what Netcatty version.
    • Reproducible build & provenance steps: exact commands to reproduce the .ncpkg from the pinned tag and commit SHA.
  3. Local Automated Checks: Validate your package locally, then run the binaricat/netcatty-plugins registry validator before pushing:
# 1. Validate plugin directory and packed .ncpkg in your plugin repository
netcatty-plugin validate ./path/to/plugin
netcatty-plugin pack ./path/to/plugin --out /tmp/plugin.ncpkg
netcatty-plugin validate /tmp/plugin.ncpkg

# 2. Validate index.json, regenerate catalog.json, and run unit tests in binaricat/netcatty-plugins
python3 -m venv .venv && . .venv/bin/activate
python -m pip install -r requirements.txt
python scripts/validate.py --write
python -m unittest discover -s tests -v

Review, Maintenance & Trust Boundaries

  • Human review is mandatory: Automated CI validates schema, path safety, archive bounds, and append-only ledger integrity, while maintainers manually review source provenance and permission changes before merge.
  • What listing means: Listing in the official marketplace is a curated integrity assertion—not a safety certification, endorsement, or legal warranty. Authors remain responsible for maintaining their plugin, documenting data handling, and responding to security reports.
  • Official Maintainer Badge: The verified checkmark (✓) in Netcatty is host-computed strictly when a plugin comes from the built-in official source (https://plugins.netcatty.app), belongs to a binaricat/* repository, uses the com.binaricat.* or com.netcatty.* ID namespace, and declares binaricat or netcatty as publisher. Third-party listings, local imports, and README content cannot forge it.

Versioning, Updates & Source Ownership

  • Semantic Versioning: Bump version in netcatty.plugin.json for every release. Never retarget tags or replace .ncpkg bytes under an existing version tag.
  • Automatic Update Checks, Explicit Installation: Netcatty automatically checks for updates when you open Settings → Plugins, the Installed list, or a plugin detail view, but never silently downloads or swaps plugin code in the background. Fresh installs always install disabled until reviewed and enabled; explicit one-click Update from Settings → Plugins / Installed list preserves your enabled state after upgrading, while updating from the Marketplace detail view installs the new version stopped for review.
  • Single-source ownership: A plugin ID can belong to only one installed source at a time. Private settings, KV data, grants, secrets, and cloud sync sidecars are isolated per host-derived source owner. Switching a plugin from local import or GitHub to the official marketplace requires explicitly uninstalling and selecting clear this source's private data, grants and secrets.

Hosting a Third-Party Static Market Source

Teams and enterprises can publish an internal or community marketplace on any static HTTPS host (such as Cloudflare Pages, GitHub Pages, or S3 + CloudFront).

Protocol Requirements

  1. Serve /v1/snapshot.json at a public HTTPS origin (no credentials, query strings, custom ports, redirects, or private/reserved IPv4 addresses).
  2. Point /v1/snapshot.json (<= 16 KiB) to immutable, hash-bound documents under /snapshots/<delivery-sha256>/:
    • catalog.json (<= 2 MiB, up to 1,000 entries)
    • index.json (<= 2 MiB)
    • delivery.json (<= 2 MiB, schemaVersion: 2 for installable artifacts)
  3. Serve content-addressed assets on the same origin under /assets/:
    • Packages: /assets/<64-lowercase-hex-sha256>.ncpkg (<= 16 MiB)
    • READMEs: /assets/<sha256>.md (<= 256 KiB)
    • Brand icons, avatars & up to 8 pinned readmeImages: /assets/<sha256>.png or .webp (<= 256 KiB each)

Users add your origin in Settings → Plugins → Browse → Third-party marketplace → Add source. Every install re-fetches and validates the full snapshot before writing package bytes.