-
-
FolioChat: Record a flip-through video, study 100% offline, and upgrade to Gemini 3.8 Flash on Wi-Fi.
-
FolioChat: Record a flip-through video, study 100% offline, and upgrade to Gemini 3.8 Flash on Wi-Fi.
-
Notebook view combining personal notes with an AI-generated Executive Summary and key takeaways by page.
-
Notebook view combining personal notes with an AI-generated Executive Summary and key takeaways by page.
-
Active Recall Study studio with 3D-flipping flashcards, Mastered tracking, and customizable quiz preferences.
-
Notebook Settings with portable Markdown/JSON memory export, scanned page inspection, and filtered blurred-frame diagnostics.
Inspiration
Students and readers often need to study an entire printed book or handout in a short time. Many study environments lack internet access, and physical documents often do not exist online. Taking photos one page at a time is slow and breaks focus. FolioChat solves this problem by turning a single flip-through video into an offline study workspace.
What it does
FolioChat lets a user record or import a short flip-through video of any physical book. The app extracts sharp page frames, removes blurry transitions, and saves the text locally. Users can read structured summaries, write personal notes, and chat with the Folio mascot offline. When Wi-Fi is available, FolioChat connects to Gemini 3.8 Flash for deeper reasoning over both scanned pages and personal notes. Users can also flip 3D flashcards, customize quiz difficulty, inspect filtered frames, and export portable Markdown or JSON memory files.
How it was built
The app runs on iOS using Swift and SwiftUI with a Liquid Glass design system. AVFoundation samples video frames and Apple Vision extracts structured text blocks while skipping blurry or cut-off pages. EmbeddingGemma 2 generates 256-dim Matryoshka vectors locally for fast on-device semantic search and concept graphs. HybridAIService routes inference between Apple Foundation Models on supported hardware and Firebase AI Logic with App Check on cloud connections.
Challenges
On-device Apple Foundation Models do not run on older devices like the iPhone 11 or inside the iOS Simulator. Raw Vision OCR output also contained clipped margins, glued words, and noisy mid-flip frames. The team resolved these issues by pairing local OCR cleanup rules with a seamless Firebase AI Logic fallback to Gemini 3.8 Flash.
Accomplishments
FolioChat delivers a complete offline-first study workflow from video capture to active recall. Users can search and chat with private documents without internet access and upgrade seamlessly on Wi-Fi. All core retrieval, deduplication, and export pipelines pass automated unit tests.
What is next
Next steps include direct camera live-capture guidance for real-time page alignment and support for multi-chapter notebooks. The roadmap also includes spaced-repetition scheduling for mastered flashcards.
Built With
- apple-foundation-models
- avfoundation
- embeddinggemma
- firebase
- firebase-ai-logic
- firebase-app-check
- gemini
- ios
- swift
- swiftui
- vision-ocr