Skip to content
parafieldaiPublic

About

ParaAir: a macOS streaming drive with Finder integration, cloud object storage, and optional self-hosted storage.

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

ParaAir

Last updated: 2026-11-26

A development implementation of a CLI-first streaming drive for macOS 26+, with cloud object storage as the primary deployment and self-hosted NAS storage as an optional backend. A Swift FSKit extension presents the filesystem to Finder. A pinned JuiceFS engine supplies managed metadata and object storage. Reads fetch touched blocks, writes first enter a durable local journal, and explicit pinning downloads offline content.

ParaAir now opens in Finder and appears in Favorites and Locations at /Volumes/ParaAir on this Mac. The October 9 fix supplies the mandatory FSKit flags/access-time attributes; native mounting, bookmark resolution, directory listing and a real sidebar click pass with the existing R2 connection. The native API is the default on macOS 27+ with its entitlement; macOS 26 retains the helper route. Local tests, the bounded R2 backend test and earlier mounted range reads pass. This is a development alpha; other cloud/NAS backends, media applications and a notarized clean-Mac installation remain unvalidated. Remaining release gates are listed under Acceptance matrix and remaining gates.

ParaAir Cloud, a hosted subscription that removes provider accounts and bucket setup, has a beta client in this repository; its service lives in a private repository and runs, invite-only, at cloud.parafield.ai. See ParaAir Cloud (beta) client. The early-access page in site/ is published at paraair.parafield.ai.

ParaAir is licensed under the Apache License 2.0; see NOTICE.

The canonical project directory, Swift package and generated Xcode project are named ParaAir. The old workspace path streamdrive is a compatibility symlink so existing development metadata, library paths and app registration continue to resolve. Bundle IDs, shared Keychain groups and storage formats retain their existing identities to preserve access. This directory is a standalone Git repository connected to the private parafieldai/ParaAir repository. The remote is created and configured; local source has not yet been committed or pushed.

Build and local validation

Requirements: Apple Silicon Mac, macOS 26 or later (on macOS 26 the drive opens in Finder after a one-time OK for ParaAir's /Volumes helper in Login Items & Extensions; see macOS/README.md), Xcode with the macOS SDK, Swift, Go and XcodeGen. The native script pins and verifies JuiceFS source and privately obtains its required Go toolchain. No package, driver, app or filesystem extension is installed by these scripts. Builds require 100 GiB free under this workspace's disk policy.

cd /Users/user/Documents/Automation-agents/ParaAir
scripts/build-juicefs.sh --test
CLANG_MODULE_CACHE_PATH="$PWD/.build/module-cache" \
SWIFTPM_MODULECACHE_OVERRIDE="$PWD/.build/module-cache" \
STREAMDRIVE_NATIVE_LIBRARY="$PWD/native/lib/libstreamdrive.dylib" \
swift test --cache-path .build/pm-cache --disable-sandbox
scripts/build-app.sh

The app is .build/xcode/Build/Products/Release/ParaAir.app, with its CLI helper at Contents/Helpers/paraair. The standalone CLI path is printed by swift build --show-bin-path; this Xcode-backed Swift toolchain uses .build/out/Products/Debug/paraair. scripts/acceptance.sh exercises the built CLI on a disposable local-directory fixture. Swift native tests additionally exercise the real JuiceFS library with SQLite metadata and local object storage, not just that fixture adapter. Code modules, environment variables, native-library names and the existing StreamDrive state directory retain their compatibility identities.

App setup and Finder

The product uses Glide, confirmed by the user on October 9: an abstract flight mark made only from polygons in charcoal, warm white and muted green, with a matching monochrome menu-bar mark. Artwork, build pipeline and previous provenance.

Drive appearance… changes the visible Finder name and chooses a local custom PNG/JPEG/HEIC/TIFF image, or restores the default polygon product icon. Names with spaces and Unicode are supported; the stable profile/storage identity is retained. The new name appears in the sidebar immediately and becomes the volume name on the next mount. The signed build's name change was verified in Finder and restored to ParaAir. The default/custom icon is visible in ParaAir, but Finder currently keeps its generic document sidebar icon on this mount; supplying an IconRef through the deprecated Favorites API did not change it. Custom image files are resized to 256 pixels and saved in local state, with no icon upload to the bucket.

Open ParaAir and follow its four setup steps, one action each: turn ParaAir on in System Settings, add storage, create the drive, open it in Finder.

  • Turning ParaAir on comes first. It's the only step outside ParaAir, and nothing else depends on it.
    • Open System Settings opens the File System Extensions list: FSKit's own call on macOS 27, then the x-apple.systempreferences:com.apple.ExtensionsPreferences?extensionPointIdentifier=com.apple.fskit.fsmodule link, which opens the list with ParaAir's switch on macOS 26 too (tested on 26.6.2). Only if that link doesn't open does it fall back to Login Items & Extensions, where the person chooses By Category → File System Extensions. On macOS 26 an in-app (Sparkle) update turns the switch off again, a macOS 26 FSKit issue that macOS 27 doesn't have, so after an update this is one click and the switch.
    • The step shows a screenshot of that list with ParaAir file system switched on (macOS/Resources/ExtensionSwitch.png, taken on macOS 27).
    • The switch under ParaAir Extensions → FSKit Modules records a choice but never turns the extension on (macOS 27.2, see docs/ci-cd.md), so both the app and the CLI warn against it by that name.
    • Keep the extension's Info.plist unchanged between releases: a changed one makes macOS switch the extension off again, while code-only updates keep it on.
    • After opening System Settings, ParaAir checks every 2 seconds for 5 minutes, and again whenever it comes to the front while the switch is off, and moves to the next step by itself. A drive that was waiting mounts.
    • If the person comes back with the switch still off, or chooses Check Again while it is still off, it says That switch didn’t save and points at the By Category list.
  • Other copies. ParaAir forgets LaunchServices records of copies that no longer exist. Copies that still exist (a download or a backup) are listed with Show in Finder, because macOS can turn on the wrong copy's extension.
  • Mounting. The app includes the mount helper and attempts to mount the new drive. Mount when ParaAir opens, enabled by default, controls mounting the saved drive on later app launches. macOS requires the extension approval; creating a connection does not bypass it.
  • For other apps. paraair setup-status reports the same states, plus extension.otherCopies. paraair extension-settings [--wait SECONDS] opens the same list and can wait until ParaAir is switched on; it exits 13 extension_disabled if the wait runs out.

Install defaults. Opened from the disk image or a quarantined download (which macOS runs from a translocated read-only path), ParaAir copies itself to /Applications/ParaAir.app, or ~/Applications when /Applications isn't writable, clears the download quarantine on the copy, opens the copy and quits. This runs before renewal or the extension check. A newer copy, or the same version already open, at the destination is opened instead; an older copy is swapped out in one step (renamex_np with RENAME_SWAP, as Sparkle does) and goes to the Trash. The file system extension never disappears from disk during the swap, so macOS keeps it switched on; removing the old copy first made macOS switch it off. When that older copy is open, ParaAir asks "ParaAir is open. Quit it and install ?" (Install or Not Now), asks it to quit and waits up to 10 seconds, never forcing it; a copy that stays open is left alone with instructions to quit it from its menu. Any other location, including developer builds under .build, never moves; a failed move shows an alert with Show in Finder. The first launch from an Applications folder registers ParaAir once as a login item (SMAppService.mainApp, recorded as loginItemDefaultApplied). Open ParaAir at login, beside Connect the drive when ParaAir opens, shows the live status, and turning it off is never undone. Decisions log to subsystem == "dev.streamdrive.app" AND category == "install". Unit tests and offscreen snapshots cover the decisions and toggle; the real move and registration still need a signed DMG run.

After a verified mount, ParaAir attempts to add the drive to Finder’s Favorites using a public, deprecated Apple API. Successful registration is recorded once so removing the favorite is honored on later launches. Add to Sidebar explicitly retries registration. The native route defaults on macOS 27+ with its provisioned entitlement; the CLI helper remains the fallback. October 9 runtime validation confirmed automatic Favorites registration, the native Locations entry and opening the real volume from its favorite. The two obsolete test shortcuts were removed. Preview and clean-Mac installation validation are still required. See the macOS guide.

Run the bounded 32 MiB local benchmark separately:

CLANG_MODULE_CACHE_PATH="$PWD/.build/module-cache" \
SWIFTPM_MODULECACHE_OVERRIDE="$PWD/.build/module-cache" \
STREAMDRIVE_NATIVE_LIBRARY="$PWD/native/lib/libstreamdrive.dylib" \
STREAMDRIVE_BENCHMARK_OUTPUT="$PWD/.runtime/local-benchmark.json" \
swift test --cache-path .build/pm-cache --disable-sandbox --filter NativeBenchmarkTests

It compares first range, distant seek, warmed cache, sequential reads and a local file. It records object GET payload bytes independently of requested application bytes. Fresh client cache does not mean a cold host SSD. These timings do not predict video startup over a WAN.

One local debug-build run on October 2, 2026 (macOS 27.2, 12 CPU cores) produced:

Operation on the 32 MiB nonsparse file Time Object payload fetched
Metadata listing 1.02 ms 0
First 64 KiB read 13.65 ms 1 MiB
Distant 64 KiB seek 13.07 ms 1 MiB
Repeated 64 KiB read 0.86 ms 0
Sequential 32 MiB, partly warm 420.59 ms 30 MiB
Direct local-file 64 KiB read 0.016 ms 0 remote bytes

These are single-run diagnostic observations, not latency percentiles or a comparison to an uncached physical SSD. Raw counters and conditions are in .runtime/local-benchmark.json. They demonstrate partial fetching and expose substantial adapter/cache overhead to optimize; they do not establish internal-SSD-equivalent speed.

The home window and menu bar panel are pure views of a HomePresentation value built from app state (HomePresentation.swift, HomeViews.swift): a four-step setup checklist while the Mac has no drive yet, one primary action per state, and notices for sign-in or mount problems.

When ParaAir knows drives in more than one state folder (the selected folder plus folders it mounts at login or remembers, such as a ParaAir Cloud drive in a folder of its own), both list every drive: its Finder name, its storage (ParaAir Cloud and the account, or the provider and bucket), its state (Connected, Connecting…, Needs sign-in or Off) and the one action that state needs (Open in Finder, Sign In Again… or Connect). Drives that work come first, so one that can't connect never hides them. The status line sums the drives up ("2 drives connected · R2 Test needs sign-in"); "Storage access needed" leads only when every drive needs sign-in. Every notice about one drive starts with its name ("R2 Test: Cloudflare sign-in expired…"), and the Drive section below the list is headed with the selected folder's drive. Connect on another folder's drive mounts it the way login does. Remove from List… (the row's … menu, or right-click) forgets another folder's drive that isn't mounted or connecting: ParaAir stops listing, renewing, mounting it at login and following its changes. Its files in storage and its state folder stay, and Choose State Folder… brings it back. The selected drive is never removed this way. Sign In Again… on another folder's drive first makes its folder the selected one, because Storage Settings shows the selected folder's connections; the folder it leaves keeps mounting at login, and a mounted drive stays mounted. Turning on ParaAir's switch still leads while it stops every drive.

