pk-runtime

module
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2026 License: Apache-2.0

README

pk-runtime

Small OSS runtime host contracts for PlatformKit.

pk-core defines module contracts. pk-runtime hosts them. This repository keeps the host layer inspectable: route registration, readiness, request context, and authorization gates are public contracts, while databases, queues, cloud SDKs, dependency-injection containers, browser automation, and product workflows stay outside the runtime core.

Current Surface

  • pkg/host: compose modules, expose /live and /ready, and serve runtime routes.
  • pkg/health: deterministic health check registry and readiness snapshots.
  • pkg/httpx: standard-library HTTP route registry with fail-closed authorization guards.
  • pkg/request: typed request context helpers for tenant and principal data.

Verify

make verify
make staticcheck

Directories

Path Synopsis
pkg
health
Package health provides deterministic runtime health snapshots.
Package health provides deterministic runtime health snapshots.
host
Package host composes modules into a small HTTP-capable runtime host.
Package host composes modules into a small HTTP-capable runtime host.
httpx
Package httpx provides small HTTP runtime contracts.
Package httpx provides small HTTP runtime contracts.
request
Package request provides typed request context helpers.
Package request provides typed request context helpers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL