Skip to content

About

Offline learning platform catered towards students in rural areas with access to minimal school resources and internet connection. Students get structured mini lessons on subjects such as math, science, and history. Additionally there are a few modules on more advanced courses like AP Calculus, AP Biology and AP Chemistry as well as practice quizze

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

OffLearn

A fully equipped school that fits in a browser tab — no internet required, no cost, no data collected, ever.

OffLearn is an offline-first AI learning platform that runs entirely in your browser. It uses on-device AI models (MediaPipe, Transformers.js) so students can learn without an internet connection, without paying for API calls, and without sending any data to external servers.

Features

  • 100% Offline — Works without internet after initial load. Installable as a PWA.
  • On-Device AI Tutor — Uses MediaPipe GenAI and Xenova/Transformers for local inference.
  • Structured Curriculum — Math, Science, History, English, Economics, and Computer Science.
  • Test Prep — SAT Reading, SAT Math, and ACT Math practice.
  • RAG-Powered — Local vector search (Voy) over knowledge packs for grounded responses.
  • Zero Data Collection — All data stays in IndexedDB on your device.

Tech Stack

Getting Started

Prerequisites

Install

npm install

The postinstall script automatically copies MediaPipe WASM files into public/mediapipe-wasm/.

Development

npm run dev

Open http://localhost:3000 in your browser.

Production Build

npm run build

This generates a static site in the out/ directory. Serve it with any static file server:

npx serve out

Lint

npm run lint

Project Structure

OffLearn/
├── app/                    # Next.js App Router (layout, page, styles)
├── components/             # React components
│   ├── layout/             #   Sidebar, TutorPanel
│   └── views/              #   LearnView, TestPrepView
├── lib/                    # Core logic
│   ├── db/                 #   IndexedDB persistence
│   ├── inference/          #   MediaPipe LLM, subject prompts
│   ├── rag/                #   Vector store, chunk loader
│   └── store/              #   Zustand app store
├── public/                 # Static assets
│   ├── curriculum/         #   Subject lesson JSON files
│   ├── testprep/           #   SAT/ACT practice JSON files
│   ├── knowledge-packs/    #   RAG knowledge pack JSON files
│   └── mediapipe-wasm/     #   MediaPipe WASM (generated on install)
├── scripts/                # Build helpers
└── types/                  # TypeScript type definitions

License

MIT

About

Offline learning platform catered towards students in rural areas with access to minimal school resources and internet connection. Students get structured mini lessons on subjects such as math, science, and history. Additionally there are a few modules on more advanced courses like AP Calculus, AP Biology and AP Chemistry as well as practice quizze

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages