A sensory-friendly AI learning companion that adapts complex topics into digestible, neurodivergent-friendly study guides using Google's Gemini.
Lovable Learner is designed from the ground up for neurodiverse minds (ADHD, Autism, Dyslexia, Dyscalculia, and Sensory Processing). It takes any learning topic and instantly breaks it down into structured visual summaries, interactive flashcards, hands-on activities, memory hacks, and high-yield exam anchors tailored to the learner's unique profile.
Get Lovable Learner running locally in under a minute:
git clone https://github.com/ayaghi88/LovableLearnerApp.git
cd LovableLearnerApp
npm install && npm run devLovable Learner is powered by a modern, high-performance tech stack:
- Google AI Studio – Developer platform to prototype and tune prompts.
- Gemini API – Powered by
gemini-3.5-flashfor blazing fast, highly contextual, and adaptive responses. - React (with TypeScript) – For a rich, responsive, and type-safe user interface.
- Vite – For lightning-fast local development and highly optimized production builds.
- Tailwind CSS – A modern utility-first CSS framework for clean, sensory-friendly visual styling.
- Mermaid.js – To dynamically render elegant visual flowcharts and conceptual mind maps.
Lovable Learner is fully optimized to run serverless on Cloudflare Pages using Cloudflare Page Functions. Follow these exact settings to deploy successfully:
When configuring your project in the Cloudflare Pages Dashboard, use the following settings under Build configuration:
- Framework preset: Select
Vite. - Build command:
npm run build - Build output directory:
dist - Root directory:
⚠️ Leave this empty (or set to the root of your repository). Do NOT set this to/functions, otherwise Cloudflare will not find the main React application.
Lovable Learner uses a Cloudflare Page Function (/functions/api/generate-guide.ts) to securely communicate with the Gemini API. To enable it:
- Go to the Google AI Studio and get a free Gemini API Key.
- In the Cloudflare Pages Dashboard, navigate to your project -> Settings -> Variables and secrets (as shown in your screenshot).
- Scroll down to Environment variables and click Add variable (or Edit variables).
- Add a new variable:
- Name:
GEMINI_API_KEY - Value: [Your API key from Google AI Studio]
- Note: Ensure this is set for both the Production and Preview environments.
- Name:
- Click Save.
⚠️ Crucial Step: You must redeploy your site for the new environment variable to take effect! Go to the Deployments tab, click your latest build, and choose Redeploy.
- Neurodivergent Customization: Adapt any topic for ADHD, Autism, Dyslexia, Dyscalculia, or Sensory Processing.
- Age Adaptation: Formats language, tone, and examples for children, teens, adults, or seniors.
- Interactive Learning: Includes flashcards, hands-on practice, and exam anchors.
- Visual Diagrams: Dynamically converts complex concepts into Mermaid.js mind maps.