LiteLesson Project Story AccessED Hacks submission draft. Edit the bracketed bits to match what actually happened. Inspiration In many classrooms, including ones I know from home in Nigeria, the biggest barrier to learning isn't a lack of motivation. It's a lack of reliable connectivity. Data is expensive, networks drop, and most "digital learning" tools assume a constant connection. Teachers often have good material in PDFs and Word files, but no easy way to turn it into something students can open on a cheap phone with no signal. I wanted to build something light, offline-first, and teacher-friendly: LiteLesson. What it does LiteLesson is an offline-first lesson reader delivered as a Progressive Web App (PWA). • Teachers upload existing material (PDF, Word, or JSON) from the Library page, or create lessons in the Builder. • An AI step drafts structured lesson packs (sections, key points, [quiz questions]) from the uploaded content, which the teacher can review and edit. • Students install the app once, download lessons while online, and read them anywhere without internet. How we built it • Frontend: React + TypeScript, styled with Tailwind CSS • PWA layer: service worker and caching so lessons are available offline [and IndexedDB for storing lesson packs locally] • Backend: Node.js + Express • AI: Google Gemini (free tier, via @google/genai) on the Express server to draft lesson packs from uploaded documents • Pages: a Builder for authoring lessons, a Library for uploading and managing files, and a Reader optimized for small screens and low bandwidth The server keeps the API key private. The client only receives the finished lesson JSON, which is cached for offline use. Challenges we ran into • Parsing messy documents. PDFs and Word files vary a lot. Extracting clean text and structure before sending it to the model took careful handling. • Getting reliable structured output from the AI. I had to constrain the prompt and validate the JSON so a malformed response never breaks a lesson. • Free-tier limits. Working within Gemini's rate limits meant being deliberate about chunking and request size. • Offline-first thinking. Designing every screen to work with no network, and deciding what to cache and when to sync, changed how I structured the whole app. • Time. Building a full upload → generate → read pipeline within a hackathon window meant ruthless prioritization. Accomplishments that we're proud of • A working end-to-end flow: upload a PDF, Word or JSON file, generate a lesson pack, and read it with no connection • A Builder page and a Library page that give teachers two ways to get lessons in • Keeping the AI key on the server while the client only handles finished lesson JSON • [Add a number: lesson load time, pack size, or how many lessons you generated in testing] What we learned • How service workers and caching strategies make a web app genuinely usable offline • Prompting for structured, validated output, not just free text • That accessibility is also about infrastructure: file size, load time, and offline support matter as much as UI polish • Scoping a prototype so the core user flow works end to end If we treat a lesson's size as a rough budget, the goal is simple: \text{usable offline} \iff \text{lesson size} \ll \text{device storage}\ \wedge\ \text{cached before connection loss} What's next for Lite Lesson • Multi-language lesson packs (including Yoruba, Hausa, and Igbo) • Audio narration for low-literacy and visually impaired learners • Teacher-to-student sharing via link or QR code • Progress tracking that syncs when the connection returns
Built With
- css3
- express.js
- google-gemini
- html5
- javascript
- node.js
- pwa
- react
- service-workers
- tailwindcss
- typescript
