Skip to main content

Vibe Saver

Recover a Power Apps Vibe application's source code from a browser network trace, when the project no longer opens in the authoring experience.

Published code apps keep their source in blob storage, and the Power Apps API hands the browser a temporary download link for it (codeAppSourceUri). If you record a network trace while loading your app list, that link is in the trace. This tool finds it and downloads the ZIP.

Run it

Nothing installed, no Python, no uv:

curl -LsSf https://raw.githubusercontent.com/jack-work/vibe-saver/main/scripts/run.sh | sh
irm https://raw.githubusercontent.com/jack-work/vibe-saver/main/scripts/run.ps1 | iex

Those fetch a standalone binary from the latest release and run it. Each release also carries the binaries directly, if you would rather download one: vibe-saver-linux-x86_64, vibe-saver-macos-arm64, vibe-saver-windows-x86_64.exe.

With uv, which supplies its own Python:

uvx vibe-saver

With pip, or on NixOS:

pip install vibe-saver && vibe-saver
nix run nixpkgs#uv -- tool run vibe-saver

The bare command runs the guided flow: it explains how to record the trace, finds the capture, downloads your source, arranges it for upload, and prints the path to hand to Vibe.

The layout Vibe expects

The archive the platform returns is rooted at the application. Vibe wants a project tree, so repack rewrites it to mirror a Vibe project export:

project/project.json
project/apps/<app>/...

dist/ is dropped, since the build regenerates it and an export omits it, and no directory entries are written.

Verbs

The guided flow is optional; every stage is usable on its own.

Command Does
vibe-saver guided recovery
vibe-saver discover [DIR] list .har captures, newest first
vibe-saver list --har F every application in a capture
vibe-saver find --har F --app-id ID one application (--json for scripts)
vibe-saver fetch --har F --app-id ID download the source ZIP as it comes
vibe-saver repack --zip F rearrange a source ZIP into the project layout
vibe-saver instructions [--upload] print the guidance text alone

--app-id accepts either a bare id or a whole player URL.

Recording the trace

vibe-saver instructions prints the full version:

  1. Open developer tools on make.powerapps.com and select Network.
  2. Start recording, then reload, then click Apps.
  3. Save the recording as a .har file.

The order matters. If the app list loaded before recording started, the download links are not in the file and nothing can be recovered from it.

About the trace file

A .har holds temporary download links for the applications your account can reach, and they work for anyone with the file until they expire, a few days later. The trace is read on your own machine; this tool uploads nothing. Delete the .har when you are finished.

Layout

src/vibe_saver/
  core/     logic only: HAR streaming, lookup, SAS, download, discovery
  cli/      prompts, instructional text, the wizard, argument parsing

Two runtime dependencies, both pure Python: rich draws, questionary asks. Rich turns on virtual-terminal mode on Windows and drops to ASCII box drawing on legacy consoles, so the same code looks right on Windows Terminal, cmd.exe, macOS and Linux. Neither needs a compiler, so uvx starts without a build step and PyInstaller freezes them without custom hooks.

core never prints and never exits; it raises VibeSaverError subclasses that carry a plain-language hint. That separation is what lets the same steps be driven later by something other than a terminal.

Large captures are read incrementally with json.JSONDecoder.raw_decode. On a 152 MB trace (261 entries, largest single response body 60 MB):

peak RSS time
json.load 769 MB 5.1 s
vibe_saver.core.harstream 147 MB 7.4 s

Two seconds buys a 5x smaller footprint. The ceiling is the largest single entry, not the file, so a 500 MB capture stays survivable.

Development

uv sync
uv run pytest

Metadata

Release files for vibe-saver 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vibe-saver 0.2.0
File Size Uploaded Provenance Actions
vibe_saver-0.2.0.tar.gz 23.2 kB Without provenance Details for vibe_saver-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vibe-saver 0.2.0
File Interpreter ABI Platform Actions
vibe_saver-0.2.0-py3-none-any.whl Python 3 none any Details for vibe_saver-0.2.0-py3-none-any.whl

Total release size: 51.1 kB

Release files / vibe_saver-0.2.0.tar.gz

Download URL vibe_saver-0.2.0.tar.gz
Size 23.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d364b65b559c03cbdb88ba281aa39d5859c20122bbeeb7dbc70862d6c13271b1
BLAKE2b-256 checksum
How to use checksums
5e9c94b0c24e8d73568241a1c14cb2ee1fc4bd0402f96fa53cc3de26f24ac02d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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 / vibe_saver-0.2.0-py3-none-any.whl

Download URL vibe_saver-0.2.0-py3-none-any.whl
Size 27.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a82bf4846214223a0d71f63077e54a3bda9c00beefaeb07be0b16d8c5b1b6db3
BLAKE2b-256 checksum
How to use checksums
bb755c6931f08ee85fcef6ea3a6fdfb80133d9582d46e4351dee663709e9b91e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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}

Security for vibe-saver 0.2.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page