A contract between apps

One entry point.
Clear connections.

Traefik serves all Gope web apps on port 80. App containers do not publish their own host ports. PostgreSQL remains available to local tools at 127.0.0.1:5432.

http://localhost/                  → /apps/core/
http://localhost/apps/core/        → Core UI
http://localhost/apps/docs/        → Dokumentation
http://localhost/apps/pgadmin/     → pgAdmin
http://localhost/api/core/health   → Core Healthcheck
http://localhost/api/core/rpc      → Core JSON-RPC
http://localhost/api/docs/core     → Docs → Core RPC

gope.json for each app

{
  "appname": "docs",
  "icon": "mdi-text-box-outline",
  "category": "Documentation",
  "dashboard": false,
  "version": "0.2.0",
  "description": "Gope component library and framework documentation"
}

appname is the stable URL identifier. Astro derives its base path from it. Version and description are included in RPC responses. When adding or renaming an app, also update its Compose service, proxy routes and links; manifests do not provision containers automatically.

Shared server-side client

import { coreRpc } from '@gope/rpc';
import manifest from '../../gope.json';

const system = await coreRpc(manifest, 'system.describe');
const user = await coreRpc(manifest, 'auth.me', request.headers.get('cookie') ?? undefined);

Every Gope app uses the same client. Inside Docker, it calls Core directly at http://core:4321/apps/core/api/rpc . Outside Docker, /api/core/rpc is the public API path. A timeout limits waiting to three seconds. Documentation stays available if Core is down and shows the connection status.

Security and scope

CORE_RPC_TOKEN authenticates service-to-service connections and is never sent to the browser. The token does not grant user permissions. auth.me reads only the identity associated with the forwarded Core session; without a session it returns null. The current RPC contract is read-only: system information and the current identity.

The Docs API is a server-side intermediary for these two methods. It returns HTTP 503 if Core is unavailable and prevents caching personal responses. Login, logout and administration forms remain under /api/core/… with origin and permission checks.

Drag to reorder, or use Alt + Left or Right.

Navigation

HomeDocumentationAccessibilityQuickstart

↑↓ navigate↵ open