Pirata

Install Pirata.

The built-in downloader runs in your browser. Start here with a file you can recognize.

1. Save your first file

  1. Open the deployed Pirata address in Safari. On Home, select Set up Pirata using the arrow, then Download test image.
  2. In Downloads, open Pirata.png. Check that the preview shows the green parrot. Choose Save to Files. Follow Safari’s download prompt if shown, then open the actual file from Files. The download location follows your Safari settings.
  3. For a compatible image or video, use Share / Save to Photos and choose Save Image or Save Video when iOS offers it. You can also share the exported file from Files. Audio stays in Files.
  4. Return to setup and confirm you opened the file. This records your own check on this device.

2. Add to Home Screen

In Safari, open Share, choose Add to Home Screen, enable Open as Web App if offered, and tap Add. Open the Home Screen icon once online so the interface can be cached. Safari and the standalone app may have separate local storage. Export important files.

3. Share direct links to Pirata

This lightweight Shortcut opens Pirata with your shared link. It works independently of the optional a-Shell setup.

  1. Create a shortcut named Send to Pirata. In its Details enable Show in Share Sheet. Accept URLs and Text.
  2. Add Get URLs from Input using Shortcut Input, then Get Item from List set to First Item. Add URL Encode using that item with Encode selected.
  3. Add a Text action. Type your actual HTTPS Pirata address followed by /#link=, then insert the URL Encoded Text magic variable. Add Open URLs using the Text result.
  4. Share the deployed sample image URL with Send to Pirata. Confirm the link appears, then tap Download. Quick Download in Settings starts an incoming direct link immediately. The address fragment stays on the device.

Optional local engine

Use the local engine for large direct files, hosts that block browser reads, compatible audio conversion, or public posts that expose original media. Device handoff and live social extraction still need validation on iOS. Keep the processing app open.

  1. Install the full a-Shell app and launch it once. Download pirata.py and save or move it in Files to On My iPhone/iPad → a-Shell → pirata.py. Keep the exact filename. Python 3.9+ is required. FFmpeg is optional.
  2. In a-Shell, enter python3 ~/Documents/pirata.py diagnostics once. Check the engine version, free space, and the actual FFmpeg outputs on your device. An empty encoder list leaves original downloads available.

Create the Pirata Shortcut

These are manual actions to build in Apple Shortcuts. Names can differ by OS language. Bracketed names below are magic variables inserted with the variable picker. Type the surrounding punctuation exactly. The URL is always file data.

  1. Create Pirata. Enable Show in Share Sheet and accept URLs and Text. Add Get Text from Input using Shortcut Input. Set variable Request to this exact text. A shared input should contain one URL. Pirata’s in-app button sends a JSON request with preferences.
  2. Add Generate Hash (search for “Hash”) of Request, select SHA-256, and set variable Digest to the result. Add Set Name of Request to [Digest].txt including the extension. Add a-Shell’s Put File with this named item and the default Shortcuts directory. Allow replacing an old file with the same name. The digest must be computed from exactly the same input bytes you save.
  3. Add a-Shell Execute Command, set to In App, with python3 ~/Documents/pirata.py plan [Digest]. Insert only the locally computed hash in the command field. Leave the working directory at the Shortcuts default.
  4. Add a-Shell Get File for [Digest].options.txt from that directory, then Get Text from Input. Add Split Text by New Lines, then Choose from List with Select Multiple off.
  5. Add Set Name of the chosen line to [Digest].choice.txt and a-Shell Put File with the named item. Add Execute Command In App with python3 ~/Documents/pirata.py save [Digest]. Commands are fixed apart from Digest. Do not insert Shortcut Input, a URL, a filename from the source, or the chosen label into a command.
  6. Use Show Result on the command output where available. Independently open Files → On My iPhone/iPad → a-Shell → Pirata. Look in Images, Videos, Audio or Collections. Use the system Share menu there to save compatible media to Photos.

Quick Download

Duplicate Pirata and name the copy Pirata Quick. Keep steps through the first Put File. Replace all later actions with a single Execute Command In App action, python3 ~/Documents/pirata.py quick [Digest]. Choose Pirata Quick from the Share Sheet to use source originals, or enable Quick Download in Pirata to send your saved preferences. Multiple declared media items are archived together. Run one Shortcut for a given link at a time.

Verify the bridge

Share the full HTTPS address of Pirata.png to Pirata. Choose its original and open the result from Files. Repeat with Pirata.mp4 and play it. The original clip is one second long with a short tone. Try an audio output only if diagnostics lists an encoder. For the browser-to-Shortcut path, paste the sample URL on Home, then choose Local engine under the detected link. The web app cannot see files saved by a-Shell or report their completion.

Source compatibility

The browser downloads original files when the source permits cross-origin reads. The local engine streams HTTPS files and can inspect publisher-declared public media on individually recognized TikTok, Facebook, Instagram, X and Pinterest links. It can present multiple files, declared resolutions, or a ZIP when the page supplies them. A platform match alone only identifies the link.

YouTube and Shorts use the publisher’s own export path for uploads. Other platforms may require their own enabled Save action or a creator-provided direct file. Private pages, expiring links, DRM streams, adaptive fragments and login flows have no supported extraction path in this release.

Update & repair

  1. For the interface, open Settings → Check for interface updates. Finish downloads, close all Pirata windows and reopen online. Export important copies before clearing browser data.
  2. For the local engine, download the candidate engine and its release.json from a deployment you trust. In Files, place both in a-Shell → Pirata Update. Leave the installed engine at the root. Retain the source package you previously tested.
  3. Run python3 ~/Documents/pirata.py check. Compare the printed versions and expected SHA-256 with the release information from your trusted source package. A hash from the same host checks file integrity only.
  4. To approve staging a newer version, run python3 ~/Documents/pirata.py update. Repeat diagnostics and both sample saves. To roll back, run python3 ~/Documents/pirata.py restore. If the new file cannot start, replace it manually in Files with the saved pirata-previous.py renamed to pirata.py.
  5. When repairing a Shortcut, compare its actions with the recipe above. If you cancel during selection, old digest-named request, options and plan files may remain in a-Shell’s Shortcuts folder. Remove only Pirata’s matching files after the task ends. Stale incomplete native transfer folders can be removed from Pirata/Temporary when all local jobs have stopped.

Privacy & licenses

Pirata uses local browser storage for preferences and optional downloaded copies. History off keeps new browser downloads in memory until you close the app or clear temporary copies. The host receives requests for the interface and samples. Browser downloads contact the URL you supply and its redirect targets. The local engine contacts the chosen source and any public media hosts it declares. Web and native histories are separate. Settings → Manage stored copies includes files removed from history. Delete Pirata copy affects only its browser copy.

The web app and standard-library engine include original source and artwork. FFmpeg and a-Shell are supplied separately by their distributors. No third-party software is silently installed. See the source package for the engineering review, licenses, compatibility matrix and tests.

Back to Pirata