Study Buddy is a PDF reading workspace with a built-in AI assistant. Open notes/slides, highlight text to explain, and chat with a local model via Ollama.
- PDF viewer: lazy page rendering, zoom controls, fullscreen mode, and scroll-based page tracking.
- Selection actions (PDF only): highlight text inside the document to quickly copy or send an Explain prompt.
- Local AI assistant (Ollama): detects local models, supports pulling new models, and keeps last-used model in local storage.
- Image-aware chat: attach or drag-drop images into the chat prompt.
- Workspace-style UI: tabbed files, explorer panel, search panel, activity bar, and resizable panes.
- React + Vite
- pdfjs-dist for PDF rendering
- shadcn/ui + Tailwind CSS
- Lucide icons
- Node.js 18+
- npm
- Ollama running locally at
http://localhost:11434
npm install
npm run devApp runs at http://localhost:5173.
- Install and start Ollama.
- Pull at least one model, for example:
ollama pull llama3.2- Open Study Buddy. The AI panel will automatically:
- check Ollama connectivity,
- list local models,
- let you switch models or pull another model when needed.
npm run dev # start dev server
npm run build # production build
npm run preview # preview production build
npm run lint # run eslint- The text-selection popup is scoped to PDF content only.
- If Ollama is offline, the AI panel shows retry/setup states until it is reachable.