-
-
An offline-first educational platform for rural Peru, combining essential learning tools, local AI and cloud AI.
-
A centralized learning dashboard with study sessions, academic subjects, pending questions and review activities.
-
Students organize class notes, questions and Eureka discoveries within their personal academic journal.
-
Gemini Nano enriches study notes locally with explanations, practical examples and key learning concepts.
-
The tutor explains scientific concepts through accessible examples, comparing gravity on Earth and the Moon.
-
The non-generative Essential Mode provides mathematical hints without revealing the final answer.
-
On-device AI generates contextualized mathematics exercises inspired by rural markets in Apurimac, Peru.
-
Authorized Gemini Cloud inference supports scientific inquiry and experimental design.
-
A structured learning workflow organizes questions into pending, analyzing, explained and understood stages.
-
Students reinforce academic concepts through interactive multiple-choice practice.
-
Question-by-question assessment provides scores, correct answers and pedagogical feedback.
-
Deterministic SM-2 spaced repetition adapts review intervals according to student performance.
-
Study calendars, academic progress tracking and pedagogical recommendations support continuous learning.
-
Students control cloud AI authorization, offline-only operation and the use of academic context.
-
Linked student identity and authorized Flask/MySQL synchronization, showing successful academic data synchronization.
Inspiration
What happens when artificial intelligence transforms education, but the students who could benefit from it cannot consistently access the internet?
In rural Peru, geographical barriers and limited connectivity can interrupt learning and restrict access to digital educational resources.
As a Computer and Systems Engineering student at the Universidad Nacional Micaela Bastidas de Apurímac (UNAMBA), I wanted to build something meaningful for this reality.
Rather than creating another conventional AI chatbot, I challenged myself to develop an educational platform that could continue supporting students even when connectivity disappears.
That vision became OstrixAI.
Learning should not stop when the internet does.
What it does
OstrixAI is an offline-first educational platform designed for secondary-school students in rural Peru. It combines hybrid artificial intelligence, pedagogical guidance and personal academic knowledge management.
Hybrid artificial intelligence
Powered by Firebase AI Logic, OstrixAI integrates three operating approaches:
- On-device AI: Gemini Nano generates responses locally on compatible devices, without requiring an active internet connection once the model is available.
- Cloud AI: Gemini provides additional reasoning capabilities when connectivity is available and the student explicitly authorizes cloud processing.
- Essential offline mode: Students can access previously stored educational content and selected local learning tools even when generative AI is unavailable.
The system adapts to network conditions, model availability, user preferences and task complexity.
Four pedagogical modes
The virtual tutor offers four complementary learning experiences:
- Explain: Understand academic concepts through accessible explanations and examples.
- Guide: Discover solutions through hints and progressive guidance rather than immediately receiving the final answer.
- Practice: Reinforce knowledge through exercises and feedback.
- Explore: Investigate questions, connect ideas and develop scientific curiosity.
OstrixAI is designed to encourage understanding, not simply provide answers.
Academic journal
Students can organize their learning through four categories:
- Notes
- Questions
- Discoveries (Eureka)
- Reviews
The academic journal organizes information by subject, date and study session. Students can save relevant content directly from tutor conversations and access their academic information offline.
With student authorization, the tutor can use academic context to support more personalized learning.
Adaptive review and academic progress
OstrixAI integrates deterministic SM-2 spaced repetition, interactive academic assessments, question-by-question pedagogical feedback, study calendars and personalized learning recommendations.
Students can track their academic progress, reinforce previously studied concepts and organize their questions through a structured learning workflow.
Account linking and identity management
OstrixAI integrates Firebase Authentication and Google account linking, allowing students to associate their existing account with their Google identity.
This functionality complements the offline-first experience with authenticated online services and authorized academic data synchronization.
Local academic information and conversation history are separated by student account.
Privacy and data synchronization
OstrixAI incorporates:
- Encrypted local storage using IndexedDB and AES-GCM.
- Explicit authorization for cloud-based AI inference.
- Firebase identity verification and application protection mechanisms.
- Backend access validation.
- Academic data synchronization through Flask and MySQL when connectivity is restored.
These mechanisms help maintain learning continuity while giving students control over cloud AI usage.
Multilingual accessibility
OstrixAI provides Spanish, English and Quechua language options.
This approach reflects the linguistic diversity of its intended educational audience. Further evaluation with native Quechua speakers is necessary to improve linguistic accuracy and cultural relevance.
How I built it
OstrixAI was built as a progressive web application with an offline-first architecture.
Frontend and offline infrastructure
- Angular
- TypeScript
- PrimeNG
- Progressive Web App (PWA)
- Service workers
- IndexedDB
- AES-GCM encryption
Hybrid AI architecture
- Firebase AI Logic
- Gemini Nano on-device inference
- Gemini cloud inference
- Consent-aware hybrid routing
- Curriculum-grounded retrieval (RAG)
- Prompt optimization
- Deterministic verification for selected mathematical exercises
Authentication and backend
- Firebase Authentication
- Google account linking
- Firebase App Check
- Python
- Flask
- MySQL
- Authenticated synchronization services
Deployment
- Firebase Hosting
- Railway
- GitHub
The architecture was designed so that educational resources, personal academic information and supported local learning capabilities remain accessible despite interruptions in internet connectivity.
Challenges I ran into
Building OstrixAI was not a straightforward journey.
The most demanding challenge was discovering the practical limits of on-device generative AI.
During development, I spent many late nights experimenting with Gemini Nano, testing different prompts, comparing local and cloud responses, analyzing incorrect explanations and investigating inference failures.
Some responses were scientifically inaccurate. Others required considerable processing time. Even when verified information was supplied, the local model could introduce new errors.
One particularly revealing experiment involved asking Gemini Nano to explain why lightning is seen before thunder is heard. Different prompt and retrieval strategies produced significantly different results, exposing the difficulty of maintaining scientific accuracy on a resource-constrained local model.
Instead of hiding these limitations, I treated them as engineering challenges.
I experimented with:
- Multiple curriculum retrieval strategies.
- Prompt compression and optimization.
- Context-aware hybrid routing.
- Deterministic mathematical verification.
- Response validation.
- Local inference timeout handling.
- Regression testing.
There were also challenges involving browser compatibility, local model availability, storage requirements, Firebase App Check, authentication, backend deployment and database synchronization.
Several approaches had to be reconsidered after testing. Some optimizations improved response speed but reduced accuracy. Others improved grounding while increasing inference time.
The experience taught me that a successful AI application requires more than connecting a model to an interface.
It requires experimentation, resilience, careful engineering and an honest understanding of technological limitations.
Accomplishments that I'm proud of
- Implementing real on-device inference with Gemini Nano and cloud inference with Gemini through Firebase AI Logic.
- Creating an application that remains accessible without an active internet connection after initial setup.
- Developing four distinct pedagogical interaction modes.
- Integrating a personal academic journal with the virtual tutor.
- Implementing Google account linking through Firebase Authentication.
- Building encrypted local persistence for student information.
- Implementing authenticated academic data synchronization.
- Experimenting with curriculum-grounded retrieval and mathematical verification to improve educational reliability.
- Deploying a functional web application with a publicly accessible source code repository.
- Testing the system under different connectivity conditions and identifying practical limitations.
Beyond the technical accomplishments, I am proud of continuing the development even when experiments failed and the available technology did not behave as expected.
OstrixAI represents the transformation of an educational challenge into a functional software prototype.
What I learned
This hackathon changed my understanding of artificial intelligence.
I learned that hybrid AI is not simply about combining a local model with a cloud model. It is about deciding when each technology is appropriate, considering accuracy, privacy, connectivity, latency and device capabilities.
I also learned that educational AI carries a responsibility: students should be encouraged to question and verify generated information rather than blindly trust it.
Gemini Nano demonstrated the potential of local intelligence, while its limitations helped me understand where cloud inference, verified educational knowledge and deterministic algorithms can complement generative AI.
Perhaps the most valuable lesson was that meaningful innovation does not require pretending that technology is perfect.
It requires understanding its limitations and designing around them.
What's next for OstrixAI
OstrixAI is a functional prototype, and its development opens several opportunities for future improvement:
- Conduct pilot studies with students and teachers in rural Peru.
- Measure educational outcomes and learning engagement.
- Improve local AI accuracy and inference performance.
- Expand verified curriculum knowledge.
- Improve and validate Quechua language support.
- Optimize compatibility with resource-constrained devices.
- Strengthen accessibility and security.
- Explore collaboration with educational institutions and rural communities.
The long-term vision is to contribute to more accessible, resilient and inclusive educational technology.
OstrixAI does not claim to solve educational inequality alone. It demonstrates how hybrid AI can become part of a meaningful solution.
Final thoughts
This project was built through experimentation, setbacks, persistence and a genuine desire to make technology useful beyond conventional connectivity boundaries.
For some students, losing an internet connection means losing access to an important learning resource.
With OstrixAI, I wanted to explore a different possibility.
When connectivity disappears, the opportunity to learn should remain.
OstrixAI — Learning beyond connectivity.
Built With
- aes-gcm
- angular.js
- css3
- firebase
- firebase-ai-logic
- firebase-app-check
- firebase-authentication
- firebase-hosting
- flask
- gemini
- gemini-nano
- github
- google-sign-in
- html5
- hybrid-ai
- indexeddb
- mysql
- on-device-ai
- primeng
- pwa
- python
- rag
- railway
- service-workers
- typescript