local-preview
A local-first preview-deployment orchestrator: every commit of a registered
git repository becomes a servable preview at its own subdomain
(<sha>-<repo>.preview.localhost:8080), built once, deduplicated by
content, and served from a single binary.
local-preview resolves each commit into a (frontend artifact, backend
artifact) pair by content-addressing the relevant subtrees. Commits that
don't touch the frontend (or backend) reuse the existing artifact — and the
already-running backend process. Backend state follows git lineage: a new
backend version forks its data from the nearest deployed ancestor, so
previews feel continuous on a straight line of commits while divergent
branches can never corrupt each other.
Install
uv tool install local-preview
This installs the binary to ~/.local/bin/preview.
Make sure to have that on your PATH.
Run
preview serve
The server listens on :8080. Open http://localhost:8080/ for the
dashboard.
Or with Docker Compose:
docker compose up -d
📖 Documentation
Full documentation lives at https://jmelahman.github.io/local-preview/:
- Quickstart — register a repo, deploy a commit, open the preview.
- Configuration — flags and env vars.
- REST API — endpoints exposed by the running server.
- CLI —
serve,repo,deploy,install-hook.
Metadata
Release files for local-preview 0.26.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| local_preview-0.26.0-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| local_preview-0.26.0-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| local_preview-0.26.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| local_preview-0.26.0-py3-none-macosx_10_12_x86_64.whl | Python 3 | none | macOS 10.12+ x86-64 | Details |
| local_preview-0.26.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.2 MB
Release files / local_preview-0.26.0-py3-none-manylinux_2_17_x86_64.whl
| Download URL | local_preview-0.26.0-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 9.1 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
2eddd98c34234083ee4dfc4273b415fa2e1eadf3a5ebd37c82049d91e5cab745
|
|
BLAKE2b-256 checksum How to use checksums |
10524390f42791c299955230e8f50510e70adbfc07820c78dcfa47ef58c55424
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / local_preview-0.26.0-py3-none-manylinux_2_17_aarch64.whl
| Download URL | local_preview-0.26.0-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 8.3 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
b95b721429fb25ae90f05b5813cda3148337e46a5acef4e0b3bcb3114cb4c9aa
|
|
BLAKE2b-256 checksum How to use checksums |
a29f12e39facc379ccb4c5ca0ea1884a21e3ffdf3beae57a17717c2fd1d74626
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / local_preview-0.26.0-py3-none-macosx_11_0_arm64.whl
| Download URL | local_preview-0.26.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 8.6 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
18578feb158673a891aedfbf5df5c0533c95c343c9e28efeca694e79447a6e52
|
|
BLAKE2b-256 checksum How to use checksums |
de8bb573b332a16aba20983ca2f4593e789d4b30c7aff4e0847a1a655f635cd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / local_preview-0.26.0-py3-none-macosx_10_12_x86_64.whl
| Download URL | local_preview-0.26.0-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 9.2 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
da2086b96790da5f4496ad7ce3a6a9532cdcc14390ccabaedc3894cc62e7410c
|
|
BLAKE2b-256 checksum How to use checksums |
c09ff1e70b3d9af5247f057ee8dc35045c4e36294210d69a9c1ee48a62eeb575
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / local_preview-0.26.0-py3-none-any.whl
| Download URL | local_preview-0.26.0-py3-none-any.whl |
|---|---|
| Size | 9.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9e06b6d7438230e71ef9758d04870c2bfb877b52fbc11c24887bd8ae2e63f5f
|
|
BLAKE2b-256 checksum How to use checksums |
f2cef31e047d12baf3f9de1f6e57dc5d7d297295b7858e9f2686ddcef200c2d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|