scripts/render-ui-snapshots.sh checks that state logic and renders the home window, menu panel and Storage Settings offscreen in light and dark mode. It needs an earlier scripts/build-app.sh for the core object file and never launches, signs or mounts the app:

bash scripts/render-ui-snapshots.sh .runtime/ui-snapshots

ParaAir Cloud (beta) client

ParaAir Cloud is invite-only storage from Parafield Inc. The Mac talks to it over HTTPS with OAuth tokens only: no bucket, provider key or database credential is stored on the Mac, and JuiceFS is not involved. Files are uploaded as 4 MiB content-addressed chunks; reads fetch only the chunks they touch, with a short-lived read token.

Uploads slow down rather than pile up when the service is slow or busy. Each chunk PUT is sent once per attempt, and it waits 75 s for its body to move, longer than the service's own 60 s. A chunk the service refuses for now waits before it goes again: for the service's Retry-After, or a wait that doubles from 5 s up to the service's 120 s chunk lease. A chunk PUT that ended without an answer waits out that lease, because the service may still hold the chunk. When the refusal is about that chunk (chunk_busy: another PUT holds it), the file's other chunks keep going; when it is about the service (throttled, one of its own errors, no answer), no further chunks are sent into it until the next round. Before a waiting chunk goes again, the Mac asks the service which chunks it still lacks, so one another PUT stored meanwhile is not sent again. If a chunk can't go within 10 s, or after 30 s or 8 rounds since the first refusal, that attempt ends and the file is retried with the usual backoff. A volume sync, which macOS also sends on its own, waits for a failing file's retry time like the background uploader. Deleting a new file that never finished uploading stops its upload and drops the change. Unmounting stops uploads in flight; their changes stay on the Mac for the next mount.

The service is not in this repository. Its Worker lives in a private repository and runs, invite-only, at cloud.parafield.ai. The public API contract the client implements is contract/paraair-cloud-v1/. Unit tests use an in-memory fake of the same contract; scripts/cloud-e2e.sh runs the client end to end against the Worker under local wrangler dev (sign-in, drive attach and create, upload, range reads, partial overwrite, conflict, quota, trash restore through the CLI, token refresh, sign-out).

