backplane

module
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT

README


A control plane for your services — typed configuration, service discovery, audit, telemetry and one operator console for the installation.


CI Release Release build Go TypeScript Container License

Documentation · Quickstart · Deployment · Go SDK · Frontend SDK · API reference · Releases


Backplane connects services that use its Go SDK and gives operators a live view of their instances and configuration. Each service owns its console API and UI module. The authenticated console relay forwards calls to that API; it does not route requests between application services or execute business workflows. It does not deploy services or replace your orchestrator.

Quickstart

Requirements: Go 1.27, Node.js 24, Yarn 4 (corepack enable) and Docker Compose. Gopherex frontend dependencies come from GitHub Packages; configure a token with package read access in your user package-manager configuration.

git clone https://github.com/backplane-labs/backplane.git
cd backplane
make configure
make dev

Open http://127.0.0.1:8081/backplane/ and sign in with the local operator token dev-admin-token-change-me. The installation includes backplane, hello and formatter. Infrastructure, including Temporal, runs in containers.

For the console with only PostgreSQL and Consul:

make dev-minimal

Open http://127.0.0.1:8081/backplane/. NATS, Temporal and observability capabilities stay disabled until their endpoints are configured.

The Compose defaults are for local development. For shared deployments, set your own credentials and secrets and expose the console through HTTPS. See development and deployment.

What it gives you

Capability What operators and module authors get
Service catalog Live instances, readiness, versions, routes and service-owned UI pages
Configuration Schema forms, validation, defaults, secret masking and live overrides
Console modules A service’s UI calls its internal console API through the authenticated relay
Audit Durable PostgreSQL records and API queries; optional delivery as OTel logs
Observability OTLP admission/proxy and Victoria queries for metrics, logs, traces and errors
Infrastructure Component availability in the console, including disabled and failed dependencies
Frontend kit React, shared light/dark tokens, themed shadcn primitives and Grafana adaptations

Use it in a service

go get github.com/backplane-labs/backplane

The Go SDK manages identity, manifests, listeners, probes, configuration and lifecycle. Applications own their RPCs, event handling and workflows. A service can run without the platform; deployments opt into Consul registration, NATS, Temporal and OTel. Start with the hello example, its formatter counterpart, and the example guide.

Module authors develop and serve their UI locally with yarn dev or a container. They do not need to start the platform. The platform embeds the module at deployment time through the shared routing and SDK contract. See the author template, package contract and UI kit.

Install a release

Tagged releases publish Linux amd64 and arm64 images to ghcr.io/backplane-labs/backplane, plus archives containing the server and the ready console. The release page carries checksums, the image digest and all 13 frontend package tarballs. Frontend packages publish to GitHub Packages.

docker pull ghcr.io/backplane-labs/backplane:0.1.1

The image runs as a non-root user. Supply PostgreSQL, Consul and an operator token through deployment configuration; optional infrastructure is enabled by its configured endpoints. See release packaging and configuration. The publishing workflow runs on vX.Y.Z tags; a manual run rehearses builds without publishing.

Layout

Path Purpose
pkg/backplane Go service SDK and driver interfaces
cmd/backplane Platform server
backplanepb Protobuf contracts and generated Go API
internal Catalog, console, configuration, audit and telemetry
web/packages Coordinated TypeScript API, SDK and UI packages
web/apps/console Production console host
web/apps/catalog Storybook component catalog
web/tests/fixtures/embedding Isolated module compatibility host
web/build Shared internal library build settings
examples Hello and formatter services with real contracts
deployments Container builds, deployment and OTel configuration
docs Canonical API, frontend and development references
website/docs English architecture, usage and deployment handbook

Develop

make help          # available targets
make gen           # generated Go/TS APIs and store code
make dev           # complete local installation
make dev-ui        # component catalog fixture
make dev-module    # module template without the platform
make test          # Go tests
make check         # explicit full verification
make release       # create and push a tag; no local builds or tests

Ordinary CI selects checks from changed paths. Full stack verification is an explicit manual run. See verification.

License

MIT. UI integrations retain their upstream notices in the packages.

