This release is a pre-release and may not be stable for production use.
UI Capture (engineering preview)
Local-first browser UI evidence utility. UI Capture is currently in beta and distributed under the MIT License.
Setup
From the source directory, use a Python 3.10+ interpreter compatible with Playwright:
python3 -m venv .venv
.venv/bin/python -m pip install .
.venv/bin/python -m playwright install chromium
.venv/bin/ui-capture --version
.venv/bin/ui-capture --url http://127.0.0.1:3000/ --project example --capture-mode both --zip
Install other browser engines via python -m playwright install firefox webkit inside the environment. Use --help for options. Configurations support devices, browsers, themes, scale, timeout_ms, capture_mode (full, viewport, both), and screens with name, path, ready selector and ordered click, click_if_visible, wait or fill steps. A screen can specify a repository-relative JSON fixture with path and storage_key; use --repo. Each screen receives an isolated browser context. Existing full_page configuration remains supported. CLI capture mode overrides per-screen modes.
Evidence and limitations
Outputs are stored locally under ~/.ui-capture/runs by default. The manifest records per-screen error counts, HTTP status counts, request failures, screenshot hashes, fixture hash and whether state was seeded. Use --repo with a trusted checkout. Git metadata records its HEAD commit and reports working-tree cleanliness as unknown (dirty: null). The served revision is explicitly unverified. Raw console messages, HTTP paths, query strings and exception messages are not recorded. Screenshots may expose confidential data; inspect before sharing. Do not include secrets in configs. Loaded pages can make network requests or change backend data; this tool is not a network or security sandbox. Use trusted apps and disposable data. CSS viewport emulation is not physical-device testing. Capture is not visual regression or accessibility certification. Exit codes: 0 clean, 1 warnings/failures, 2 setup failure.
Development
python -m unittest discover -s tests -v after installation. The included browser test uses system Chromium if available, otherwise Playwright-managed Chromium (install it first); actual macOS and other engine validation remain release gates. The private legacy configurations used during development are excluded from the distributable source archive.
Browser validation
Install Playwright-managed engines with python -m playwright install chromium firefox webkit.
Run the existing capture assertions against each engine on the target macOS machine:
for browser in chromium firefox webkit; do
UI_CAPTURE_TEST_MANAGED=1 UI_CAPTURE_TEST_BROWSER="$browser" \
python -m unittest discover -s tests -v || exit 1
done
Package validation
Build a wheel and source archive with python -m build in a development environment
with the build frontend installed. In separate fresh virtual environments, install
each artifact with python -m pip install /path/to/artifact, run python -m pip check
and verify ui-capture --version and ui-capture --help. The browser installation is
a separate step. Use a private output location you control, including its parent directories. Keep run directories protected from concurrent edits while creating a ZIP. ZIP bundles and screenshots
can contain private UI data and should be reviewed before sharing.
Metadata
Release files for ui-capture 0.3.0b4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ui_capture-0.3.0b4.tar.gz | 16.4 kB | Without provenance | Details for ui_capture-0.3.0b4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ui_capture-0.3.0b4-py3-none-any.whl | Python 3 | none | any | Details for ui_capture-0.3.0b4-py3-none-any.whl |
Total release size: 27.9 kB
Release files / ui_capture-0.3.0b4.tar.gz
| Download URL | ui_capture-0.3.0b4.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38605a9022f2e2e063b31a4318182c9c2f8f7578bb790fd08dbf48fe7b71b0a3
|
|
BLAKE2b-256 checksum How to use checksums |
4d0e8152621afe8936944416bf2a0b47c519a49fc2f915949e3e4e6e593093fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / ui_capture-0.3.0b4-py3-none-any.whl
| Download URL | ui_capture-0.3.0b4-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd42252815979f20089ca8373bf05bc57823376c2eb7f2b9eed8a4c07224a8d1
|
|
BLAKE2b-256 checksum How to use checksums |
86571981d2961a76d96cee82bc06f130e044dd37b296cdf93ff65d9b0df945d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Security for ui-capture 0.3.0b4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.