A build shows the ParaAir Cloud section in Storage Settings only when it knows a service address (Info.plist ParaAirCloudBaseURL). Without one the section says ParaAir Cloud isn't available in this build and offers no buttons. With one:

  • Sign In to ParaAir Cloud… opens the browser for an email code and consent, then returns through a loopback PKCE redirect. The read-only sign-in link can be copied into another browser profile, as with Cloudflare.

  • The account record is <state folder>/cloud-accounts/<id>.json; tokens are in the Keychain service dev.streamdrive.cloud. A cloud drive gets its own state folder, ~/Library/Application Support/ParaAir/Cloud Drives/<account id>/, unless the current folder is empty. After the drive choice the app switches to that folder and continues Finder setup.

  • The app renews sign-ins for every state folder it has used, not only the selected one, so a BYO drive's token keeps renewing after switching to a cloud drive. That drive also keeps connecting at login while Connect the drive when ParaAir opens is on.

  • Choose State Folder… replaces the selected folder as before, except that choosing a folder kept this way keeps the one it replaces, so going back to an R2 drive doesn't drop the cloud drive. A kept drive that doesn't connect at login stays in the home window's drive list with Connect.

  • A cloud drive that becomes ready while another drive is still connecting is switched to once that finishes.

  • Storage Settings and the home window show the plan size, the space used and, in Storage Settings, recovery retention and this month's transfer. A team's plan size is the team's pooled storage (Team gives 1 TB per seat), so it is labelled "Shared by the Studio team (25 seats)" rather than read as one person's. Every figure comes from the service; if it can't be reached, they are hidden behind "Plan and usage are unavailable right now." and Retry.

  • Paid plans follow the billing object of GET /v1/me (ParaAirCloudBilling.swift, CloudBillingPresentation.swift): the renewal date, the grace period after a failed payment (Update Payment…), the read-only period and pending deletion. A service without billing shows none of it. When the service offers checkout to the workspace owner, Choose a Plan… asks the service what it sells (GET /v1/billing/offer) and shows Personal and Team, monthly or yearly, with the service's prices and the merchant of record; the app keeps no prices of its own and offers no checkout without them. A plan the offer prices in neither period (Team under Stripe Managed Payments, which the service doesn't sell it through) reads Not available yet with "Team isn’t available yet.", never "try the other billing period". A team drive offers Choose a Plan… only when its own team can check out, and the sheet then starts on Team for that team; a team owner whose team can't buy one (billing is set up, but the service offers the team no checkout) is told Team plans aren't available yet and that a Personal plan covers only the personal workspace, also when their own Personal plan is already paid for; a team whose plan ended says the same instead of "Choose a plan". Team seats start at the seats the team's members use, from the Members list when it has loaded (also when it arrives after the terms, which are then asked for again with the box unticked; seats the person set stay), else one; /v1/me does not report the member count, and the service refuses fewer seats than members. The review step shows the service's checkout terms for that exact selection with two unticked boxes, and checkout sends the terms' disclosureVersion with both boxes ticked, so the consent record names the text that was shown. While a payment page is open and unpaid, the app shows Finish Payment… and the same page again, never a second checkout; Start Over… forgets it, and the next checkout makes the earlier page unpayable on the service. Manage Plan… opens the processor's customer portal. The app opens only the service's own /billing/pay page or Stripe's and Paddle's documented checkout and portal hosts; any other address is refused. The plan changes when the processor's webhook reaches the service, so the app reloads /v1/me with a widening delay for about 15 minutes, and whenever it becomes active again while a payment page is open; after that the sheet offers Check Again. Plan and billing always describe the drive's own workspace, saved in its profile when the drive is attached or created; when it cannot be determined, Storage Settings says plan and usage are unavailable instead of showing another workspace's.

  • The home window counts files waiting to upload, files blocked because the plan is full or sign-in ended, and files that changed on another device. Newly blocked or conflicting files also post one notification.

  • Uploads that keep failing (four failed attempts, or a quarter hour of failures) get their own notice instead of "waiting to upload": "Couldn’t upload 3 files: your storage refused access…", with how long the oldest has waited, and one notification per run of failures. paraair status prints the same line.

  • Sign Out… says how many files haven't uploaded yet and offers Upload First. Sign Out Anyway says those files stay on this Mac, and that the ones waiting, needing the sign-in or being retried resume uploading after signing in again with the same account; conflicts and files refused by a full plan, another Mac or a role are said to still need review.

  • Signing out first ejects every mounted drive of the account, in every folder the app knows, so none stays mounted under a signed-out account or keeps its /Volumes name from the next account's drive. A drive with files open isn't forced: the account stays signed in and Storage Settings names the drive to close files on. While it runs, none of the account's drives starts mounting, and one already connecting is waited for. Drives are matched by the state folder they were mounted from, not by mount point. The account is then marked signed out in every folder that shares its sign-in (not only the selected one, and including Cloud Drives folders the app hasn't learned yet), so setup-status stops reporting it signed in there; a folder that can't be updated is retried once, then named in Storage Settings. Signing in again with the same account signs those copies back in. Other folders of that account then leave the Drives list once their drives are unmounted and nothing in them waits to upload; so does the folder the app leaves when someone else signs in. Their state folders stay, and Choose State Folder… brings one back.

  • Legal pages: ParaAir Cloud sign-in links the ParaAir Cloud Terms and Privacy Policy, the plan sheet adds the Subscription Policy, and About ParaAir links the Terms of Service, Privacy Policy and the site's list of every legal page (paraair.parafield.ai/legal). The addresses live in one place, macOS/App/LegalLinks.swift, and the UI snapshot check confirms each one has its page under site/.

  • Delete Account… closes the ParaAir Cloud account (GET, POST and DELETE /v1/account/deletion). The sheet lists each workspace and what happens to it (deleted with its files when only this person is in it, otherwise left), anything that must change first (the only owner of a team with other members, or a plan that still renews), and the grace period. It says how many files on this Mac haven't uploaded yet to any of the account's drives in the state folders ParaAir knows (counted from each drive's journal when the sheet opens; if one can't be read it shows a general warning instead of a count), which can't upload once the account is deleted (wait for them, or copy them out of the drive in Finder). It asks for the account's email address typed in before it sends the request. A scheduled deletion shows its date and time with Cancel Deletion in Storage Settings, and as a notice in the home window, until the grace period ends. A service without these routes (404) offers nothing.

  • Get Help… opens an email to support@parafield.ai with the version, build and macOS version filled in. Copy Diagnostics puts on the clipboard what paraair setup-status --json and the selected drive's paraair status --json report (run through the bundled helper) and this app's recent dev.streamdrive log lines (its own process only, which needs no entitlement; the extension's lines need log show). Of the commands' JSON only the fields the CLI contract documents are kept (a failing command keeps code and exitCode, not its message), so a field added later can't leak. Tokens and keys (also percent-encoded, and AWS-style AKIA… and …_secret_access_key=), sign-in codes, file names and paths inside drives (everything after a drive's mount point, spaces and quotes included), error text, other Macs' names and every email address except this Mac's own accounts are removed first, and the home folder becomes ~ (SupportDiagnostics.swift). The helper's output is capped at 4 MB and 20 seconds per command, read without holding a thread. Log lines are copied only when setup-status reported every drive's mount point; otherwise they are left out, because a path inside a drive mounted outside /Volumes couldn't be recognized. Both are in About ParaAir and under Advanced in the ParaAir window; the menu bar panel's More menu has Get Help… and About ParaAir. ParaAir has no visible menu bar of its own (LSUIElement). The support address lives with the legal links in macOS/App/LegalLinks.swift.

  • Every request carries X-ParaAir-Client: mac/<major>.<minor>.<build>, the build being CFBundleVersion (mac/0.1.72), so the service's MIN_CLIENT_VERSION can refuse a particular build. Builds before 2026-11-26 sent mac/0.1.0. See the contract README, "Client version".

CLI support (see paraair help connect): paraair cloud-accounts, paraair cloud-drives --cloud-account ID, paraair connect NAME --cloud-account ID (--cloud-drive ID | --cloud-drive-name NAME), paraair trash NAME and paraair restore NAME NODE_ID [--to PATH]. For setup by another app, see "Setup by another app" below.

Loopback development builds, for a local wrangler dev service only:

Variable Effect
PARAAIR_CLOUD_BASE_URL scripts/build-app.sh writes it as ParaAirCloudBaseURL into the app, CLI and extension. It must be https://host or http://127.0.0.1:PORT.
STREAMDRIVE_ALLOW_DEV_CLOUD=1 Required to put a loopback address into a signed build; the script warns when it is used. A loopback address also sets ParaAirCloudAllowLoopbackHTTP and an App Transport Security exception for 127.0.0.1 only.
PARAAIR_CLOUD_ALLOW_LOOPBACK_HTTP=1 Debug builds and swift test only: allows http://127.0.0.1:PORT without an Info.plist.

