A neurodivergent-friendly productivity dashboard that combines PDF reading with ambient stimulation — split-screen layout, AI-powered text-to-speech, document summarization, gameplay videos, and lo-fi music.
Live: focusflow-max.vercel.app
- PDF Reader — Drop any PDF, view all pages in a scrollable layout
- Azure AI Voice — Neural text-to-speech with 12 premium voices (Ava, Andrew, Emma, Brian, etc.)
- Browser TTS — Fallback speech synthesis with auto-ranked voice quality
- AI Summarizer — In-browser document summarization via Transformers.js (no server needed)
- Page Range TTS — Select which pages to read aloud, auto-scrolls to selected page
- Gameplay Videos — Subway Surfers, Minecraft, and more ambient gameplay
- Lo-Fi Music — Built-in Lofi Girl radio with independent volume control
- Audio Mixer — Separate sliders for video, voice, and lo-fi audio
- 4 Themes — Studio (dark gold), Paper (light), Petal (pink), Abyss (deep blue)
- Compact UI — Minimizable TTS player, collapsible panels, maximum reading space
- Frontend: React + Vite, Tailwind CSS v3
- PDF: react-pdf (pdf.js)
- TTS: Azure Cognitive Services Speech API, Web Speech API
- AI: Transformers.js (
distilbart-cnn-6-6) running in Web Workers - Video/Audio: YouTube IFrame API
- Icons: Phosphor Icons
- Fonts: Fraunces, Figtree, JetBrains Mono
# Clone
git clone https://github.com/Shivangisharma4/focusflow.git
cd focusflow
# Install
npm install
# Set up environment
cp .env.example .env
# Edit .env with your Azure Speech key and region
# Run
npm run dev| Variable | Description |
|---|---|
VITE_AZURE_KEY |
Azure Cognitive Services Speech API key |
VITE_AZURE_REGION |
Azure region (e.g. eastus, centralindia) |
Get a free Azure Speech key at portal.azure.com — free tier gives 500K characters/month.
Deployed on Vercel. To deploy your own:
- Fork this repo
- Import to Vercel
- Add
VITE_AZURE_KEYandVITE_AZURE_REGIONas environment variables - Deploy
MIT