MacLustr Storage Node
Screenshots
![]() ipad dashboard |
![]() iphone dashboard |
![]() ipad onboarding |
![]() 20 mobile storage real coordinator local |
![]() iphone activity |
![]() iphone allocation |
Every device becomes storage. A native iOS / iPadOS app with one function: lend part of an iPhone's or iPad's free storage to the MacLustr cluster. The device receives encrypted fragments of cluster data, keeps them in its private container, proves it still has them, and returns them on request. It cannot read them.
This repository holds the app, the storage coordinator it talks to, the protocol between them and the documentation.
| App | MacLustrStorageNode/ — Swift, SwiftUI, iOS 16+, iPhone and iPad, no third-party code. Bundle ai.spboucher.maclustr.storage |
| Coordinator | server/ — storage coordinator and mobile gateway, https://storage.spboucher.ai. Node ≥ 24, no dependency |
| Protocol | MSP/1 — docs/MSP-1.md |
| Dashboard | "Mobile Storage Nodes" in MacLustr Command Center (clustr.spboucher.ai, repository maclustr-command-center) |
State on 2026-12-01
Working, verified with the real app in the iOS simulator against the production coordinator: pairing, capacity reporting, storing and returning fragments with matching SHA-256, recovery of a lost stable copy from a device, detection of corruption, drain, emergency release, revocation, coordinator restarts. Build 1.0.0 (1) is on TestFlight (internal).
Not yet done: any test on a physical iPhone or iPad. Behaviour under real iOS suspension, screen lock, reboot, cellular, heat and the local-network path is implemented and untested. See docs/TEST-REPORT.md, which lists every case and its real status, and docs/IOS-LIMITS.md for what iOS allows.
How it works, in short
- The cluster encrypts (AES-256-GCM) and cuts objects into fragments named by their SHA-256, and always keeps its own
stable copy. Phones hold additional copies (
mobile_opportunisticclass). A phone may disappear at any time without loss. - The phone opens every connection (works behind NAT and on cellular). Requests are signed by a device key generated in the Secure Enclave. On the cluster's Wi-Fi the app talks to the coordinator directly (Bonjour + pinned certificate).
- The user chooses a quota; a reserve (larger of 20 GB and 10 % of the device) is never touched; nothing is pre-allocated.
- The coordinator can ask four things only: store, prove, return, delete.
Documents
| docs/ARCHITECTURE.md | audit of MacLustr, components, storage classes, engine, erasure-coding study, known limits |
| docs/MSP-1.md | the protocol |
| docs/API.md | coordinator admin API |
| docs/INTEGRATION.md | deployment, operations, mlstore, Apple release |
| docs/IOS-LIMITS.md | iOS constraints and the app's modes |
| docs/TEST-REPORT.md · docs/BENCHMARKS.md | what was tested and measured, and what was not |
| SECURITY.md · CHANGELOG.md · CLAUDE.md |
Screenshots: docs/screenshots/ios/ (simulator, real data from the production coordinator) and
docs/screenshots/dashboard/ (fixtures, labelled).
Build and test
xcodegen generate
xcodebuild -project MacLustrStorageNode.xcodeproj -scheme MacLustrStorageNode -destination 'platform=iOS Simulator,name=iPhone 17 Pro' test
node server/test/e2e.ts # coordinator, 54 checks
Scripts/release.sh all && python3 Scripts/testflight.py --applyDebug builds accept launch arguments for scripted runs on the simulator: -PairingCode <code> -QuotaGB <n> -Tab <0-3> -Station YES.
Author: Simon-Pierre Boucher — contact@spboucher.ai
Repository layout
maclustr-storage-ios/
├── docs/ 20 files documentation
│ └── screenshots/ 13
├── MacLustrStorageNode/ 33 files
│ ├── App/ 3
│ ├── Core/ 12
│ ├── Features/ 8
│ ├── Models/ 1
│ ├── Resources/ 8
│ └── Services/ 1
├── MacLustrStorageNode.xcodeproj/ 3 files
│ ├── project.xcworkspace/ 1
│ └── xcshareddata/ 1
├── MacLustrStorageNodeTests/ 1 file
├── Scripts/ 10 files scripts
│ ├── __pycache__/ 1
│ └── portal/ 4
├── server/ 14 files server
│ ├── bin/ 1
│ ├── scripts/ 2
│ ├── src/ 8
│ └── test/ 2
├── CHANGELOG.md
├── CLAUDE.md
├── project.yml
├── README.md
└── SECURITY.mdLanguages
| Language | Files | Lines | Share |
|---|---|---|---|
| Swift | 27 | 5 471 | █████████████ 66.5 % |
| TypeScript | 11 | 2 138 | █████ 26.0 % |
| Shell | 5 | 320 | █ 3.9 % |
| Python | 2 | 175 | █ 2.1 % |
| JavaScript | 2 | 121 | █ 1.5 % |
Counted on git-tracked files, excluding dependencies and generated files.
Repository facts
| First commit | 2026-12-01 |
| Contributors | 1 |
| Default branch | main |
| Tracked files | 88 |
| Website | https://storage.spboucher.ai |
| Topics | ios swift swiftui distributed-storage maclustr storage-node typescript protocol |
| Clone | git clone https://git.spboucher.ai/maclustr-storage-ios.git |
Author
Simon-Pierre Boucher · spboucher.ai · contact@spboucher.ai