A loopback build also shows Developer service address in Storage Settings, which saves <state folder>/paraair-cloud-service.json; release builds ignore that file.

swift test --build-system native --jobs 4 --filter 'ParaAirCloud|CloudAccount|CloudDrive|CloudBilling|SupportDiagnostics'   # fake service
PARAAIR_CLOUD_SOURCE=/path/to/service/checkout swift test --build-system native --filter testFakeCatalogMatchesTheServiceCatalog   # the fake follows the service's catalog, disclosure and what it sells
bash scripts/cloud-e2e.sh            # needs the cloud/ checkout; starts wrangler dev locally, deploys nothing
PARAAIR_E2E_PORT=8788 bash scripts/cloud-e2e.sh   # when 127.0.0.1:8787 is taken; the issuer follows the port
log show --last 30m --info --predicate 'subsystem BEGINSWITH "dev.streamdrive"'   # sign-in, renewal and mount logs

CLI workflow

connect saves a non-secret profile for an existing, formatted JuiceFS volume. It never formats or imports a user's storage. Examples use placeholders:

# This SQLite database must already describe a formatted cloud-backed volume.
# Keep it inside the state directory for the extension's scoped access.
export STREAMDRIVE_HOME=/absolute/path/to/state
paraair connect cloud --metadata-url sqlite3:///absolute/path/to/state/metadata/cloud.db \
  --library /absolute/path/to/libstreamdrive.dylib \
  --mount-point /absolute/path/to/empty-mountpoint
paraair doctor cloud
paraair ls cloud /media
paraair status cloud --json
paraair mount cloud
paraair reveal cloud /media
paraair pin cloud /media/project
paraair uploads cloud --json
paraair uploads cloud --retry
paraair cache cloud --evict
paraair unpin cloud /media/project
paraair unmount cloud

Global --state-dir PATH or STREAMDRIVE_HOME selects state; the default is ~/Library/Application Support/StreamDrive. connect --fixture-root PATH explicitly selects the test-only local-directory adapter. It is not a production NAS or object-storage substitute. connect --replace only makes deliberate configuration changes; state must never be repointed at another backend while old journals/cache exist.

Credential-bearing URLs are rejected in public profiles and command arguments. Use --credential-id NAME and the app's secure credential-entry UI to store the authenticated metadata URI in Keychain. The URI must address the configured volume. Shared Keychain access is verified in the Developer ID signed app and packaged CLI; the sandboxed extension still needs runtime validation. The separate Connections window stores OAuth tokens and S3 keys in Keychain. paraair connections --json lists nonsecret references; connect --connection ID --metadata-url URI attaches a saved connection to an existing formatted volume. It does not start sign-in or accept storage secrets.

Mounting requires an installed, signed and enabled FSKit extension. See the macOS build and activation guide. The mount resource is the state directory, granting scoped access to its cache and journal. A development library or local fixture outside that directory is unsuitable for the sandboxed extension; the packaged native library is embedded in the app.

Setup by another app

