iOS 18 removed automatic sleep tracking on iPhone.
Sneuz brings it back with Shortcuts automation: track sleep/wake times, view sleep patterns on iPhone or web, and export data to Apple Health at any time.
Set it up once, runs automatically.
sneuz_demo.mov
sneuz_demo_web.mov
- Shortcuts automation: Hooks into Sleep Focus mode - tracking starts/stops automatically
- Home screen widget: Glanceable status and quick actions without opening the app
- Web calendar view: Visualize sleep patterns on a proper calendar
- Apple Health export: One-click sync to Apple Health
- Cross-platform sync: iOS and web stay in sync via Supabase
- iOS: Swift, SwiftUI, WidgetKit, HealthKit, App Intents
- Web: Next.js, Tailwind, Supabase SSR
- Backend: Supabase (Postgres + Auth + RLS)
Fully built. Can verify and tested out via Xcode & simulator.
It might be shipped on App Store.
Prerequisites: Xcode, Node.js, Supabase account
Backend:
- Create Supabase project
- Run migrations from
supabase/migrationsin order - Enable email/password auth
Web:
cp .env.example web/.env # add your Supabase credentials
cd web
npm install && npm run deviOS:
- Open
ios/Sneuz.xcodeproj - Update
Config.swiftwith Supabase URL + anon key - Set App Group to
group.io.sneuz.sharedin Signing & Capabilities - Run on simulator or install on physical device (need to plug in using cable)
- Enjoy
App Intents framework exposes StartTrackingIntent and StopTrackingIntent to iOS.
Users create automations tied to Focus modes (Sleep Focus or any other focus modes). When triggered: validates state โ writes to Supabase โ refreshes widget.
See this doc for more details. Sleep Focus is weird, and it has special toggle behavior.
Zero background tasks. Just two API calls when Focus toggles - minimal battery impact.
MIT
