SPB Git

Repository Public

spbmaclustr-storage-ios

MacLustr Storage Node: native iOS/iPadOS app that lends part of a device's storage to the MacLustr cluster as an opportunistic node, with its storage coordinator (storage.spboucher.ai) and the MSP/1 protocol: encrypted content-addressed fragments, possession proofs, drain.

13 entries at the root
History

Latest commit docs(readme): keep live counters in badges only, so the generated block is stable 5091fb3

NameLast commitUpdated
docs Documentation: README, CLAUDE.md, MSP/1, architecture, integration, iOS limits, test report,...
MacLustrStorageNode chore: standardize SP Boucher source headers and attribution
MacLustrStorageNode.xcodeproj Unit tests of the storage engine and protocol helpers; release scripts; UI fixes
MacLustrStorageNodeTests chore: standardize SP Boucher source headers and attribution
Scripts chore: standardize SP Boucher source headers and attribution
server chore: standardize SP Boucher source headers and attribution
.gitignore Documentation: README, CLAUDE.md, MSP/1, architecture, integration, iOS limits, test report,...
.spb-source-governance.toml chore: standardize SP Boucher source headers and attribution
CHANGELOG.md Documentation: README, CLAUDE.md, MSP/1, architecture, integration, iOS limits, test report,...
CLAUDE.md chore: standardize SP Boucher source headers and attribution
project.yml chore: standardize SP Boucher source headers and attribution
README.md docs(readme): keep live counters in badges only, so the generated block is stable
SECURITY.md Documentation: README, CLAUDE.md, MSP/1, architecture, integration, iOS limits, test report,...
README.md View source

# MacLustr Storage Node

storage.spboucher.ai platform author

Node.js Python Swift iOS XcodeGen Shell

commits last-commit activity language languages size branches tags license clones

Tracked files lines of code languages test files docs screenshots

# Screenshots

ipad dashboard
ipad dashboard
iphone dashboard
iphone dashboard
ipad onboarding
ipad onboarding
20 mobile storage real coordinator local
20 mobile storage real coordinator local
iphone activity
iphone activity
iphone allocation
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_opportunistic class). 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

bash
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 --apply

Debug 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

text
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.md

# Languages

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

Clone maclustr-storage-ios

Anonymous clone and fetch. Pushing requires the owner's personal access token.

Snapshot of main

Files main
Menu

Theme