Another app on the Mac can walk a person through ParaAir setup with the CLI at ParaAir.app/Contents/Helpers/ParaAirCLI.app/Contents/MacOS/paraair. It never handles a sign-in code: sign-in happens in ParaAir's own window and the person's browser. What such an app may rely on (the CLI's JSON and exit codes, the paraair:// URLs and the mounted drive) is published as a versioned contract, contract/paraair-cli-v1/: within v1 only fields, commands and codes are added. setup-status reports contractVersion; gate on that rather than on the app's build.

paraair setup-status --json        # app, File System Extension, accounts and drives; local only, no network
paraair cloud-sign-in --wait 300 --json   # opens ParaAir's ParaAir Cloud sign-in, waits until an account is signed in
paraair cloud-drives --cloud-account ID --json
paraair --state-dir DIR connect Team --cloud-account ID --cloud-drive-name Team --json
paraair --state-dir DIR mount Team --json   # the app mounts it at /Volumes/Team
  • setup-status returns {contractVersion, app: {installed, path?, running, version?, build?}, extension: {state, otherCopies}, accounts: [{id, email, issuer, state, stateDirectory, workspaceIds}], profiles: [{profile, stateDirectory, backend, cloudAccountId?, cloudDriveId?, workspaceId?, mountPoint?, mounted, healthy, conflictCopies, knownToApp}]}. Missing values are left out. contractVersion is the CLI contract the build follows (1); a build without it predates the contract. build is CFBundleVersion, which grows with every release, while version stays 0.1.0 through the 0.1.0 alphas. extension.state is enabled, disabled, notDiscovered or unknown. A profile is healthy when it is mounted, with no failing uploads and not in use on another Mac (connectivity lives in the mounted drive's process and isn't read here). It looks in the default state folder and every folder the app remembers, including the folder of a sign-in whose drive is still being chosen, and the folders under "Cloud Drives" (knownToApp says whether the app has learned one yet); --state-dir or STREAMDRIVE_HOME narrows it to one, and stateDirectory tells you which to pass to connect and mount. workspaceIds come from drives attached on this Mac; cloud-drives asks the service.
  • A state folder holds one drive. For another drive of an account already signed in (a team's drive for someone whose folder holds their own drive), connect … --new-state-folder attaches it in a new folder, ~/Library/Application Support/ParaAir/Cloud Drives/<uuid>/, and prints it as stateDirectory; then paraair --state-dir <stateDirectory> mount Team. The folder shares the sign-in of the folder the account is in (only the account's public record is copied; the tokens stay one Keychain item, and signing out in one folder signs out both, ejecting both drives and marking both folders signed out). The app learns a folder it doesn't know from a mount request only if it is a folder of this user directly in "Cloud Drives", holding one valid ParaAir Cloud drive of an account it is already signed in to, so a link on a web page can't add one; it then renews it, mounts the drive (and at every login while Mount when ParaAir opens is on), and follows its change feed. setup-status lists such folders too, each profile with knownToApp. A drive name used in another folder is refused (both would mount at the same /Volumes point).
  • cloud-sign-in answers at once with the signed-in account if there is one. Otherwise it opens paraair://cloud/sign-in; with --wait it returns the account once one is signed in, or exits 11.
  • mount without --mount-point, or with one under /Volumes, asks the app (paraair://drive/mount?profile=NAME&folder=STATE_FOLDER) to mount the drive through FSKit at /Volumes/<Finder name> (the drive's display name, else the profile name), as its Connect button does, and waits up to --wait seconds (default 90). It counts as mounted only once the app has saved that point to this drive's profile, which the app does after checking the volume serves this state folder; a volume already at that point is refused. The app only mounts a drive already saved in a state folder it knows. On macOS 27 the app uses FSKit's own mount (it needs the mount entitlement). On macOS 26 it has its /Volumes helper make /Volumes/<Finder name> (or <name> 2 … when another volume has the name) and mounts there through its bundled CLI, marked PARAAIR_MOUNT_ROUTE=direct, which never asks the app back. A --mount-point outside /Volumes always mounts directly, with no app and no helper.
  • Exit codes: 0 success, 1 failed, 2 usage, 3 uploads left after uploads --retry, 10 the app isn't installed, 11 not signed in, 12 the account's role or workspace doesn't allow it, 13 the File System Extension isn't turned on, 14 no such ParaAir Cloud drive or workspace (15–17: see Shared drives). With --json an error prints {"error", "exitCode", "code"}, code being failed, usage, app_not_installed, not_signed_in, forbidden, extension_disabled, drive_not_found, not_mounted, version_conflict or not_found.

Shared drives

Several Macs editing one ParaAir Cloud drive. Every command takes PROFILE PATH (a drive path such as /projects/plan.md) or one path under the mounted drive, such as /Volumes/Team/projects/plan.md: the profile is the one mounted there, looked up in the default state folder and those the app remembers (--state-dir narrows it). All take --json; the exact shapes are in the CLI contract.

paraair connect Team --cloud-account ID --cloud-drive-name Team --conflict-copies --json   # or later:
paraair settings Team --conflict-copies on --json              # {profile, conflictCopies, mounted, appliesAtNextMount}
paraair versions /Volumes/Team/projects/plan.md --json         # [--before CURSOR] [--limit N]
paraair cat-version /Volumes/Team/projects/plan.md pv:123 > old.md
paraair restore-version /Volumes/Team/projects/plan.md pv:123 --expected-version pv:130 --json
paraair conflict-info "/Volumes/Team/projects/plan (conflict 2026-11-23).md" --json
paraair changes /Volumes/Team --follow --json                  # [--since CURSOR] [--interval SECONDS]
paraair access set /Volumes/Team/inbox --role members --level create --json
  • Conflict copies (a profile setting, off by default; a mounted drive takes a change at its next mount): when this Mac's save of a file meets a newer version from another device, the path keeps that version and this Mac's change is saved beside it as <stem> (conflict YYYY-MM-DD).<ext> (then … 2, … 3), uploaded in the same background pass. Nothing is merged, whatever the type. Without the setting the change waits for Review… (or conflicts/resolve) as before.
  • versions → {path, versions: [{version, size, createdAt, author, current, expiresAt}], nextBefore}, newest first; pass nextBefore (a number, or null at the end) as --before. author is {userId, email}, or {credential, name, createdBy: {userId, email}} for a service credential.
  • cat-version writes the version's bytes to standard output unchanged (exit 0 only when all were written; 17 when the version isn't one of the file's).
  • restore-version → {path, restoredVersion, version, size}: the old contents become a new current version. With --expected-version, exit 16 (version_conflict) when the file's current version is another; 17 when the version is no longer kept.
  • conflict-info → {path, original, baseVersion, theirsVersion, createdAt, source} (plus author from the service). baseVersion is the version the losing change was based on (null for a file new on that Mac), theirsVersion the version it lost to; source is this-mac or service (sent by the Mac that made the copy once the copy uploaded). Exit 17 for a file that isn't a known conflict copy.
  • changes --json prints one JSON object per line, flushed as it comes: with --follow, first {"following": true, "cursor": N}, then each change as the service sends it, {cursor, change, kind, path, fromPath?, rescan?, version, at, author} (change: create, write, delete, move, restore, mkdir, purge; version is null for deletes; rescan: true means list that folder's subtree again), and {"reset": true, "cursor": N} when changes after your cursor were pruned (30 days): rescan, then go on. Without --since or --follow it prints {"cursor": N}. Only changes at or under the given folder are printed. Before printing a page it drops ParaAir's own cached metadata for those paths; what macOS caches for a mounted file is refreshed as described below on macOS 27, and only at the next mount on macOS 26. Offline or with a busy service, --follow waits (up to a minute between tries) and goes on once it has printed following; without --since, failing to get the first cursor ends it.
  • access list → {path, rules: [{role | userId, email | credential, name, path, access, updatedAt}]} (rules on, above and inside the folder); access set … --level none|read|create|write → {rule}; access remove → {path, principal, removed}. Owners and admins only (exit 12 otherwise).
  • Changes from other devices also reach Finder on their own: while a ParaAir Cloud drive is mounted, the app keeps a connection open on which ParaAir Cloud says when a change was made, then reads the drive's change feed (usually within a second; while that connection is down it reads every 3 seconds while changes arrive and for a minute after, then up to a minute apart while nothing changes), drops cached metadata for what changed and creates and removes .paraair-refresh in each changed folder through the mount, so FSEvents reports the folder.
  • Changed files read as their new version on macOS 27 and later (FSKit's DataCacheHandler).
    • The kernel caches no file data for ParaAir drives. Every read reaches the engine, whose own block cache is keyed by storage version.
    • When a listing, or the refresh marker the app creates, shows that a file the kernel already knows has a new version or is gone, the extension revokes the kernel's item, so its next use reads fresh size, dates and contents.
    • The same goes for a known file or folder that a listing no longer has (renamed or deleted elsewhere). A file open on this Mac is revoked once it is fully closed. This Mac’s own uploads don’t count as changes.
    • On macOS 26 the kernel keeps a file's cached size and contents until the drive is remounted.
  • A save the drive's folder rules or the member's role refuse (403) waits for a decision like a read-only drive's change: Review… can save it as a new file (a create folder accepts that), export or discard it. It is retried at most every 15 minutes, so a rule granted later lets it through.
  • More exit codes: 15 not_mounted (the path isn't on a mounted ParaAir drive, or no known profile is mounted there), 16 version_conflict, 17 not_found.

Service credentials

A service credential is a login for a backend (a job that collects records, a relay) to one workspace, limited to the folders you give it. Any workspace's owners and admins can make them, Personal or Team, with their own sign-in on this Mac. Give each backend its own credential and only the folder it needs, never your own sign-in.

paraair cloud-drives --cloud-account ID --json                      # the drive's workspaceId
paraair credentials create --cloud-account ID --workspace WS --name "report collector" --json
paraair access set MyDrive /shared/reports --credential cred_… --level write --json   # or --level create
paraair credentials list --cloud-account ID --workspace WS --json
paraair credentials revoke --cloud-account ID --workspace WS --id cred_… --json
  1. credentials create → {workspaceId, credential: {id, name, createdAt, createdBy, lastUsedAt, revokedAt}, token}. The token, pcs_cred_….<secret>, is in this output only, once, on standard output (the text form prints it on a line of its own with a warning). The service keeps a hash and ParaAir keeps no copy, in the state folder, Keychain or logs, so it can't be shown again: pipe it straight into the backend's secret store (… --json | jq -r .token), and if it is lost, revoke the credential and make another. It is never sent again after an answer that may mean the credential was made (a timeout, a server error, a lost or malformed reply), so a failure can't leave a second credential behind; the error then says to check credentials list and revoke any you have no token for. Only a 401 (sent again with a renewed sign-in) or a 429 makes it send again; the service gives those answers before making anything. A --name that looks like a token is refused (exit 2) without being repeated. At most 20 active credentials per workspace.
  2. A new credential sees nothing. access set … --credential ID --level write lets it read and change everything at and under one folder (/shared/reports here); --level create lets it read, add files and folders and change only files it wrote, without moving or deleting anything; read only reads. Only its own rules apply (rules for members or viewers don't), and it can't manage credentials or rules or purge. --credential takes the id (cred_…); a token there is refused (exit 2) without being repeated.
  3. The backend sends the token as Authorization: Bearer on that workspace's drive routes (/v1/drives/{d}/…, see the service's API). Versions it writes show author: {credential, name, createdBy} in versions, and access list shows its rules as credential:cred_… (name).
  4. credentials list → {workspaceId, credentials: [...]}, revoked ones included, never a token; the text form prints id, active or revoked <time>, last used, name. credentials revoke --id ID → {workspaceId, id, revoked}: the token stops working at once and the credential's folder rules are deleted in every drive of the workspace. Revoking twice succeeds.

Exit codes: 11 the account isn't signed in on this Mac, 12 not an owner or admin of the workspace, 14 the account isn't in that workspace, 17 the workspace has no credential with that id.

Team members

Owners and admins of a ParaAir Cloud workspace add, re-role and remove its members with their own sign-in; the service's operator isn't involved. WS is a drive's workspaceId from cloud-drives. All take --json.

paraair members list --cloud-account ID --workspace WS --json
paraair members add --cloud-account ID --workspace WS --email person@example.com --role member --notify --json
paraair members role --cloud-account ID --workspace WS --email person@example.com --role admin --json
paraair members remove --cloud-account ID --workspace WS --email person@example.com --json
  • list → {workspace: {id, name, kind, plan, seats, seatsUsed}, members: [{userId, email, role, addedAt, status}]}. status is active (signed in since being added), invited (not yet) or disabled.
  • add → {member, added, notified}: the person is a member at once, as member unless --role says otherwise. An address without an account gets one and can then sign in with it. With --notify, ParaAir Cloud emails a newly added person an invitation that says how to start, and notified is true. Without it, or when the service sent nothing, notified is false and the text output says to tell them to sign in with that address. A service that predates --notify ignores it, so notified stays false. added is false when they already were a member with that role; with another role it exits 1 (use role). It also exits 1 when no seat is free.
  • role → {member}; remove → {userId, email, removed}. Both find the member by email and exit 17 (not_found) when there is none. A removed member loses access to the workspace's drives on their next request.
  • Only owners make owners. Admins can't change or remove an owner, and members and viewers can't manage members (exit 12). The last owner can't be demoted or removed (exit 1). A workspace the account isn't in exits 14.
  • add and remove are sent once. When the answer is lost (a server error or a dropped connection) they exit 1 with an error ending in "check members list", since the change may have happened: run members list before trying again.

In the app, a team drive's Storage Settings has a Members section with the same routes and rules: its owners and admins see the workspace's seats ("4 of 5 seats used") and its members, invite by email (with or without the invitation email), change roles and remove people; members and viewers see who manages it. Your own row isn't changed there, and admins can't change or remove owners or make new ones. Invitations and removals are sent once; when the answer is lost the list reloads and the app says to check it before trying again. A full Team with a live subscription asks before an invitation adds a paid seat (the service bills it at once); any other full workspace offers no invitation.

Storage, cache and write semantics

flowchart LR
  Finder[Finder / Quick Look / applications] --> FS[FSKit extension]
  CLI[CLI] --> Engine[Swift cache and journal]
  FS --> Engine
  Engine --> JuiceFS[Pinned JuiceFS library]
  JuiceFS --> Metadata[Local SQLite or shared metadata service]
  JuiceFS --> Objects[Cloud S3-compatible bucket or optional NAS endpoint]
Loading
  • JuiceFS owns the remote managed layout. Import ordinary files through a mounted volume; do not put them directly into JuiceFS's object prefix.
  • The default read cache budget is 1 GiB, block size 1 MiB, journal ceiling 4 GiB, and free-space reserve 5 GiB. Native memory buffers are bounded separately. Read cache, pinned blocks and pending writes have separate accounting. Pins can exceed the evictable-cache budget but respect free-space reserve. Interrupted pins remain visibly incomplete.
  • Directory listing reads metadata only. Reads fetch individual blocks and use a one-second metadata cache; native prefetch and sequential readahead are disabled for the first measurable baseline. JuiceFS's object block boundaries can amplify a small read. There is no automatic whole-file warmup.
  • A successful write means its immutable local payload and SQLite journal are persisted. SQLite FULL synchronization and macOS full-sync requests are used. Explicit fsync/filesystem synchronization means remote publication completed, or returns an error. A filesystem synchronization doesn't resend a file whose upload failed before its retry time; it returns the error instead. A mounted uploader retries pending files in the background.
  • Publication seals a transaction, clones the remote base without downloading the whole file, applies changed extents, fsyncs, and atomically renames the stage. A transaction marker recognizes retries after a lost reply. A subsequent edit of the same file waits for that sealed transaction to resolve. Independent publication uses a separate connection and does not hold the local state lock throughout upload.
  • Cache eviction never deletes pending writes. A journal limit or low free-space condition rejects a new write before acknowledgment. Shrink/extend operations zero the newly exposed region; deleted data is not resurrected.
  • Cooperative clients take a distributed mutation lock and compare file versions. A stale edit becomes a retained conflict instead of silently overwriting the winner. Conflicts, and changes storage refuses because another Mac took over the drive, wait for a decision: the home window's Review… button (or paraair conflicts and paraair resolve) saves this Mac's copy as a new file beside the original, exports it to a folder outside the drive, or discards it. Until then the file and its folders can't be renamed or removed. A partially edited copy still shares bytes with the version it was based on; when neither the cache nor storage has that version any more, only the version in storage can be kept. Automatic merge is not implemented; a drive with conflict copies on saves the losing change beside the file at once instead (see Shared drives). Ordinary external JuiceFS writers must be quiesced because they do not acquire this adapter's mutation lock.
  • macOS housekeeping stays on this Mac: Finder's .DS_Store, AppleDouble ._name files (how macOS stores extended attributes such as Finder tags and quarantine on a volume without native ones) and the .paraair-refresh name live only in the local journal and never upload, so Finder tags do not sync between Macs. Creating .fseventsd or .Spotlight-V100 at the root is refused; macOS works without them. Copies of any of these already in storage are hidden. See Housekeeping.swift.
  • Completed pins describe an offline snapshot. Observed remote changes invalidate completion; re-pin to refresh. Offline operation uses previously cached metadata and blocks. Uncached data and new namespace operations require connectivity.
  • status --json reports allocated cache/pin/journal/state bytes separately from logical sizes. objectReadBytes and objectGetRequests count observed object payload transfers through this client, excluding metadata traffic and protocol overhead; a crash mid-request may undercount. Finder's allocated-size field cannot by itself prove total SSD usage.

The initial implementation intentionally serializes metadata/cache work and each pin operation. Large directory scans or pins can delay other commands. Repeated edits of one file can accumulate journal extents until upload, reaching the configured bound. Parallel prefetch, journal compaction and directory-index scaling need workload measurements before adding complexity.

Cloud storage and optional NAS deployment

Cloud storage is the primary acceptance path. Validate Cloudflare R2 Standard first as the candidate default for frequent streaming: its pricing includes free internet egress, with storage and request charges. Keep Backblaze B2 as a lower storage-cost alternative with an included egress allowance, and Amazon S3 Standard as a regional compatibility reference. Use their S3 APIs and ordinary online storage rather than a tier requiring an archive restore. The existing R2 connection has the bounded validation described below; the other providers remain interoperability targets. Measure first reads, distant seeks, previews, uploads and recovery on an actual cloud bucket before recommending a provider on speed. NAS availability must not block this work.

The pinned JuiceFS documentation contains an older warning about R2's unordered object listings. Its source already disables the sorted-list requirement for gc, fsck and destroy; the v1.4.0 release notes describe the unordered-listing fix for maintenance operations. Do not treat the old warning as a demonstrated current blocker. Remote compatibility and backup/restoration still require validation.

This client connects to an existing JuiceFS metadata URL; it does not take an S3 bucket URL as its filesystem root. For the first single-Mac cloud test, use local SQLite metadata inside the ParaAir state directory with cloud object storage. This needs no NAS or separate metadata server. The database is authoritative filesystem metadata, not an evictable cache: back it up and test restoration alongside the referenced cloud objects. For multiple Macs sharing a volume, use a supported shared metadata service such as PostgreSQL or Redis. See JuiceFS metadata options.

Separate storage connection manager

R2 Standard's published monthly free allowance, checked October 2, 2026, is 10 GB-month of storage, one million Class A requests and ten million Class B requests. Direct R2 download bandwidth is free; the request allowance still applies. Infrequent Access does not receive these free allowances. Cloudflare pricing. The live smoke test uses only generated data and enforces cumulative limits of 64 MiB uploaded payload, 128 MiB downloaded payload and 200 object requests across its native handles. These are test-run limits, not an account-wide billing cap. The initial account dashboard showed 0 B stored, zero Class A/B operations and no billable usage.

Open Connections… in the menu bar app. Authorization and secure key entry happen there; the CLI consumes a saved connection ID. The app renews expiring credentials every 30 seconds while running. Active storage backends detect replacement credentials between operations, verify the same metadata volume identity, and keep cumulative transfer counters. Offline failures preserve credentials and pending writes. Disconnect blocks future remote operations; reconnect must match the same provider, account, bucket and region.

Provider Implemented connection method Prerequisite / verification limit
Cloudflare R2 External-browser Authorization Code + PKCE, account/bucket selection, Keychain refresh Live sign-in, shared Keychain access, bounded 32 MiB fixture test, mounted range integrity, Finder listing and sidebar navigation verified
Amazon S3 AWS IAM Identity Center device browser sign-in, explicit account and role, renewable role credentials Organization SSO start URL/region and S3-enabled role; ordinary consumer AWS login is not an Identity Center setup
Backblaze B2 Native secure S3 key entry, regional endpoint validation, signed bucket HEAD Existing bucket and application key with suitable read/write permissions; HEAD checks access, not write authorization
Custom S3 / NAS Native secure S3 key entry, explicit HTTPS origin, bucket and signing region Trusted TLS endpoint; supports private/Tailscale hosts; no automatic TLS bypass or claimed vendor-wide compatibility

After verifying a connection, Create drive explicitly initializes a fresh local SQLite metadata database and a random managed object prefix, then attempts mounting and sidebar registration. Existing bucket objects are not imported or deleted, and there is no automatic bucket creation. The R2 form also offers Create Standard bucket, which requires an explicit confirmation naming the account, bucket and provider charges. R2 activation/billing setup still happens in Cloudflare. The database plus cloud objects are both required for recovery, so the drive backs its database up into its own bucket: after changes reach storage (two minutes after they stop, or 15 minutes after the first one, and at most once an hour, JuiceFS's own default), the mounted drive uploads a JuiceFS metadata dump to <prefix>/meta/dump-<UTC time>.json.gz, without credentials or trash, and prunes older dumps with JuiceFS's rotation (all from the last 2 days, then daily for 2 weeks, weekly for 2 months, monthly for 2 years). status shows the last backup and any failure. Connections made with Cloudflare sign-in cannot list objects, so they keep only the newest dump, and their 8 MiB object limit fails the backup of a very large index (an R2 API token has neither limit). Each backup also writes <prefix>/meta/latest, naming the newest dump. To open the drive on another Mac, or on this one after losing its state folder, add the same connection there and run paraair recover PROFILE --connection ID --volume NAME in an empty state folder (paraair stored-drives --connection ID lists the drives in a bucket; Cloudflare sign-in connections cannot list, so take the folder name from the bucket). It loads the newest dump into a new local database, so changes made after that backup, up to about an hour, are missing. juicefs load reads the same dumps. One Mac writes a drive at a time, because each Mac's database hands out the IDs that name data objects: the drive's owner is recorded at <prefix>/meta/owner, recover refuses a drive another Mac used within a day unless --take-over is given, and a Mac that finds another one owns its drive refuses writes and backups with EROFS (rechecking at most every 10 seconds while writing), keeping its unsaved changes. In the app, the Create Drive dialog offers Use Existing Drive…, which lists the bucket's drives by their Finder names (or asks for the folder on a Cloudflare sign-in connection) and asks before taking a drive over; a Mac that lost its drive shows Read-only on this Mac and counts the changes that won't upload. Advanced shows when the index was last backed up, and a notice appears while backups fail. Use a separate state directory for each Finder drive; the native unary FSKit container supports one profile per mount resource. Standard CLI-only profiles can still be stored together when not mounted.

Cloudflare developer registration

A real client ID is required before a working OAuth link can be generated. A dashboard login link does not connect the app. The development registration fields are:

  • Client name: StreamDrive Development; private visibility for same-account testing.
  • Response type: code; grant types: authorization_code and refresh_token.
  • Token endpoint authentication: none; PKCE: S256.
  • Exact callback: http://127.0.0.1:49731/oauth/callback.
  • Required permission scopes: account-settings.read, workers-r2.write; the authorization request also requests offline_access for renewal.

Register using Cloudflare's OAuth client page, following its public PKCE client documentation. Enter the resulting public client ID in Connections → Development OAuth registration. There is no client secret. Public distribution additionally needs Cloudflare client-domain verification; end users should receive the registered client ID bundled in a release, rather than register their own app. The development build reads a nonsecret state-directory override. Set STREAMDRIVE_CLOUDFLARE_CLIENT_ID when running scripts/build-app.sh to bundle the registered public client ID for every user of the release; no developer registration entry is then needed on their Macs.

The live OAuth scope inventory on October 2, 2026 included R2 access but no Account API Tokens Write scope. This implementation therefore does not claim to mint bucket-scoped S3 keys from OAuth. R2 uses the authenticated REST object API. The OAuth grant is account-wide R2 permission; application-level bucket binding is not a server-enforced bucket-only grant.

The R2 adapter fetches a complete bounded JuiceFS chunk (normally up to 4 MiB, hard ceiling 8 MiB), then serves the requested range. It does not download a full large file and does not claim undocumented server-side Range or HEAD behavior. Metrics count all object bytes fetched, including this amplification. REST API rate limits and sustained/concurrent WAN performance need further measurement. This new cloudflare-oauth format requires ParaAir's bridge; stock JuiceFS maintenance commands do not know this driver, and its object listing/copy/multipart maintenance operations are not implemented. Back up the bucket and metadata using provider-aware procedures.

Live validation on October 2, 2026 completed registration, consent, PKCE token exchange, account/bucket discovery and Keychain persistence. After explicit approval, the private Standard bucket streamdrive-test-20261002 was created. The standalone test helper successfully used the saved connection through Keychain without exporting credentials. Its 32 MiB synthetic file passed partial reads, distant seeking, a cached read and full SHA-256 verification. The run uploaded 33,554,432 bytes and downloaded 41,945,472 response-body bytes (40 MiB of file chunks plus 2,432 bytes of API replies), with 18 object requests: eight PUTs and ten GETs. Conservative download reservations totaled 84,410,386 bytes, below the 128 MiB cap. No remote deletion was performed. The dashboard still reported $0 billable usage immediately afterward, while its operation/storage counters had not yet caught up with the test.

Live R2 check Observed result
Upload 32 MiB and wait for remote acknowledgment 1.768 s
Metadata directory listing 1.36 ms; zero object requests/bytes
First 64 KiB read 522 ms; one 4 MiB object fetched
Distant 64 KiB seek near the end 399 ms; one more 4 MiB object fetched, still only 8 MiB fetched from a 32 MiB file
Repeat first range from ParaAir cache 1.43 ms; zero additional object requests/bytes
Full integrity read 4.011 s; eight additional GETs; SHA-256 matched

This is one run, not a playback or Finder benchmark. The strict test transport uses fresh HTTP/1.1 connections without keepalive/replays; provider caches are uncontrolled. The ordinary client retains connection reuse. Limits apply to this test process, not all account activity. The report is report.json; its directory retains local SQLite metadata, the generated payload and a 2 MiB read cache. The bucket retains 32 MiB of test chunks, safely below the initially unused free storage allowance. Nothing repeats automatically.

Build the runner with scripts/build-connected-smoke.sh; invoking the resulting connected-smoke without --run is a no-network dry run. Live mode requires an explicit saved connection ID, fixes the 32 MiB file and 64/128 MiB plus 200-request caps, and has a 300-second watchdog. It refuses an older native library without pre-dispatch reservation metrics. Each new process is a new test budget: review account headroom and previous runs before deliberately repeating it.

The app opens the default external browser and also displays a read-only Browser sign-in link with a Copy link button while authorization is pending. Disable Open default browser automatically before sign-in to open the link only in a chosen browser profile. Use that original authorization link in the profile signed into the desired account. A redirected Cloudflare login-challenge URL is tied to its originating browser session and must not be transferred between profiles. The original link clears on completion, cancellation or failure and is not logged or saved. Failed bucket discovery is distinguished from a successfully loaded empty list; HTTP 403 suggests checking R2 activation and account permissions without discarding the completed sign-in. All 16 focused provider tests passed after this live-discovered onboarding correction.

For the optional NAS backend, place a supported metadata service and a JuiceFS-compatible S3 endpoint near the disks. Reach both through Tailscale DNS/IP and keep credentials outside CLI history. Avoid relayed Tailscale paths for throughput testing and record direct/relay status, round-trip latency, uplink speed, object service and disk configuration. An ordinary SMB share is not the backend used by this adapter.

The current native build includes file, S3 and bounded cloudflare-oauth object adapters and uses supported metadata drivers from the pinned JuiceFS release. It rejects unsupported sharded, nondefault/multiple-tier, RSA-encrypted or Kerberos configurations. An S3-compatible endpoint is a compatibility target, not a guarantee that every vendor's semantics work. See native engine details and backup tests.

For a coherent backup, quiesce writers and capture both metadata and its referenced objects. Object-only backup cannot reconstruct names and filesystem metadata. Local tests cover metadata dump plus object-copy restoration into fresh metadata; production backup procedures must be tested against the actual provider and its versioning/retention settings.

Acceptance matrix and remaining gates

Area Local evidence Remaining validation
Streaming Sparse and nonsparse range/seek tests with object counters Large-video playback and distant seeking through signed FSKit
Finder Enabled FSKit mount, byte-exact range reads, working bookmark/listing and sidebar navigation; unknown capacity displays -- available Actual Finder copy, previews, media applications and clean-Mac installation
Quick Look Read-range implementation and benchmark harness JPEG, PDF and video previews with before/after object-byte counters
Cache/offline Eviction, pin retention, version refresh, offline cached reads, allocated-byte tests Real disk-pressure soak and large folder performance
Writes/recovery Journal reopen, lost-ack replay, failed stage, conflicts, shrink/extend and multiple clients Forced process/power interruption during live mounted app workflows
Remote storage Local objects plus live R2 Standard 32 MiB upload/range/cache/integrity pass Larger R2/app workflows, B2, AWS S3 Standard; optional NAS + Tailscale later
Packaging Actual FSKit extension and app build; ad-hoc signature verification Developer signing/provisioning, Keychain access, activation and distribution
Speed ParaAir Cloud measured on 2026-11-26 through the mounted drive: first byte, distant seek, video seek, sequential reads, Quick Look and uploads, with medians and spread (docs/speed.md) Uploads of large files stall on the service's per-request CPU limit; a direct-route run; bring-your-own R2 (sign-in ended); Space, Helumi and LucidLink side by side (accounts needed)

Validation on October 2, 2026: the full connection suite had 119 Swift tests pass, one optional benchmark skipped, zero failures (120 total); the subsequent focused provider suite passed all 16 tests. All 32 native Go tests and four Python harness checks pass; CLI acceptance and direct FSKit callbacks pass. The live runner also passed its dry-run/six argument checks and the R2 test above. The release host/extension built and the nested ad-hoc signature verified. Native budget tests cover retries, concurrent dispatch/read bounds and counters surviving reopened handles. Provider regression tests use mock transports; native credential-rotation tests use local SQLite. Logs are in .runtime/swift-final-connections-tests.log, .runtime/build-app-connections.log and .runtime/build-app-r2-budget.log. Independent review findings about replacement identities, rename semantics, backend identity binding, pin version cleanup, upload lock scope and pre-dispatch download reservations were corrected. Native initialization cleanup and release-linked ASCII profile-name validation also have regression coverage.

Hard links, symlinks, xattrs/resource forks, ownership changes and chmod are not implemented. Do not use this build for Photos libraries, databases, Git working copies, Time Machine or other workloads requiring full APFS/POSIX semantics without dedicated compatibility work.

Stage 1's standard JuiceFS mount and rclone comparison requires those tools/mounts to be supplied. Use the same test file on already mounted paths:

python3 scripts/compare-mounts.py \
  --candidate paraair=/path/to/paraair/video.mp4 \
  --candidate juicefs=/path/to/juicefs/video.mp4 \
  --candidate rclone=/path/to/rclone/video.mp4

Add --quick-look for native thumbnail generation, --video-seek SECONDS for ffmpeg decoding one frame there, and --sequential for a whole cold-then-warm read; optional --cli, --profile and --state-dir capture ParaAir counters around each operation. --rounds N --evict repeats the measurement N times, each from an emptied ParaAir read cache and Quick Look cache, and reports the median and spread; reads bypass the macOS page cache unless --os-cache is given. Keep pins out of the sample. The harness does not install, mount or alter supplied files. scripts/measure-upload.py times uploads of freshly generated files into a mounted drive, and scripts/measure-path.py measures what the network route itself allows. Results, method and caveats: docs/speed.md. No Helumi-equivalent startup-speed claim is made.

Generated native caches, Swift/Xcode artifacts and local reports stay under ignored .build-native, .build, native/lib and .runtime. No simulator, Docker image, user credential or remote test volume is created by local validation.

Retained build directories: approximately 1.9 GiB in .build-native and 1.4 GiB in .build, plus the native library and existing generated 32 MiB fixture, metadata and read cache. Temporary callback/icon-compilation fixtures were removed; no simulator, container or result bundle was created by the October 8 checks. Product PNG/ICNS/SVG assets add approximately 79 KiB under macOS/Resources with copies in the signed app; previous artwork and provenance remain in .runtime/brand-history/20261008-ribbon/ (about 4 MiB) and .runtime/brand-history/20261008-polygon-a/; small candidate previews remain in .runtime/icon-directions-20261008/. Public Mounter-profile snapshots and small diagnostic logs/previews remain in ignored build/runtime directories. The signed app remains in the project build directory. Its enabled extension mounts the existing R2 drive natively at /Volumes/ParaAir with zero pending uploads; earlier mounted range reads and shared credentials pass. Finder's favorite still fails to resolve, and the app now prevents further broken insertion. See macOS signing and credential status. No commit or push was made.

About

ParaAir: a macOS streaming drive with Finder integration, cloud object storage, and optional self-hosted storage.

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages