A privacy-first, high-performance analytics SDK for iOS 18+ built with Swift 6. Zero compilation warnings with full strict concurrency compliance.
- 🔒 Privacy-First - Automatic PII filtering, encrypted storage
- ⚡ 100% Async/Await - Modern Swift concurrency throughout
- 🎯 Swift 6 Compliant - Full actor isolation and data race safety
- 📦 Smart Batching - Automatic event batching with offline support
- 🔐 Simple Setup - Single DSN configuration string
- 🛡️ Production Ready - Circuit breaker, retry logic, comprehensive error handling
dependencies: [
.package(url: "https://github.com/luxardolabs/LuxAnalytics", from: "1.0.0")
]import LuxAnalytics
@main
struct MyApp: App {
init() {
Task {
try await LuxAnalytics.quickStart(
dsn: "https://your-public-id@analytics.example.com/api/v1/events/your-project-id"
)
}
}
var body: some Scene {
WindowGroup { ContentView() }
}
}let analytics = await LuxAnalytics.shared
// Track events
try await analytics.track("user_signup", metadata: [
"method": "email",
"source": "app"
])
// Set user context
await analytics.setUser("user-123")
await analytics.setSession("session-456")- iOS 18.0+
- Swift 6.0+
- Xcode 16.0+
| Topic | Description |
|---|---|
| 📖 Complete Guide | Comprehensive documentation and tutorials |
| ⚡ Quick Start | Get running in under 5 minutes |
| 🔧 Configuration | Detailed setup and customization options |
| 🔒 Privacy & Security | Privacy-first architecture and data protection |
| 🚀 API Reference | Complete API documentation |
| 🐛 Troubleshooting | Common issues and solutions |
We welcome contributions! See CONTRIBUTING.md for guidelines.
MIT License - see LICENSE for details.