Registries (registry.yml)
A registry is an index of plugins. The first-party registry (plat5dev/registry) and any third-party or private company registry use the exact same format, resolution rules, and CLI commands.
Registry index format (registry.yml)
Section titled “Registry index format (registry.yml)”A registry repo (or HTTPS URL) serves registry.yml at its root. Unknown keys are errors.
schema: 1name: plat5description: Official Plat5 plugin registry
entries: - id: auth0 type: idp description: Auth0 OIDC / OAuth 2.0 tags: [oidc, saas] versions: - version: 1.0.0 cli: ">=0.20.0" path: idp/auth0
- id: go-fiber-service type: service description: Bare Go + Fiber domain service mounted at /<name> (use --as <name>) tags: [default, go, fiber, starter] versions: - version: 1.0.0 cli: ">=0.20.0" source: plat5dev/templates//services/go-fiber-service@master
- id: tasks-saas type: example description: Complete B2B SaaS tasks & profile demo with Go Fiber API and Solid consoles tags: [default, saas, go, solid] versions: - version: 1.0.0 cli: ">=0.20.0" source: plat5dev/templates//examples/tasks-saas@master
- id: stripe-billing type: service description: Stripe subscriptions, checkout, and webhook billing slice tags: [billing, stripe, ddd] versions: - version: 1.0.0 cli: ">=0.20.0" path: service/stripe-billing
- id: cerbos type: authorizer description: Cerbos ABAC/RBAC policy engine (OpenID AuthZEN 1.0) tags: [authzen, abac, rbac] versions: - version: 1.0.0 cli: ">=0.20.0" path: authorizer/cerbosFields
Section titled “Fields”| Field | Required | Rule |
|---|---|---|
schema |
yes | Must be 1. |
name |
yes | Default alias for the registry ([a-z][a-z0-9-]*). |
description |
no | Human-readable description. |
entries |
yes | List of plugin entries. id must be unique within a registry. |
Entry fields
Section titled “Entry fields”| Field | Required | Rule |
|---|---|---|
id |
yes | [a-z][a-z0-9-]*, max 64 chars. |
type |
yes | Must match the target plugin’s plat5.plugin.yml type. |
description |
yes | Shown in the wizard and plat5 registry search. |
tags |
no | Search/filter keywords for the wizard. |
deprecated |
no | Optional deprecation message; hidden from default wizard lists unless selected explicitly. |
versions |
yes | Non-empty list of released versions, ordered newest-first. |
Version fields
Section titled “Version fields”| Field | Required | Rule |
|---|---|---|
version |
yes | Semver (X.Y.Z). |
cli |
no | CLI compatibility constraint (">=0.20.0", or range ">=0.20.0 <1.0.0"). |
path |
one of path / source |
Subdirectory inside this registry repository (e.g. idp/auth0). |
source |
one of path / source |
External plugin location: owner/repo@ref, owner/repo//subdir@ref, or https://…/archive.tar.gz. |
sha256 |
no | Optional tarball checksum verified before extraction. |
Version matching
Section titled “Version matching”When resolving an entry without an explicit @version, the CLI walks versions in semver descending order and selects the first version whose cli: constraint matches the running CLI (dev builds match all cli: floors, matching cliversion.go).
- If an entry exists in the registry but no version matches the running CLI, the wizard shows it as unavailable with
(requires plat5 >=X.Y.Z)and explicit flag selection returns an upgrade hint rather than failing on an unknown manifest key. - Pinning an exact version (
--idp [email protected]) bypasses auto-selection and checks itscli:constraint directly.
Plugin reference syntax
Section titled “Plugin reference syntax”Every slot flag (--service, --idp, --authorizer, --operator-idp, --operator-authorizer, --customer-console, --operator-console, --observability, --ci, --deploy), --example, and plat5 add <ref> accept the same reference forms:
| Form | Example | Resolution |
|---|---|---|
| Bare ID | stripe-billing |
Default registry first, then registered third-party registries. Errors if ambiguous across two third-party registries. |
| Registry-qualified | acme/okta-internal |
Looked up only in the acme registry. |
| Version-pinned | [email protected] or acme/[email protected] |
Exact version from the registry. |
| GitHub repo (public) | owner/repo or owner/[email protected] |
Downloads https://github.com/owner/repo/archive/<ref>.tar.gz (unauthenticated). |
| GitHub monorepo subdir | owner/repo//service/[email protected] |
Downloads archive and extracts only service/stripe-billing as the plugin root. |
| Git repository (SSH / HTTPS) | [email protected]:acme/plugins.git//service/[email protected], ssh://..., https://.../*.git |
Clones via your local git binary (inheriting SSH agent, ~/.ssh/config, and Git credential helpers). |
| Archive URL | https://example.com/plugin.tar.gz |
Downloads and extracts .tar.gz. |
| Local directory | ./my-plugin or /abs/path/my-plugin |
Loads directly from disk (no network). |
| Disabled | none |
Explicitly turns a single-select slot off. |
For type: service plugins, append --as <name> (on plat5 add) or <ref>:<name> (on repeatable --service flags, e.g. --service go-fiber-service:orders) to override the default service_name.
Private repositories (GitLab, GitHub, Bitbucket, self-hosted)
Section titled “Private repositories (GitLab, GitHub, Bitbucket, self-hosted)”The CLI does not manage provider tokens (GITHUB_TOKEN, GITLAB_TOKEN, etc.). For any private registry or plugin repository, pass its Git URL (git@..., ssh://..., git+https://..., or https://.../*.git):
Plat5 delegates these directly to your local git binary with GIT_TERMINAL_PROMPT=0, automatically using your SSH agent, ~/.ssh/config, hardware keys, or configured Git credential helpers across GitHub, GitLab, Bitbucket, Gitea, and self-hosted Git servers. Git registries are cached as shallow clones under $XDG_CACHE_HOME/plat5/registries/<name>/repo and refreshed on plat5 registry update.
Local registry configuration & caching
Section titled “Local registry configuration & caching”Configured registries live in $XDG_CONFIG_HOME/plat5/registries.yml (default ~/.config/plat5/registries.yml):
registries: - name: official source: plat5dev/registry default: true - name: acme source: acme-corp/plat5-registry - name: local-dev source: /path/to/local/registry- Default registry: When
registries.ymldoes not exist or omitsofficial,plat5dev/registryis implicitly active as the default. - Caching: Fetched
registry.ymlindexes are cached under$XDG_CACHE_HOME/plat5/registries/<name>/and downloaded.tar.gzplugin archives are cached under$XDG_CACHE_HOME/plat5/archives/, both with a 15-minute TTL, HTTPETag/If-None-Matchrevalidation, and offline fallback. Runningplat5 registry updaterefreshes cached indexes and clears cached archives. - Offline fallback: If the network is unreachable, the CLI falls back to the cached index under
$XDG_CACHE_HOME/plat5/registries/<name>/(or use--sources/ a local directory registry). - Local contributor workflow: Passing
--sources <dir>(e.g.plat5 init my-app --sources ..) automatically resolves../registryas the default registry and../templatesfor any official template plugins present in<dir>, using the exact same code path as a local third-party registry.
CLI commands
Section titled “CLI commands”| Command | Behavior |
|---|---|
plat5 registry list |
List configured registries and their cached status |
plat5 registry add <name> <source> |
Register a GitHub repo (owner/repo[@ref]), URL, or local directory |
plat5 registry remove <name> |
Remove a registered third-party registry |
plat5 registry update [name] |
Force-refresh cached registry index(es) |
plat5 registry search [query] [--type <type>] |
Search plugins across all configured registries |
plat5 registry validate [dir] |
Offline validator for registry authors: checks registry.yml, every inline plat5.plugin.yml, [[ ]] template syntax, and sample assembly against plat5yml.Validate() |