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.2

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.2
File Size Uploaded Provenance Actions
vibe_saver-0.2.2.tar.gz 23.2 kB Without provenance Details for vibe_saver-0.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 51.1 kB

Release files / vibe_saver-0.2.2.tar.gz

Download URL vibe_saver-0.2.2.tar.gz
Size 23.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5a8dc07cd1f1cfb0b723b74f4abcdb838e58baa61b847e8b29c15ae0871c9b69
BLAKE2b-256 checksum
How to use checksums
095e64636f897c45f230631f78a267083201eec98640ac03fc42526f42ae41d6
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.2-py3-none-any.whl

Download URL vibe_saver-0.2.2-py3-none-any.whl
Size 27.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ad613a49cdae1e6cbb5ce32b7f6dbe465f295ab432aa4752d8f83d6d7fa8db2
BLAKE2b-256 checksum
How to use checksums
0bbb4b0ff3481e7ef5174e897e0c42328ba2d83eb1f8d0f443003dc13d15bc4b
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.2

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