Aral is an offline-first study companion for students with intermittent connectivity. Paste lecture notes and get a summary, flashcards, and a quiz.
How Firebase AI Logic is used: Aral calls Firebase AI Logic with InferenceMode.PREFER_ON_DEVICE. Short notes are routed on-device to Gemini Nano 4; long or complex notes fall back to Gemini in the cloud (gemini-3.5-flash-lite). Every run reports where it actually ran through response.inferenceSource, and the UI shows the routing decision, the reason, and the latency for each call. The on-device model is prepared on a button click, as the SDK requires. Routing thresholds come from Firebase Remote Config with local defaults. App Check enforces AI Logic access (debug tokens in local dev, reCAPTCHA Enterprise in production). Anonymous Auth signs users in at startup and Firestore syncs saved study sets when online; sets stay in localStorage when offline.
Value: on-device study is free, private, and works offline; the cloud handles material the device model cannot. Students in the Philippines and anywhere with spotty connectivity get study help without paying per call or sending their notes to a server by default.