backlot

package module
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: BSD-3-Clause Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Backlot

Backlot runs isolated development and test environments from a project's backlot.yaml: native processes, optional containers, private resources and HTTPS routes. Each Git worktree gets its own instance and allocated ports; published scenes also get a canonical origin.

Install Backlot

Install with Go 1.27.3 or newer. Backlot targets macOS ARM64, Ubuntu 24.04 amd64 and Debian 13.4 amd64; see the platform policy for runtime gates and Linux prerequisites:

go install github.com/octacian/backlot/cmd/backlot@latest
backlot version --json

If backlot is not found, add the directory reported by go env GOBIN to PATH when set; otherwise add bin under the first directory in go env GOPATH (default $HOME/go/bin). Save any PATH change in your shell profile. Git is needed for project worktrees; Make is needed only for the alternative source build.

Release installer, upgrades, manual archives and reproducible source builds. The shell installer requires a release with install-replace support.

Install agent skills

For shell coding agents, with Node >=22.20.0 and Git, run from your project:

npx skills add octacian/backlot --skill backlot-setup --skill backlot

This installs setup and daily-use guidance without a Backlot source checkout. See agent selection, global installation, updates and compatibility.

Run an existing configured project

Install the application's dependencies using its own instructions. From its checkout, discover the project-defined scenes before configuring tools or inputs:

backlot scene list --json
backlot scene describe dev --json

Replace dev with the project's persistent development scene. If it declares private inputs, run backlot project setup once in a terminal. Configure HTTPS or Docker below when the scene requires them, then:

backlot daemon start --json
backlot plan dev --json
backlot scene start dev --json

Start returns at readiness. Record result.instance.id; for published scenes, open result.instance.execution.origin. Closing the terminal leaves ordinary persistent starts running. Stop runtime while retaining development data with:

backlot scene stop dev --json

Repeat start to resume. After a daemon or machine restart, explicitly start the daemon and any required managed gateway again. For disposable tests, use backlot run test --json -- APPLICATION_TEST_ARGS; scene names and arguments come from the project. See the daily loop and failure recovery.

Enable local HTTPS

Install stock Caddy separately (brew install caddy with Homebrew). Put this machine configuration outside the checkout, in ~/Library/Application Support/backlot/config.yaml on macOS or ${XDG_CONFIG_HOME:-$HOME/.config}/backlot/config.yaml on Linux. Use your actual absolute command -v caddy path and free unprivileged ports:

version: backlot/v1
caddy:
  mode: managed
  executable: /absolute/path/to/caddy
  endpoint: http://127.0.0.1:2020
  https_port: 8443
backlot daemon start --json
backlot gateway start --json
/absolute/path/to/caddy trust --address 127.0.0.1:2020 --ca local
backlot scene start dev --json

Run stock caddy trust yourself against your owned gateway; it may request administrator authorization. Backlot never installs system/browser trust. Applications and some browsers need separate explicit public-root settings. If the daemon attempted TLS before trust installation, stop/start it and start the gateway again to refresh cached roots. The CA survives this restart. Follow HTTPS and application trust and Linux resolver/listener setup. The runnable macOS HTTPS example includes frontend/API/SSR code and tests. Native unpublished scenes need no gateway.

Enable containers

Install a supported local Docker engine and explicitly pull/build the project's images with Docker tooling. Backlot never pulls implicitly. Add the engine's actual Unix socket to your private machine configuration; this can coexist with caddy above:

version: backlot/v1
docker:
  endpoint: unix:///var/run/docker.sock

Docker Desktop may use another socket; inspect yours with docker context inspect --format '{{.Endpoints.docker.Host}}'. Then run the same plan/start commands. Try native Go tests with disposable MariaDB or shared MariaDB for separate worktree databases on one retained server. See containers and cleanup and container HTTPS for explicit bridge reachability and application trust.

Adopt Backlot in your project

Adapt your existing start, build, migration and test commands, then use the CLI reference, manifest reference and results/evidence guide. For a small native browser recipe, start with Playwright over loopback HTTP. For GitHub Actions, use the CI quickstart.

