Block Catalog (Hub)
Browse and inspect public Polycrate blocks via the Public Hub API: polycrate hub list, polycrate hub inspect, and integrating blocks in workspace.poly.
Block Catalog (Hub)
With the Polycrate Block Catalog, you can browse and inspect publicly published template blocks directly from the CLI — without logging in or needing an API key. The CLI queries the Public Hub API (GET https://app.ayedo.cloud/api/v1/hub/public/blocks/).
How the Catalog and OCI Registry Work Together
| Component | Role |
|---|---|
Public Hub API (polycrate hub) |
Searchable catalog: browse names, versions, block.poly, README.md, CHANGELOG.poly, and examples.poly |
OCI Registry (cargo.ayedo.cloud or similar) |
Stores the packaged block artifacts and serves polycrate block pull |
The catalog itself does not host images — after selecting a block, pull it directly from the associated OCI registry using polycrate block pull.
Browsing Blocks (polycrate hub list)
Without flags, polycrate hub list opens an interactive terminal UI (TUI) for filtering and selecting blocks:
# Interactive search in the terminal
polycrate hub list
# Filter by name
polycrate hub list --filter postgres
# Filter by block kind (e.g., k8sapp)
polycrate hub list --kind k8sapp
# Filter by organization prefix
polycrate hub list --project ayedo
# Plaintext table without TUI (ideal for scripts and CI)
polycrate hub list --filter k8s --no-pager --limit 50
TUI Navigation
| Key | Action |
|---|---|
↑ / ↓ or j / k |
Navigate through the list |
| Typing | Live filter on block names |
Enter |
Select block (view versions, block.poly, README, copy name) |
q or Esc |
Quit |
Inspecting Blocks (polycrate hub inspect)
Use polycrate hub inspect to read metadata, documentation, changelogs, and ready-to-use configuration examples directly in your terminal:
# Show overview and available versions of a block
polycrate hub inspect ayedo/k8s/cloudnative-pg
# Show block.poly for a specific version
polycrate hub inspect ayedo/k8s/cloudnative-pg:<version>
# Show README.md for a specific version
polycrate hub inspect ayedo/k8s/cloudnative-pg:<version> --readme --no-pager
# Show CHANGELOG.poly for a specific version
polycrate hub inspect ayedo/k8s/cloudnative-pg:<version> --changelog --no-pager
# Show examples.poly for a specific version
polycrate hub inspect ayedo/k8s/cloudnative-pg:<version> --examples --no-pager
Using a Block in a Workspace
1. Pull the Block from the Registry
polycrate block pull cargo.ayedo.cloud/ayedo/k8s/cloudnative-pg:<version>
2. Instantiate in workspace.poly
Always specify the full registry path and an explicit SemVer version in from::
# workspace.poly
name: acme-production-1
organization: acme
blocks:
- name: postgres
from: cargo.ayedo.cloud/ayedo/k8s/cloudnative-pg:<version>
config:
namespace: databases
3. Execute
# Optionally auto-pull missing blocks
polycrate run postgres install --blocks-auto-pull
Sharing Custom or Internal Blocks
For internal or air-gapped environments, distribute your own blocks via an internal OCI registry (such as Harbor or GitLab Container Registry) and configure Registry Proxying if needed.
See Also
- Registry — OCI pull, push, authentication, and air-gap proxy
- Blocks — Build custom blocks with
block initandexamples.poly - Dependencies — Singleton rule and version pinning