What is Prism?
Prism is a full-stack Swift ecosystem built entirely on Apple frameworks — zero third-party dependencies. 10 modules covering everything from SwiftUI components and state management to HTTP servers, ML/AI, and native platform APIs.UI & Design System
100+ SwiftUI components, design tokens, theming, charts, forms, and accessibility.
Architecture
Composable state management with stores, reducers, effects, middleware, and navigation.
Server
HTTP server, routing, database, GraphQL, MCP, WebSocket rooms, middleware, and cron.
Intelligence
On-device ML, Apple Intelligence, NLP, RAG pipelines, and structured output parsing.
Hello World
- iOS App
- Server API
- Networking
- Storage
Why Prism?
Zero Dependencies
No SwiftNIO, no Alamofire, no third-party anything. Your
Package.resolved stays clean. Your builds stay fast.Swift 6.3 Native
Built from the ground up with strict concurrency. Actors,
Sendable, structured concurrency — designed for it.Full-Stack Ecosystem
10 modules spanning server, client, architecture, networking, ML, and platform APIs. One framework, one import.
How does Prism compare?
- vs. Client Frameworks
- vs. Server Frameworks
| Feature | Prism | TCA | Raw SwiftUI |
|---|---|---|---|
| State Management | PrismStore — composable, middleware, time-travel | ComposableArchitecture | Manual ObservableObject |
| UI Components | 100+ built-in, design tokens, theming | None | None |
| HTTP Client | Built-in, type-safe endpoints, cache, retry | None | URLSession |
| Storage | 6 backends, encryption, compression, migration | None | UserDefaults / SwiftData |
| Security | Biometrics, keychain, cert pinning, JWT | None | Manual |
| ML/AI | CoreML, Apple Intelligence, RAG | None | None |
| Gamification | Challenges, streaks, leaderboards | None | None |
| Dependencies | 0 | 3+ | 0 |
The Ecosystem
Prism is organized into 10 focused modules that work together or independently:- Client
- Server
| Module | Role |
|---|---|
| PrismUI | 100+ SwiftUI components, 4 themes, design tokens |
| PrismArchitecture | Store, reducer, middleware, router (UDF) |
| PrismNetwork | HTTP client, WebSocket, endpoints, cache, retry |
| PrismFoundation | Entities, logging, analytics, locale, resources |
| PrismSecurity | Biometrics, keychain, encryption, cert pinning, JWT |
| PrismStorage | UserDefaults, Disk, Memory, SwiftData, Keychain |
| PrismIntelligence | CoreML, Apple Intelligence, LLM, RAG, NLP |
| PrismGamification | Challenges, streaks, badges, leaderboards |
| PrismCapabilities | StoreKit, HealthKit, CloudKit, Camera, NFC |
| PrismVideo | Video download, media entities |
Real Examples
- iOS App with State
- Networking + Security
- Server API
A todo app with PrismArchitecture, PrismUI components, and PrismStorage:
What Can You Build?
Native iOS/macOS Apps
Full-featured apps with PrismUI components, PrismArchitecture state management, and PrismNetwork.
REST APIs
JSON APIs with routing, validation, authentication, rate limiting, and database persistence.
Real-Time Apps
Chat, live dashboards, collaborative tools using WebSocket rooms, SSE, and the event bus.
ML-Powered Features
On-device classification, sentiment analysis, RAG pipelines, and Apple Intelligence.
GraphQL & MCP Servers
GraphQL schemas with playground, MCP servers exposing tools to AI assistants.
Gamified Experiences
Challenges, streaks, badges, leaderboards, and AI-powered motivational messages.
Next Steps
Install Prism
Add Prism to your Swift package — server, client, or both. Installation guide
Build Something
Follow the quickstart — choose iOS App or Server API. Quickstart
Explore Modules
UI Components / Architecture / Network / Storage / Security / Server / Intelligence / Gamification