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.31.3
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.31.3-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| local_preview-0.31.3-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| local_preview-0.31.3-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| local_preview-0.31.3-py3-none-macosx_10_12_x86_64.whl | Python 3 | none | macOS 10.12+ x86-64 | Details |
| local_preview-0.31.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.4 MB
Release files / local_preview-0.31.3-py3-none-manylinux_2_17_x86_64.whl
| Download URL | local_preview-0.31.3-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 9.3 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
de202a3ff789aeaa3d103a9af50f4e57744194ad971a0d165322ab1ed9811714
|
|
BLAKE2b-256 checksum How to use checksums |
28148c6835aa0ecb0f1c24b03676b53a30035f26830c135dde9dec2d2629c915
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","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.31.3-py3-none-manylinux_2_17_aarch64.whl
| Download URL | local_preview-0.31.3-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 8.6 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
a4212bbfb0470230c4ae87084f3be3d75351d71a2cb5affb207cfd49d649f7fc
|
|
BLAKE2b-256 checksum How to use checksums |
99c6a5c7e75a59e0f31641c234f03ec0017bc03616c05068a700f7bbe22d05e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","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.31.3-py3-none-macosx_11_0_arm64.whl
| Download URL | local_preview-0.31.3-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 8.8 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
6072deedf98f37516f61e7ed50584ea5b9421204335247bfb55661b40d694c16
|
|
BLAKE2b-256 checksum How to use checksums |
3a526a1c3102987640528b148248dc41362802bc8941a090c0d73e5346577c3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","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.31.3-py3-none-macosx_10_12_x86_64.whl
| Download URL | local_preview-0.31.3-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 9.4 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
64ab47a78b6b1867044424d008075292b0ac6aba05f94930b14a7f209a059778
|
|
BLAKE2b-256 checksum How to use checksums |
750aff6a0b84484d28cc99dc4dafb3b0c27a93ffc5244231e09e5206eb2d84cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","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.31.3-py3-none-any.whl
| Download URL | local_preview-0.31.3-py3-none-any.whl |
|---|---|
| Size | 9.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d424c181a96e0ba744ba6efe6ef3d39ada991aaef938db492d95b3d8e285b7f
|
|
BLAKE2b-256 checksum How to use checksums |
87fdcf675aa900ac932404a348859bacd41dad8b5dda060f0aa751f6d6298a4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","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}
|