Directories

Path Synopsis
backplanepb
v1
cmd
backplane command
backplane is the platform server: a service on its own SDK.
backplane is the platform server: a service on its own SDK.
examples
formatter/cmd/formatter command
formatter is hello's independently compiled companion service.
formatter is hello's independently compiled companion service.
formatter/internal/formatter
Package formatter demonstrates a standalone HTTP handler with live configuration.
Package formatter demonstrates a standalone HTTP handler with live configuration.
hello/cmd/hello command
hello demonstrates listeners, service discovery, live configuration and a service-owned console module.
hello demonstrates listeners, service discovery, live configuration and a service-owned console module.
hello/internal/admin
Package admin is hello's internal API, for its console plugin only: gRPC on the platform port behind the internal secret.
Package admin is hello's internal API, for its console plugin only: gRPC on the platform port behind the internal secret.
hello/internal/greeter
Package greeter is the service's domain component: it serves HelloService over every public protocol with one implementation.
Package greeter is the service's domain component: it serves HelloService over every public protocol with one implementation.
hello/internal/hellotest
Package hellotest builds hello's components under a backplanetest harness, as NewState wires them, for the component tests.
Package hellotest builds hello's components under a backplanetest harness, as NewState wires them, for the component tests.
hello/internal/legacy
Package legacy is a listener hello serves itself, outside the SDK's public port: the service announces it with a declarative route (svc.API(api.HTTP(...))) so its API appears in the catalog.
Package legacy is a listener hello serves itself, outside the SDK's public port: the service announces it with a declarative route (svc.API(api.HTTP(...))) so its API appears in the catalog.
hello/internal/store
Package store stands in for an infra package (pkg/backplane/infra/postgres, infra/valkey): a config section plus a deps.Provider built from it.
Package store stands in for an infra package (pkg/backplane/infra/postgres, infra/valkey): a config section plus a deps.Provider built from it.
hello/internal/web
Package web holds hello's HTTP-facing pieces: the /hello/ handler, a tiny GraphQL endpoint, the middleware and the gRPC interceptors its routes are declared with.
Package web holds hello's HTTP-facing pieces: the /hello/ handler, a tiny GraphQL endpoint, the middleware and the gRPC interceptors its routes are declared with.
internal
apperrors
Package apperrors keeps application errors durably: every exception record the deployment's Collector forwards to backplane's audit/errors listener is stored whole — the exception, the record's attributes, its resource and the browser SDK's envelope (state and history) — grouped by fingerprint, bounded by burst limits and a retention, and served to the console as ErrorService.
Package apperrors keeps application errors durably: every exception record the deployment's Collector forwards to backplane's audit/errors listener is stored whole — the exception, the record's attributes, its resource and the browser SDK's envelope (state and history) — grouped by fingerprint, bounded by burst limits and a retention, and served to the console as ErrorService.
apperrors/upstream
Package upstream forwards the exception records an installation accepted to a configured OTLP/HTTP logs endpoint: typically a service of the installation, reached over the mesh's mutual TLS, that passes them on to the vendor (where errors group across installations by tenant.id).
Package upstream forwards the exception records an installation accepted to a configured OTLP/HTTP logs endpoint: typically a service of the installation, reached over the mesh's mutual TLS, that passes them on to the vendor (where errors group across installations by tenant.id).
audit
Package audit exposes durable control history and optionally exports its outbox over OTLP.
Package audit exposes durable control history and optionally exports its outbox over OTLP.
config
Package config is backplane's side of Live configuration (§5.2, §5.3): overrides of the Live fields of a service kept as revisions in PostgreSQL — the source of truth — and delivered to Consul KV config/<service>/, which is only the channel the SDK reads.
Package config is backplane's side of Live configuration (§5.2, §5.3): overrides of the Live fields of a service kept as revisions in PostgreSQL — the source of truth — and delivered to Consul KV config/<service>/, which is only the channel the SDK reads.
console
Package console is backplane's console server (§11): the HTTP the shell talks to directly or through a deployment-owned reverse proxy.
Package console is backplane's console server (§11): the HTTP the shell talks to directly or through a deployment-owned reverse proxy.
errors/envelope
Package envelope checks the browser SDK's error envelope (app-debug v1): the JSON body of the log record @backplane-labs/backplane-errors writes.
Package envelope checks the browser SDK's error envelope (app-debug v1): the JSON body of the log record @backplane-labs/backplane-errors writes.
obs
Package obs provides bounded, read-only queries of independent Victoria stores.
Package obs provides bounded, read-only queries of independent Victoria stores.
obs/logsql
Package logsql builds VictoriaLogs LogsQL queries.
Package logsql builds VictoriaLogs LogsQL queries.
otlp
Package otlp admits public OTLP/HTTP into a deployment-owned Collector.
Package otlp admits public OTLP/HTTP into a deployment-owned Collector.
otlprecord
Package otlprecord reads OTLP log records as backplane stores them: attributes as JSON, bodies as text, times, bounded text.
Package otlprecord reads OTLP log records as backplane stores them: attributes as JSON, bodies as text, times, bounded text.
platform
Package platform exposes deployment capabilities and bounded, cached probes.
Package platform exposes deployment capabilities and bounded, cached probes.
registry
Package registry is backplane's view of the installation, built from Consul: the catalog (live instances and their health), the manifests the SDK writes per version, and the instance states under their sessions.
Package registry is backplane's view of the installation, built from Consul: the catalog (live instances and their health), the manifests the SDK writes per version, and the instance states under their sessions.
server
Package server assembles the backplane server: its configuration and the State the SDK builds from it.
Package server assembles the backplane server: its configuration and the State the SDK builds from it.
shuffle
Package shuffle randomizes the order of call targets, so concurrent callers spread over them instead of all trying the first.
Package shuffle randomizes the order of call targets, so concurrent callers spread over them instead of all trying the first.
store
Package store is backplane's PostgreSQL: schema `backplane` (§12.1), migrations applied at start, typed queries generated by sqld.
Package store is backplane's PostgreSQL: schema `backplane` (§12.1), migrations applied at start, typed queries generated by sqld.
testhttp
Package testhttp gives tests HTTP clients of their own.
Package testhttp gives tests HTTP clients of their own.
pkg
backplane
Package backplane is the Go SDK.
Package backplane is the Go SDK.
backplane/api
Package api configures listeners and middleware served by the SDK.
Package api configures listeners and middleware served by the SDK.
backplane/backplanetest
Package backplanetest starts and stops a service's component tree without listeners or Consul.
Package backplanetest starts and stops a service's component tree without listeners or Consul.
backplane/build
Package build carries what the deployment stamps into the binary at link time.
Package build carries what the deployment stamps into the binary at link time.
backplane/config
Package config loads a service's configuration: one struct, schema from the Go type (schemapb), layers merged by xconf:
Package config loads a service's configuration: one struct, schema from the Go type (schemapb), layers merged by xconf:
backplane/deps
Package deps is how a service is composed: a tree of components, dependencies and singletons built explicitly by the author's constructor.
Package deps is how a service is composed: a tree of components, dependencies and singletons built explicitly by the author's constructor.
backplane/drivers/consul
Package consul installs optional discovery and live configuration.
Package consul installs optional discovery and live configuration.
backplane/infra/nats
Package nats is a NATS connection as a dependency: a configuration section, a connection that never gives up (reconnecting with jitter, no buffering while disconnected, transitions logged), a status probe.
Package nats is a NATS connection as a dependency: a configuration section, a connection that never gives up (reconnecting with jitter, no buffering while disconnected, transitions logged), a status probe.
backplane/infra/nats/natstest
Package natstest runs real NATS servers with JetStream inside the test's process, for tests of what uses NATS: no container, random ports, the stores in the test's temporary directory.
Package natstest runs real NATS servers with JetStream inside the test's process, for tests of what uses NATS: no container, random ports, the stores in the test's temporary directory.
backplane/infra/postgres
Package postgres is a PostgreSQL connection as a dependency: a configuration section, a pgx pool traced and measured through the service's OpenTelemetry providers, a query log, pgtx transactions, an optional schema and migrations applied at start, a ping probe.
Package postgres is a PostgreSQL connection as a dependency: a configuration section, a pgx pool traced and measured through the service's OpenTelemetry providers, a query log, pgtx transactions, an optional schema and migrations applied at start, a ping probe.
backplane/infra/temporal
Package temporal is a Temporal client as a dependency: a configuration section, a client traced and measured through the service's OpenTelemetry providers and logging through its logger, a health probe.
Package temporal is a Temporal client as a dependency: a configuration section, a client traced and measured through the service's OpenTelemetry providers and logging through its logger, a health probe.
backplane/infra/temporal/temporaltest
Package temporaltest locates a real Temporal test server.
Package temporaltest locates a real Temporal test server.
backplane/infra/valkey
Package valkey is a Valkey (Redis protocol) connection as a dependency: a configuration section, a client instrumented with the service's OpenTelemetry providers (command spans only under an operation), a PING probe and a close.
Package valkey is a Valkey (Redis protocol) connection as a dependency: a configuration section, a client instrumented with the service's OpenTelemetry providers (command spans only under an operation), a PING probe and a close.
backplane/internal/apifiles
Package apifiles snapshots API files for content-addressed delivery.
Package apifiles snapshots API files for content-addressed delivery.
backplane/internal/backoff
Package backoff is the SDK's retry policy as a value: bounds the author can set, run by github.com/cenkalti/backoff (exponential, jittered, so instances recovering from one outage do not retry in lockstep).
Package backoff is the SDK's retry policy as a value: bounds the author can set, run by github.com/cenkalti/backoff (exponential, jittered, so instances recovering from one outage do not retry in lockstep).
backplane/internal/configrt
Package configrt is what the SDK core needs from a live configuration and authors do not: the effective values for instance state, schema walks for the manifest and provenance.
Package configrt is what the SDK core needs from a live configuration and authors do not: the effective values for instance state, schema walks for the manifest and provenance.
backplane/internal/consul
Package consul keeps a service present in Consul: manifest per version, instance state under a TTL session (it disappears with the instance) and the catalog registration.
Package consul keeps a service present in Consul: manifest per version, instance state under a TTL session (it disappears with the instance) and the catalog registration.
backplane/internal/errtext
Package errtext renders errors for telemetry: what an error's text may carry that must not leave the service is cut, the error itself is left as it is (errors.Is/As keep working).
Package errtext renders errors for telemetry: what an error's text may carry that must not leave the service is cut, the error itself is left as it is (errors.Is/As keep working).
backplane/internal/exception
Package exception writes errors and panics as OpenTelemetry exception log records: exception.type, exception.message, exception.stacktrace and event.name=exception.
Package exception writes errors and panics as OpenTelemetry exception log records: exception.type, exception.message, exception.stacktrace and event.name=exception.
backplane/internal/gate
Package gate admits internal API calls only while the author's tree is up: before it started they get Unavailable, and stopping waits for the calls in flight before the tree (and its dependencies) stops.
Package gate admits internal API calls only while the author's tree is up: before it started they get Unavailable, and stopping waits for the calls in flight before the tree (and its dependencies) stops.
backplane/internal/guard
Package guard protects the platform port with the installation's internal secret: the console relay presents it, the SDK checks it.
Package guard protects the platform port with the installation's internal secret: the console relay presents it, the SDK checks it.
backplane/internal/health
Package health is the single source of a service's health: probes are registered by kind, their composite status is cached in xprobe states, and grpc.health.v1, the HTTP probe endpoints and the Consul check all read the same states.
Package health is the single source of a service's health: probes are registered by kind, their composite status is cached in xprobe states, and grpc.health.v1, the HTTP probe endpoints and the Consul check all read the same states.
backplane/internal/link
Package link lets SDK packages reach what public types keep private: the node behind a deps.Scope.
Package link lets SDK packages reach what public types keep private: the node behind a deps.Scope.
backplane/internal/listener
Package listener serves gRPC and HTTP on one address through cmux.
Package listener serves gRPC and HTTP on one address through cmux.
backplane/internal/manifest
Package manifest collects a service's declarations into a backplanev1.Manifest.
Package manifest collects a service's declarations into a backplanev1.Manifest.
backplane/internal/metrics
Package metrics is the SDK's own instrumentation, on meter github.com/backplane-labs/backplane.
Package metrics is the SDK's own instrumentation, on meter github.com/backplane-labs/backplane.
backplane/internal/mtls
Package mtls is mutual TLS between services: a Source (the service's live certificate, the trusted roots and who may call it — the Consul driver's follows Consul's CA and intentions) turned into the TLS of a public port and of clients, and the caller of a request: its service, taken from the SPIFFE URI of the certificate it presented.
Package mtls is mutual TLS between services: a Source (the service's live certificate, the trusted roots and who may call it — the Consul driver's follows Consul's CA and intentions) turned into the TLS of a public port and of clients, and the caller of a request: its service, taken from the SPIFFE URI of the certificate it presented.
backplane/internal/node
Package node is the service's one lifecycle model: a tree of nodes, each with a name, a logger, an instrumentation scope, start and stop hooks, its own goroutines and an optional readiness probe.
Package node is the service's one lifecycle model: a tree of nodes, each with a name, a logger, an instrumentation scope, start and stop hooks, its own goroutines and an optional readiness probe.
backplane/internal/recovery
Package recovery turns a panic in a request handler into an error for that request instead of a crashed process: gRPC and ws-proto calls get codes.Internal, HTTP requests 500.
Package recovery turns a panic in a request handler into an error for that request instead of a crashed process: gRPC and ws-proto calls get codes.Internal, HTTP requests 500.
backplane/internal/routes
Package routes holds what route options configure, for the SDK core.
Package routes holds what route options configure, for the SDK core.
backplane/internal/telemetry
Package telemetry installs OpenTelemetry through xtrace's SDK bootstrap: resource from the build identity, exporters from the standard OTEL_* environment.
Package telemetry installs OpenTelemetry through xtrace's SDK bootstrap: resource from the build identity, exporters from the standard OTEL_* environment.
backplane/internal/testlog
Package testlog provides loggers for tests.
Package testlog provides loggers for tests.
backplane/meshdial
Package meshdial dials the gRPC channels of the mesh: a service's api.MTLS port, a platform port.
Package meshdial dials the gRPC channels of the mesh: a service's api.MTLS port, a platform port.
backplane/netguard
Package netguard keeps a service's requests to URLs it was handed — a webhook receiver, a push endpoint, a link to preview — off the installation's own network (SSRF).
Package netguard keeps a service's requests to URLs it was handed — a webhook receiver, a push endpoint, a link to preview — off the installation's own network (SSRF).
backplane/seal
Package seal encrypts what a service keeps and has to read back — a receiver's signing secret, a provider's token — so a copy of its database or of a backup holds ciphertext only.
Package seal encrypts what a service keeps and has to read back — a receiver's signing secret, a provider's token — so a copy of its database or of a backup holds ciphertext only.
backplane/tracehttp
Package tracehttp traces outbound HTTP requests without recording what a URL may hide: every request is a client span of the caller's trace whose attributes are the method, the server's host and port and the response status, never the path or the query (a device token, a webhook secret, a signed link).
Package tracehttp traces outbound HTTP requests without recording what a URL may hide: every request is a client span of the caller's trace whose attributes are the method, the server's host and port and the response status, never the path or the query (a device token, a webhook secret, a signed link).
backplane/wsproto
Package wsproto serves services over ws-proto (protobuf RPC over WebSocket) as a managed public api: gRPC services, with the same register function as Service.GRPC so one implementation serves both, or handlers generated for ws-proto itself.
Package wsproto serves services over ws-proto (protobuf RPC over WebSocket) as a managed public api: gRPC services, with the same register function as Service.GRPC so one implementation serves both, or handlers generated for ws-proto itself.

Jump to

Keyboard shortcuts

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