Skip to content

Registry Schema

The registry is a JSON file stored at:

text
~/Library/Application Support/PortBay/registry.json

It is the source of truth for the GUI, CLI, generated Process Compose config, Caddy routes, and host reconciliation.

Project

FieldTypeRequiredNotes
idstringYesStable URL-safe identifier.
namestringYesHuman-readable label.
pathstringYesProject root path.
typestringYesnext, vite, php, static, node, or custom.
start_commandstringNoShell command run in path.
portnumberNoPrimary HTTP port.
extra_portsnumber[]NoAdditional owned ports.
hostnamestringYesFull local hostname.
httpsbooleanYesWhether Caddy terminates local TLS.
servicesstring[]NoShared services needed by the project.
envobjectNoEnvironment variables for the dev process.
readinessobjectNoHTTP, TCP, or process readiness policy.
auto_startbooleanNoStart when the daemon comes up.
tagsstring[]NoUser-defined filtering labels.
document_rootstringNoPHP document root relative to path.
php_versionstringNoPHP version label.

Readiness

json
{ "type": "http", "path": "/", "timeout_seconds": 75 }
json
{ "type": "tcp", "timeout_seconds": 75 }
json
{ "type": "process" }

Group

json
{
  "id": "commerce-stack",
  "name": "Commerce Stack",
  "projects": ["storefront", "api"]
}

Portable .portbay.json

The exported project file uses camelCase and is intended to be committed to an application repo.

FieldTypeNotes
versionnumberCurrent schema version is 1.
namestringProject name.
typestringProject type.
hostnamestringDesired local hostname.
portnumberOptional primary port.
phpVersionstringOptional PHP version.
httpsbooleanLocal TLS setting.
autoStartbooleanAuto-start setting.
startCommandstringOptional launch command.
documentRootstringOptional PHP document root.
envTemplateobjectNon-sensitive environment defaults.
secretsstring[]Secret names required at import time.
postInstallstring[]Setup commands offered by future import flows.
readinessobjectOptional readiness policy.
tagsstring[]Optional labels.

PortBay is pre-MVP software. Use the docs as an operating guide, not a stability guarantee.