Weave SDK

19-module Swift SDK -18 standalone, Swift 6 Strict Concurrency

19 focused Swift packages with near-zero inter-dependencies.

  • •NetWeave: networking + API layer + session management
  • •ArchWeave: MVVM-C coordinator architecture
  • •UIWeave: complete design system with components
  • •DataWeave: cache/Keychain/file persistence
  • •RevenueWeave: StoreKit 2 subscriptions, AuthWeave: auth + biometrics
  • •Swift 6 Strict Concurrency, all Sendable, zero data-race warnings
  • •TraceWeave: network mocking, environment switching, WebSocket monitoring
  • •iOS 17+, macOS 14+, watchOS 10+
Private RepositoryThis is a private repository. Its source code on GitHub is visible once the owner grants you access.
19
Modules
18
Standalone
MIT
License
6.0.0
Version
Stable
Status

Tech Stack

Swift 6SwiftUISwift Package ManagerStrict ConcurrencyProtocol-Oriented

How It Works

Ecosystem
🍎 Weave · iOS
🤖 Warp · Android (14 modules)
🌐 Loom · React
🔧 Spool · Backend (ErrorCode source)
Swift 6
Strict Concurrency
18/19
Standalone modules
iOS 17+
macOS 14+ · watchOS 10+
Modules (19)
📝
LogWeave
os.Logger, categories, privacy
🌐
NetWeave
HTTP, SSE, WebSocket, sessions
→ LogWeave
🏗
ArchWeave
MVVM-C, Coordinator, deep links
🧭
ArchWeaveNavigation
Codable navigation tree, typed flows
🎨
UIWeave
SwiftUI design system, onboarding
💾
DataWeave
Cache, Keychain, UserDefaults
🧷
DataWeaveTestSupport
Test-only: frozen-fixture format checks
🔑
AuthWeave
Apple Sign In, JWT, biometric
💰
RevenueWeave
StoreKit 2 subscriptions
🔍
TraceWeave
Shake-to-inspect debug overlay
📊
AnalyticsWeave
Provider-agnostic analytics
🌍
LocaleWeave
Runtime locale switching
🔔
NotificationWeave
Local + push notifications
⚙
RemoteConfigWeave
Feature flags + remote config
🔧
UtilWeave
Date, FileManager, permissions
🧩
MacroWeave
@DependencyRegistrable macro
🧪
FailureWeave
Testable fatalError and precondition
💱
FormatWeave
Per-currency formatting rules
🪪
SessionWeave
Session lifecycle with observers

Features

Modular Architecture

19 focused packages with opt-in imports.

  • •18 of 19 depend on no other Weave module
  • •From minimal (ArchWeave) to standard (+Net +UI +Data) to full stack
  • •Each module has its own README with full API reference

Swift 6 Strict Concurrency

Zero data-race warnings from the ground up.

  • •All types are Sendable
  • •ViewModels use @MainActor, services use actor isolation
  • •Fully structured async/await flows
  • •No legacy dispatch queues or completion handlers

NetWeave -Networking + API Layer

Complete networking stack.

  • •HTTP requests, SSE streaming, WebSocket support
  • •Session management, error mapping, structured logging via LogWeave
  • •Endpoint-based API design with typed responses
  • •Interceptors, metrics collection, request/response logging

ArchWeave -MVVM-C

Coordinator-driven MVVM-C architecture.

  • •BaseViewModel, NavigationController, ViewStateProtocol
  • •Type-safe navigation and deep link handling
  • •Coordinator lifecycle management
  • •The backbone that all other modules plug into

UIWeave -Components + Design System

Complete design system with production-ready components.

  • •Color palettes, typography scales, spacing tokens, responsive layout
  • •Buttons, chat bubbles, popups, inputs, cards
  • •All theme-aware with dark mode and Dynamic Type
  • •Image processing and onboarding flows

DataWeave -Persistence Layer

Unified data persistence layer.

  • •Actor-based in-memory cache with configurable TTL and eviction
  • •File-based JSON storage for settings and app state
  • •Keychain wrapper with biometric-gated access
  • •UserDefaults convenience, fully thread-safe without locks

AuthWeave -Auth + Biometrics

Protocol-based auth layer.

  • •Apple Sign In, JWT token management, extensible providers
  • •Biometric gate: Face ID, Touch ID, Optic ID (visionOS)
  • •Add OAuth, SAML, or custom auth without changing the app layer

RevenueWeave -Subscriptions

Provider-agnostic subscription SDK.

  • •StoreKit 2 implementation
  • •Product fetching, purchase flow, receipt validation
  • •Entitlement checking and subscription lifecycle
  • •Swap backend (RevenueCat, custom server) without changing app code

TraceWeave -Debug Overlay

Shake-to-inspect debug overlay for development builds.

  • •Network request inspector and structured log viewer
  • •Performance metrics and memory usage
  • •Crash reporting
  • •Invisible in production, invaluable during development

LogWeave -Structured Logging

Built on os.Logger with structured output.

  • •Categories, privacy levels, and log filtering
  • •Subsystem-based organization with metadata support
  • •Configurable levels: debug/info/warning/error
  • •The only module other modules depend on

AnalyticsWeave

Provider-agnostic analytics abstraction.

  • •Pluggable services - swap Firebase, Mixpanel, or custom providers
  • •No app code changes when switching providers

LocaleWeave

Runtime language switching.

  • •Bundle swapping - change language without restarting
  • •Supports RTL layouts

NotificationWeave

Notification lifecycle management.

  • •Local and push notifications with deep link routing
  • •Schedule, present, and handle notification actions

RemoteConfigWeave

Feature flags and remote configuration.

  • •Provider-agnostic interface
  • •Caching with local overrides
  • •Runtime toggle without redeploy

UtilWeave

Common Swift utilities.

  • •Date extensions, number formatting
  • •FileManager utilities, permission helpers
  • •App rating prompt, zero dependencies

Production Resilience Pack

Opt-in primitives that turn the SDK into something you can ship behind a paid product.

  • •NetWeave -CertificatePinner protocol with CertificateHashPinner (DER SHA-256) and PublicKeyPinner (SPKI SHA-256, RSA 2048/4096 + EC P-256/P-384). URLSessionAdapter convenience init wires a PinningSessionDelegate.
  • •LogWeave -production-safe CrashReporter that installs NSException + POSIX signal handlers and fans captures out to any number of CrashSink conformers (Sentry/Crashlytics adapters slot in without LogWeave depending on those SDKs).
  • •ArchWeave -StateRestorer<Value> actor + View.preserveState(with:snapshot:) modifier; state is auto-saved on ScenePhase transitions and restored after a system kill.

TraceWeave -Mocking, Environments, WebSockets

The shake-to-inspect overlay drives traffic as well as recording it.

  • •Network mocking: a rule editor and record-replay serve stubbed responses from the URLProtocol layer
  • •Environment switching: register presets at launch, remap hosts, path prefixes and headers, and pick one from the Env tab without a rebuild
  • •WebSocket monitoring in its own Sockets tab
  • •DEBUG-only, like the rest of TraceWeave

Privacy & terms