Distraction-free YouTube study workspace with local AI note indexing and progressive concept mapping.
Reloop transforms YouTube lectures into an interactive study workspace. Instead of switching between a video, a note-taking application, and a mind-mapping tool, Reloop brings everything together in one place.
Paste a YouTube lecture link and enter a focused study session. Reloop extracts the video transcript, generates timestamped lecture notes using local AI models, and progressively builds a visual concept map as you watch.
The application also includes custom video playback controls, chapter navigation, manual timestamps, and persistent session storage, allowing you to resume your learning right where you left off.
-
Local-First AI Execution: Runs AI models directly in the browser using WebLLM and WebGPU (
SmolLM2-360MorLlama-3.2-1B), or connects to a local Ollama instance (localhost:11434). No cloud AI API keys required. -
Automated Lecture Notes: Extracts YouTube captions and generates structured, timestamped bullet-point notes at 15-second intervals using the selected local AI model.
-
Progressive Concept Mapping: Builds a hierarchical 2D concept map in real-time using Mermaid.js. Groups related concepts into topic phases, connecting core ideas with supporting mechanisms, explanations, and insights.
-
Custom Video Playback Controls: Includes play/pause, 10-second forward and backward seeking, playback speed adjustment, volume control, mute, captions, and fullscreen support.
-
Interactive Chapter Timeline: Automatically organizes key topics into a navigable timeline. Jump directly to important concepts without manually searching through the entire lecture.
-
Manual Timestamps: Save important moments during a lecture with custom titles. Timestamps are synchronized with video playback, making it easier to revisit specific explanations.
-
Focus & Fullscreen Guard: Helps maintain a distraction-free environment by pausing the video and displaying a focus lock when fullscreen is exited or the browser tab loses focus.
-
Persistent Study Sessions: Uses IndexedDB with persistent browser storage to cache transcripts, generated notes, concept maps, and playback progress. Previously started sessions can be resumed without starting from scratch.
-
Flexible Workspace Layout: Switch between lecture notes and the concept map using the side inspector. Resize workspace panels to adjust the available viewing space.
-
Figma-Style Concept Canvas: Provides unrestricted SVG rendering with 10% to 800% zoom, mouse-wheel and trackpad zoom, and click-and-drag panning.
-
Minimalist Interface: A clean, distraction-free interface with a responsive landing page and a dedicated study workspace, built around Inter and JetBrains Mono typography.
Reloop/
├── server.js # Express backend (caption extraction + Ollama proxy)
├── package.json # Dependencies and scripts
├── .gitignore # Dependency and environment file exclusions
├── README.md # Project documentation
└── public/
├── landing.html # Public landing page
├── landing.css # Landing page styling
├── landing.js # Landing page interactions
├── youtube.js # Shared YouTube URL parsing and normalization
├── index.html # Focus-session workspace (served at /focus)
├── style.css # Workspace styling
└── app.js # Client logic (WebLLM, YouTube player, notes, Mermaid canvas)
Reloop supports two local AI execution options. Both allow you to generate lecture notes without relying on external cloud AI services.
WebLLM runs directly inside your browser using WebGPU. No external model server or command-line installation is required.
- Open Reloop in a WebGPU-enabled browser (Chrome, Edge, Brave, or another Chromium-based browser).
- Select one of the in-browser engines from the dropdown:
Local Engine: SmolLM2 360M— Lightweight and faster inference, approximately 360 MB.Local Engine: Llama 3.2 1B— A larger model with more contextual reasoning capabilities, approximately 880 MB.
- Start a study session. The browser automatically downloads the selected model weights and caches them locally.
- Subsequent sessions can reuse the cached model instead of downloading it again.
Note: Model loading and inference performance depend on your browser, GPU, available memory, and hardware support for WebGPU.
If you prefer running models through Ollama on your system (localhost:11434):
-
Install Ollama:
-
macOS / Linux:
curl -fsSL https://ollama.com/install.sh | sh -
Windows: Download and install Ollama from ollama.com.
-
-
Pull the model:
Download the default model used by Reloop:
ollama pull llama3.2
Optional smaller models:
# Lightweight 1B version ollama pull llama3.2:1b # Smaller SmolLM2 model ollama pull smollm2:360m
-
Start the Ollama server:
ollama serve
(If you use the Ollama Desktop application, the server starts automatically.)
-
Open Reloop and select
Localhost: Ollama (11434)from the AI engine dropdown.Reloop will automatically detect the available local models.
- Node.js (v18 or higher recommended)
- npm
- A modern browser (Chrome, Edge, Brave, or another Chromium-based browser)
- WebGPU support for in-browser AI inference
- (Optional) Ollama installed if using external model inference
-
Clone the repository:
git clone https://github.com/CodeByRachit/Reloop.git cd Reloop -
Install dependencies:
npm install
-
Start the application:
npm start
-
Open your browser and navigate to:
http://localhost:3000
The landing page will be displayed. Paste a YouTube video link to begin a study session.
- Open Reloop and paste a valid YouTube video URL on the landing page.
- Click Start Learning to enter the study workspace.
- Select your preferred AI engine from the toolbar (
SmolLM2 360M,Llama 3.2 1B, orLocalhost: Ollama). - Start watching the lecture. Reloop extracts the available captions and begins generating timestamped notes and concept maps.
- Use the Notes and Concept Map panels to switch between generated lecture notes and the visual representation of the concepts.
- Navigate through important topics using the chapter timeline.
- Add your own timestamps to bookmark important explanations.
- Use the video playback controls to seek, adjust playback speed, manage volume, toggle captions, or enter fullscreen mode.
- Zoom and pan across the concept canvas to explore the generated concept map.
- Your study progress is automatically saved. Reopen a previously studied lecture to continue from where you left off.
Reloop uses a lightweight Express backend to handle transcript extraction and local Ollama communication.
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/transcript?videoId={id} |
Extracts YouTube captions and video details. |
| POST | /api/ollama |
Sends prompts to a locally running Ollama model. |
- Frontend: HTML5, CSS3, JavaScript (ES Modules)
- Backend: Node.js, Express.js
- AI Inference: WebLLM, WebGPU, Ollama
- Concept Mapping: Mermaid.js
- Video Integration: YouTube IFrame Player API
- Storage: IndexedDB, LocalStorage, SessionStorage
- Typography: Inter, JetBrains Mono
Try Reloop here:
https://reloop-3ug8.onrender.com/
MIT