Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

docs(pieces): interactive checker for which piece versions a self-hosted release receives (#16213)

Code-a-Genie6fff184d8b92
diff --git a/docs/custom.css b/docs/custom.css
index 1826c656f85..347c94d38c7 100644
--- a/docs/custom.css
+++ b/docs/custom.css
@@ -167,3 +167,102 @@
.dark .pp .pp-rcard .pp-ic { color: #c9c8d2; }
.dark .pp .pp-reveal { background: #202026; }
.dark .pp .pp-fb-row { border-bottom-color: #2d2d34; }
+
+/* ==========================================================================
+ Piece version range chart for install/architecture/piece-syncing
+ All rules are scoped under .vr to avoid touching Mintlify's own styles.
+ ========================================================================== */
+.vr {
+ --vr-accent: #9675FF;
+ --vr-accent-fg: #ffffff;
+ --vr-marker: #171717;
+ --vr-fg: #171717;
+ --vr-muted: #737373;
+ --vr-border: #e5e5e5;
+ --vr-bg: #ffffff;
+
+ box-sizing: border-box;
+ border: 1px solid var(--vr-border);
+ border-radius: 12px;
+ background: var(--vr-bg);
+ padding: 20px 16px 16px;
+ margin: 16px 0 24px;
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
+ font-size: 14px;
+ line-height: 1.5;
+ color: var(--vr-fg);
+}
+.vr *, .vr *::before, .vr *::after { box-sizing: border-box; }
+
+.vr-intro { margin-bottom: 20px; font-size: 13px; color: var(--vr-muted); }
+
+.vr-row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; }
+.vr-lane { position: relative; margin: 0 24px 0 0; }
+
+.vr-head { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
+.vr-marker-label {
+ position: absolute; top: 0; transform: translateX(-50%);
+ font-size: 13px; font-weight: 600; white-space: nowrap;
+ transition: left 120ms ease;
+}
+
+.vr-labels, .vr-bars { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 16px; }
+.vr-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 30px; }
+.vr-name { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
+.vr-status { font-size: 12px; font-weight: 600; }
+.vr-status-on { color: var(--vr-accent); }
+.vr-status-off { color: var(--vr-muted); }
+
+.vr-track { position: relative; height: 30px; }
+.vr-bar {
+ position: absolute; top: 0; bottom: 0;
+ display: flex; align-items: center;
+ padding: 0 10px; border-radius: 6px;
+ font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums;
+ transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
+}
+.vr-bar-on { background: var(--vr-accent); color: var(--vr-accent-fg); border: 1px solid var(--vr-accent); }
+.vr-bar-off { background: transparent; color: var(--vr-fg); border: 1.5px dashed var(--vr-muted); }
+.vr-bar-short .vr-bar-text { position: absolute; right: calc(100% + 8px); color: var(--vr-fg); }
+.vr-marker {
+ position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; z-index: 1;
+ background: var(--vr-marker); pointer-events: none;
+ transition: left 120ms ease;
+}
+
+.vr-axis { position: relative; height: 28px; border-top: 1px solid var(--vr-muted); }
+.vr-tick {
+ position: absolute; top: 0; padding-top: 12px; transform: translateX(-50%);
+ font-size: 12px; color: var(--vr-muted); white-space: nowrap;
+}
+.vr-tick::before {
+ content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 6px; background: var(--vr-muted);
+}
+.vr-axis-caption { margin-top: 4px; text-align: right; font-size: 12px; color: var(--vr-muted); }
+
+.vr-control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-top: 16px; cursor: pointer; }
+.vr-control-label { font-weight: 600; }
+.vr-control-value { font-weight: 600; min-width: 56px; text-align: right; }
+.vr-slider { width: 100%; margin: 0; accent-color: var(--vr-accent); cursor: pointer; }
+
+@media (max-width: 520px) {
+ .vr-row { grid-template-columns: 112px 1fr; gap: 8px; }
+ .vr-label { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; height: 36px; line-height: 1.2; }
+ .vr-name { font-size: 12px; }
+ .vr-track { height: 36px; }
+ .vr-lane { margin-right: 16px; }
+ .vr-bar { font-size: 0; padding: 0; }
+ .vr-tick:nth-child(even) { display: none; }
+ .vr-control { grid-template-columns: 1fr auto; }
+ .vr-control-label { grid-column: 1 / -1; }
+}
+
+.dark .vr {
+ --vr-accent: #9675FF;
+ --vr-accent-fg: #ffffff;
+ --vr-marker: #e8e8ea;
+ --vr-fg: #e8e8ea;
+ --vr-muted: #9a9aa5;
+ --vr-border: #2d2d34;
+ --vr-bg: #1b1b20;
+}
diff --git a/docs/install/architecture/piece-syncing.mdx b/docs/install/architecture/piece-syncing.mdx
index 153092063f2..875c7dc6ec1 100644
--- a/docs/install/architecture/piece-syncing.mdx
+++ b/docs/install/architecture/piece-syncing.mdx
@@ -4,30 +4,13 @@ description: "How pieces are packaged, distributed, and pinned to flow versions"
icon: "puzzle-piece"
---
+import { PieceVersionChecker } from '/snippets/piece-version-checker.jsx';
+
Pieces are standard [npm packages](https://www.npmjs.com/search?q=%40activepieces%2Fpiece-). Two facts follow from that:
- **No server upgrade is needed for new pieces.** A sync job pulls fresh versions on its own.
- **Each step is pinned to an exact version.** Flows never auto-upgrade. Version bumps are explicit, through the builder.
-```mermaid
-flowchart LR
- REG["npm registry<br/>(@activepieces/piece-*)"]
- CAT["Local piece catalog"]
- STEP["Flow step<br/>pieceVersion: 0.5.3"]
- UI["Builder version dialog"]
-
- REG -- "hourly sync<br/>(OFFICIAL_AUTO)" --> CAT
- CAT -- "exact version on add" --> STEP
- UI -- "explicit upgrade" --> STEP
-
- classDef src fill:#eef,stroke:#88a
- classDef catalog fill:#efe,stroke:#7a7
- classDef flow fill:#fee,stroke:#a77
- class REG src
- class CAT catalog
- class STEP,UI flow
-```
-
## Packaging
| Type | Source | Installed by |
@@ -50,6 +33,17 @@ Custom and private pieces are never touched by the sync job.
Every piece declares a `minimumSupportedRelease` (and optional `maximumSupportedRelease`) in its definition: the range of Activepieces server releases it works on. The catalog filters pieces against the running server's release, so an out-of-range piece is never listed in the builder and never served from the registry.
+On every sync:
+
+1. Your instance sends its release to the registry.
+2. The registry returns only the piece versions that can work on that release.
+3. Your instance installs the new piece versions.
+4. Your instance discards the piece versions that the registry didn't return.
+
+The example below uses the Slack piece. Drag the slider to see which Slack versions an instance receives:
+
+<PieceVersionChecker />
+
<Warning>
**Self-hosted: upgrade to `0.82.0` or newer.** Every new piece now declares `minimumSupportedRelease ≥ 0.82.0`, the floor that came in with the latest piece-context version. Servers below `0.82.0` will not pick up any newly published pieces or bug fixes. Cloud is always on the latest release.
</Warning>
diff --git a/docs/snippets/piece-version-checker.jsx b/docs/snippets/piece-version-checker.jsx
new file mode 100644
index 00000000000..7615cf4acce
--- /dev/null
+++ b/docs/snippets/piece-version-checker.jsx
@@ -0,0 +1,93 @@
+export const PieceVersionChecker = () => {
+ const releases = ["0.50.0","0.50.1","0.50.2","0.50.3","0.50.4","0.50.5","0.50.6","0.50.7","0.50.8","0.50.9","0.50.10","0.50.11","0.50.12","0.51.0","0.52.0","0.52.1","0.52.2","0.52.3","0.52.4","0.52.5","0.53.0","0.53.1","0.54.0","0.55.0","0.56.0","0.57.0","0.57.1","0.58.0","0.59.0","0.59.1","0.60.0","0.60.1","0.60.2","0.61.0","0.62.0","0.63.0","0.63.1","0.64.0","0.64.1","0.64.2","0.65.0","0.66.0","0.66.1","0.66.2","0.66.3","0.66.4","0.66.5","0.66.6","0.66.7","0.67.0","0.67.1","0.67.2","0.67.3","0.67.4","0.67.5","0.67.6","0.68.0","0.68.1","0.68.2","0.68.3","0.69.0","0.70.0","0.70.1","0.70.2","0.70.3","0.70.4","0.70.5","0.70.6","0.70.7","0.70.8","0.71.0","0.71.1","0.71.2","0.71.3","0.71.4","0.72.0","0.72.1","0.72.2","0.72.3","0.72.4","0.73.0","0.74.0","0.74.1","0.74.2","0.74.3","0.74.4","0.75.0","0.76.0","0.76.1","0.76.2","0.77.0","0.77.1","0.77.2","0.77.3","0.77.4","0.77.5","0.77.6","0.77.7","0.77.8","0.78.0","0.78.1","0.78.2","0.79.0","0.79.1","0.79.2","0.79.3","0.79.4","0.80.0","0.80.1","0.81.0","0.81.1","0.81.2","0.81.3","0.81.4","0.82.0","0.82.1","0.82.2","0.82.3","0.83.0","0.83.1","0.84.0","0.85.0","0.85.2","0.85.3","0.85.4","0.85.5","0.86.0","0.86.1","0.86.2","0.86.3","0.87.0","0.87.1","0.87.2","0.87.3","0.88.0","0.88.1","0.88.2","0.88.3","0.88.4","0.89.0","0.90.0","0.90.1","0.90.2","0.91.0","0.91.1","0.91.2","0.91.3","0.91.4","0.92.0","0.92.1"];
+ const versions = [
+ { name: '0.0.1 – 0.9.5', min: '0.50.0' },
+ { name: '0.10.0 – 0.10.17', min: '0.66.7' },
+ { name: '0.10.18 – 0.13.0', min: '0.73.0' },
+ { name: '0.14.0 – 0.16.3', min: '0.79.0' },
+ { name: '0.16.4 – 0.17.4', min: '0.82.0' },
+ { name: '0.17.6 – 0.19.0', min: '0.87.0' },
+ { name: '0.20.0 – 0.21.0', min: '0.88.2' },
+ ];
+ const ticks = ['0.50.0', '0.60.0', '0.70.0', '0.80.0', '0.90.0'];
+ const lastIndex = releases.length - 1;
+
+ const [instanceIndex, setInstanceIndex] = useState(releases.indexOf('0.50.0'));
+
+ const toPercent = (release) => (releases.indexOf(release) / lastIndex) * 100;
+ const instancePercent = (instanceIndex / lastIndex) * 100;
+ const isSynced = (version) => releases.indexOf(version.min) <= instanceIndex;
+
+ return (
+ <div className="vr">
+ <div className="vr-intro">
+ An example with the Slack piece, from a snapshot of the piece registry. It explains how piece versions are matched to Activepieces releases.
+ </div>
+
+ <div className="vr-row">
+ <div className="vr-head">Slack versions</div>
+ <div className="vr-lane">
+ <span className="vr-marker-label" style={{ left: `${instancePercent}%` }}>instance version</span>
+ </div>
+ </div>
+
+ <div className="vr-row">
+ <div className="vr-labels">
+ {versions.map((version) => (
+ <div className="vr-label" key={version.name}>
+ <span className="vr-name">{version.name}</span>
+ <span className={isSynced(version) ? 'vr-status vr-status-on' : 'vr-status vr-status-off'}>
+ {isSynced(version) ? 'synced' : 'left out'}
+ </span>
+ </div>
+ ))}
+ </div>
+ <div className="vr-lane vr-bars">
+ <div className="vr-marker" style={{ left: `${instancePercent}%` }} />
+ {versions.map((version) => (
+ <div className="vr-track" key={version.name}>
+ <div
+ className={[
+ 'vr-bar',
+ isSynced(version) ? 'vr-bar-on' : 'vr-bar-off',
+ toPercent(version.min) > 75 ? 'vr-bar-short' : '',
+ ].join(' ')}
+ style={{ left: `${toPercent(version.min)}%`, width: `${100 - toPercent(version.min)}%` }}
+ >
+ <span className="vr-bar-text">{version.min}+</span>
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+
+ <div className="vr-row">
+ <div />
+ <div className="vr-lane">
+ <div className="vr-axis">
+ {ticks.map((tick) => (
+ <span className="vr-tick" key={tick} style={{ left: `${toPercent(tick)}%` }}>
+ {tick}
+ </span>
+ ))}
+ </div>
+ <div className="vr-axis-caption">Instance version →</div>
+ </div>
+ </div>
+
+ <label className="vr-control">
+ <span className="vr-control-label">Instance version</span>
+ <input
+ className="vr-slider"
+ type="range"
+ min={0}
+ max={lastIndex}
+ step={1}
+ value={instanceIndex}
+ onChange={(event) => setInstanceIndex(Number(event.target.value))}
+ />
+ <span className="vr-control-value">{releases[instanceIndex]}</span>
+ </label>
+ </div>
+ );
+};