Native application work must stay within its supervised session; new sessions, privilege changes and unrelated supervisors are unsupported. See the platform limits. Contributor documentation.

License

Backlot is BSD 3-Clause licensed.

Documentation

Overview

Package backlot provides the attribution bundled with the Backlot executable.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteLicenses

func WriteLicenses(w io.Writer) error

WriteLicenses writes the full project license and generated dependency notices.

Types

This section is empty.

Directories

Path Synopsis
api
v1
Package v1 defines the shared JSON contract for Backlot API version 1.
Package v1 defines the shared JSON contract for Backlot API version 1.
cmd
backlot command
Command backlot exposes the CLI and daemon entry points; internal packages own runtime lifecycle and platform operations.
Command backlot exposes the CLI and daemon entry points; internal packages own runtime lifecycle and platform operations.
notices command
Command notices assembles the licenses of packages linked into the CLI and acceptance application, plus the Go standard library, from local module source.
Command notices assembles the licenses of packages linked into the CLI and acceptance application, plus the Go standard library, from local module source.
schema command
Command schema generates or checks committed editor schemas from Go contracts.
Command schema generates or checks committed editor schemas from Go contracts.
skills command
Command skills materializes independent skill bundles from canonical sources.
Command skills materializes independent skill bundles from canonical sources.
examples
container-https command
A mixed native/container HTTPS application with explicit application trust.
A mixed native/container HTTPS application with explicit application trust.
native-go-mariadb/cmd/ready command
Readiness runs natively with the service's resolved application environment.
Readiness runs natively with the service's resolved application environment.
release-acceptance command
The release fixture is application code, not a Backlot lifecycle wrapper.
The release fixture is application code, not a Backlot lifecycle wrapper.
internal
cli
Package cli adapts Backlot operations to human and machine-readable commands.
Package cli adapts Backlot operations to human and machine-readable commands.
client
Package client provides the typed v1 Unix-socket client shared by CLI adapters.
Package client provides the typed v1 Unix-socket client shared by CLI adapters.
compose
Package compose renders bounded declared string compositions without evaluation.
Package compose renders bounded declared string compositions without evaluation.
daemon
Package daemon owns private preparation snapshots, native/container execution, retained resource generations, leases and durable recovery.
Package daemon owns private preparation snapshots, native/container execution, retained resource generations, leases and durable recovery.
evidenceaudit
Package evidenceaudit rejects unsafe portable evidence, including nested archives.
Package evidenceaudit rejects unsafe portable evidence, including nested archives.
gateway
Package gateway mutates only children of an operator-installed Caddy subroute.
Package gateway mutates only children of an operator-installed Caddy subroute.
gateway/gatewaytest
Package gatewaytest owns opt-in Docker fixture resources by unique labels.
Package gatewaytest owns opt-in Docker fixture resources by unique labels.
localipc
Package localipc enforces the user-owned filesystem boundary for daemon transport.
Package localipc enforces the user-owned filesystem boundary for daemon transport.
manager
Package manager owns resource-specific allocation effects.
Package manager owns resource-specific allocation effects.
manifest
Package manifest decodes and validates the shared versioned project contracts.
Package manifest decodes and validates the shared versioned project contracts.
native
Package native supervises cooperative applications in an owned session and strict system helpers in a pinned group.
Package native supervises cooperative applications in an owned session and strict system helpers in a pinned group.
native/procidentity
Package procidentity acquires ephemeral kernel process identities.
Package procidentity acquires ephemeral kernel process identities.
plan
Package plan resolves offline scene plans without executing or provisioning work.
Package plan resolves offline scene plans without executing or provisioning work.
projectconfig
Package projectconfig owns offline project-private association and atomic publication.
Package projectconfig owns offline project-private association and atomic publication.
registration
Package registration resolves local administrative marker locations.
Package registration resolves local administrative marker locations.
schema
Package schema generates editor schemas from the shared versioned Go contracts.
Package schema generates editor schemas from the shared versioned Go contracts.
Package schemas supplies the exact generated editor schemas shipped with Backlot.
Package schemas supplies the exact generated editor schemas shipped with Backlot.

Jump to

Keyboard shortcuts

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