> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tablepro.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Plugin Registry

> How registry plugins ship with each TablePro release, the v3 manifest, and how the app picks a release

Registry plugins ride the app's release train. One `v*` tag builds TablePro and every registry plugin, the plugin zips land on the app's GitHub release, and each plugin's version and build equal the app's. There are no plugin tags and no separate publish step. For what install and update look like to a user, see [Plugins](https://docs.tablepro.app/features/plugins.md); to build the plugin in the first place, [Plugin Development](https://docs.tablepro.app/development/plugin-development.md).

The app reads the manifest to install a driver when someone picks a database type with no plugin loaded, to install an export format from the Export dialog, and to update installed registry plugins.

## Getting a plugin into the registry

Contribute it to TablePro's repository, as a target in the `RegistryPlugins` aggregate of `apple/project.yml` and an entry in `.github/plugin-registry.json` that gives its display name. The next release publishes it: a beta tag publishes to the `beta` channel, a stable tag to `stable`. A fix to a plugin ships the same way, in the next beta or patch.

Bundled plugins ship inside the app and never appear in the manifest. The app never installs a registry copy over a bundled one.

## The manifest

`https://updates.tablepro.app/plugins/v3.json`, served by GitHub Pages from the `feeds` branch that the release workflow writes through `apple/scripts/release/registry.py`. The schema version is part of the path, so a later schema ships beside this one instead of replacing it. Within v3, changes only add fields.

```json theme={null}
{
  "schemaVersion": 3,
  "retainFromPluginKit": 39,
  "plugins": [
    {
      "id": "com.TablePro.OracleDriver",
      "name": "Oracle Driver",
      "databaseTypeIds": ["Oracle"],
      "exportFormatIds": [],
      "releases": [
        {
          "version": "0.82.0",
          "build": 820099,
          "channel": "stable",
          "pluginKit": 39,
          "minimumSystemVersion": "13.0",
          "url": "https://github.com/TableProApp/TablePro/releases/download/v0.82.0/OracleDriver-0.82.0.zip",
          "sha256": "<sha256>"
        }
      ]
    }
  ]
}
```

Plugins are sorted by `id`, and each plugin's releases by `build`, highest first. The app refuses a document whose `schemaVersion` is not 3 and keeps the copy it already has.

| Plugin field | Type | Description |
| - | - | - |
| `id` | string | Bundle identifier |
| `name` | string | Display name, from `.github/plugin-registry.json` |
| `databaseTypeIds` | \[string] | The bundle's `TableProProvidesDatabaseTypeIds`. Picking one of these types installs the plugin |
| `exportFormatIds` | \[string] | The bundle's `TableProProvidesExportFormatIds`. The Export dialog offers to install each of these formats |
| `releases` | \[object] | Published builds |

`name`, `databaseTypeIds` and `exportFormatIds` come from the plugin's highest build, so an older release never rewrites them.

| Release field | Type | Description |
| - | - | - |
| `version` | string | The app version that built it, such as `0.82.0` or `0.83.0-beta.1` |
| `build` | integer | The app's `CFBundleVersion` |
| `channel` | string | `stable` or `beta` |
| `pluginKit` | integer | The bundle's `TableProPluginKitVersion` |
| `minimumSystemVersion` | string | The bundle's `LSMinimumSystemVersion` |
| `url` | string | The zip on the app's GitHub release. Must be `https` |
| `sha256` | string | SHA-256 hex of the zip, checked after the download |

## How the app picks a release

**1. Channel**

An app whose version carries `-beta.N`, and a local build, take `stable` and `beta` releases. A stable app takes `stable` only. A channel the app does not know is skipped, and the rest of the manifest still loads.

**2. macOS**

Releases whose `minimumSystemVersion` is above the running macOS are skipped.

**3. PluginKit**

`pluginKit` has to fall between `TABLEPRO_PLUGINKIT_MINIMUM_VERSION` and `TABLEPRO_PLUGINKIT_VERSION` in `apple/Configs/PluginKit.xcconfig`.

**4. Build**

The highest `build` left wins.

When nothing is left, the install fails with **This plugin needs a newer version of TablePro. Update TablePro, then install it again.** if a release with a newer PluginKit exists, and with **No build of this plugin works with this version of TablePro.** otherwise.

The zip must match `sha256`, and the bundle inside must carry TablePro's Team ID in its code signature.

## Retention

`registry.py` keeps the two highest builds for each combination of channel, `pluginKit` and `minimumSystemVersion`. A beta goes once a stable with the same combination has a higher build, and a release whose `pluginKit` is below `retainFromPluginKit` goes too. A release that retention would drop on arrival is logged and not added.

`retainFromPluginKit` is the PluginKit version of the oldest app version that still runs on at least 1% of the Macs seen in the last 30 days. It rises through a normal pull request, and the manifest keeps the higher of its current value and the one in the tag, so a patch on an older line never lowers it.

Withdrawing a version removes its releases. The build retention kept before it comes back into selection.

## PluginKit compatibility

A plugin loads when its `TableProPluginKitVersion` falls inside the app's range. An additive change raises `TABLEPRO_PLUGINKIT_VERSION`; a breaking change raises `TABLEPRO_PLUGINKIT_MINIMUM_VERSION` with it. Every release rebuilds every registry plugin against the PluginKit it ships, so neither needs a separate re-release. An installed driver that predates a breaking bump is repaired in the background. See [Updates](https://docs.tablepro.app/features/plugins.md#updates).

## Caching

GitHub Pages serves the manifest with `Cache-Control: max-age=600`. The app keeps the response in its HTTP cache on disk and decodes it at launch, so the catalog is there before any request. At launch and when **Settings > Extensions** opens, the cached response answers while it is fresh. Before an install reports a plugin missing, and when the app repairs an outdated plugin, it revalidates with the server. A new release reaches the app within about ten minutes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.