@getpapillon/papillonkit
v1.2.3
Published
Siri, Spotlight and Apple Intelligence for Papillon on iOS
Readme
PapillonKit
Native iOS layer for Papillon.
- Siri & Spotlight: next course, next homework, indexed courses and homework.
- Widgets: native SwiftUI “Emploi du temps” and “Tâches”.
- Live Activity: the current or next course on the Lock Screen, Dynamic Island and Apple Watch. PapillonKit starts, updates and ends it from the shared database on every refresh, and schedules the next courses ahead from iOS 26.
liveActivities.sync(),preview()andstop()drive it from the app. - Apple Intelligence: on-device
generateText()andgenerateObject().
Works from iOS 17: widgets from iOS 17, the Live Activity from iOS 18, Siri and Spotlight from iOS 27, Apple Intelligence from iOS 26 on an iPhone 15 Pro or later. PapillonKit.features says what the device supports; the rest does nothing.
Install
bun add @getpapillon/papillonkitplugins: ["@getpapillon/papillonkit"]Tests
bun run testRuns the JS API and config plugin tests, typechecks the iOS code for iOS 17, 26 and 27, then runs the Swift tests on the Mac (Xcode 27 required). The Foundation Models tests only run when Apple Intelligence is on.
