[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111589":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":14,"stars7d":15,"stars30d":16,"stars90d":13,"forks30d":13,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":32,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":13,"starSnapshotCount":13,"syncStatus":14,"lastSyncTime":36,"discoverSource":37},111589,"lm-subs","sarang-cmd\u002Flm-subs","sarang-cmd","Fast synchronized captions, multi-format transcripts (.srt\u002F.vtt\u002F.txt\u002F.json), BYOK 12-provider speech-to-text failover, and encrypted Neon cloud sync for Google NotebookLM Video Overviews.","https:\u002F\u002Flm-subs.vercel.app",null,"JavaScript",108,0,2,23,55,8,61,"MIT License",false,"main",true,[24,25,26,27,28,29,30,31],"captions","chrome-extension","groq","mistral","neon","notebooklm","speech-to-text","subtitles","2026-11-23 20:32:01","2026-11-23 19:45:40","\u003Cdiv align=\"center\">\n\n\u003Cimg src=\"docs\u002Fassets\u002Flogo.svg\" width=\"84\" height=\"84\" alt=\"LM Subs Logo\" \u002F>\n\n# LM Subs\n\n**Synchronized closed captions, SRT\u002FWebVTT\u002FTXT\u002FJSON export, and opt-in encrypted cloud sync for Google NotebookLM Video Overviews.**\n\n[![Manifest V3](docs\u002Fassets\u002Fbadges\u002Fmanifest-v3.svg)](#security-and-privacy-architecture)\n[![Audio Fast-Path](docs\u002Fassets\u002Fbadges\u002Faudio-extract.svg)](#how-lm-subs-delivers-captions-in-seconds)\n[![12 BYOK Providers](docs\u002Fassets\u002Fbadges\u002Fproviders.svg)](#supported-speech-to-text-providers)\n[![Neon Sync](docs\u002Fassets\u002Fbadges\u002Fneon-sync.svg)](#hosted-account-and-opt-in-cloud-sync)\n[![Granular Opt-In](docs\u002Fassets\u002Fbadges\u002Ftelemetry.svg)](#hosted-account-and-opt-in-cloud-sync)\n[![Tests](docs\u002Fassets\u002Fbadges\u002Ftests.svg)](#development-and-testing)\n[![License: MIT](docs\u002Fassets\u002Fbadges\u002Flicense.svg)](LICENSE)\n\n[**Download `lm-subs-v0.2.8.zip`**](docs\u002Freleases\u002Flm-subs-v0.2.8.zip) | [**Beginner Setup Guide**](#install-guide-no-coding-or-credit-card-needed) | [**Neon vs Supabase & Firebase Guide (`DEPLOYMENT_GUIDE.md`)**](DEPLOYMENT_GUIDE.md) | [**About (`@sarang-cmd`)**](#about-the-creator)\n\n\u003Cbr \u002F>\n\n\u003Cimg src=\"docs\u002Fassets\u002Fbanner-social-1280x640 (2).png\" width=\"100%\" alt=\"LM Subs: Highlighted captions inside the video and bottom play-bar CC controls for Google NotebookLM\" \u002F>\n\n\u003C\u002Fdiv>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fwww.star-history.com\u002F?repos=sarang-cmd%2Flm-subs&type=date&legend=top-left\">\n    \u003Cpicture>\n      \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=sarang-cmd\u002Flm-subs&type=date&theme=dark&legend=top-left\" \u002F>\n      \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=sarang-cmd\u002Flm-subs&type=date&legend=top-left\" \u002F>\n      \u003Cimg alt=\"Star History Chart\" src=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=sarang-cmd\u002Flm-subs&type=date&legend=top-left\" \u002F>\n    \u003C\u002Fpicture>\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003C\u002Fdiv>\n\n---\n\n## Install guide (no coding or credit card needed)\n\nYou do not need terminal commands, developer tools, or a paid subscription to use LM Subs. Follow these four steps in **Google Chrome**, **Brave**, **Microsoft Edge**, or **Arc**:\n\n### Step 1: Download and unzip the extension folder\n1. Download [**`lm-subs-v0.2.8.zip`**](docs\u002Freleases\u002Flm-subs-v0.2.8.zip) to your computer.\n2. **Unzip** it into a normal folder:\n   * **macOS:** Open **Downloads** in Finder and double-click `lm-subs-v0.2.8.zip`. Move the unzipped folder into **Documents** so it stays in a permanent spot.\n   * **Windows:** Open **Downloads** in File Explorer, right-click `lm-subs-v0.2.8.zip`, click **Extract All...**, and click **Extract**. Keep the unzipped folder somewhere permanent such as **Documents**.\n\n### Step 2: Load the folder in Chrome\n1. Open a new browser tab, type `chrome:\u002F\u002Fextensions` into the address bar, and press **Enter** (`brave:\u002F\u002Fextensions` in Brave, `edge:\u002F\u002Fextensions` in Edge).\n2. Turn **ON** the **Developer mode** switch in the top-right corner of the page.\n3. Click the **Load unpacked** button in the top-left corner and select the unzipped `lm-subs` folder from Step 1.\n4. Click the puzzle-piece icon in the top-right Chrome toolbar and click the pin icon beside **LM Subs**.\n\n### Step 3: Paste one free Groq transcription key (60 seconds)\nLM Subs connects directly from your browser to a speech-to-text provider so nobody charges you a subscription fee. **Groq** offers a free developer account with no credit card that transcribes up to 8 hours of audio per day:\n1. Open [console.groq.com\u002Fkeys](https:\u002F\u002Fconsole.groq.com\u002Fkeys) and sign in with Google or GitHub.\n2. Click **Create API Key**, enter `LM Subs` as the name, and copy the key starting with `gsk_`.\n3. Click the **LM Subs** icon in your Chrome toolbar, paste that `gsk_...` code into the **API key** box, and click **Save**.\n\n### Step 4: Watch any NotebookLM Video Overview\n1. Open [notebooklm.google.com](https:\u002F\u002Fnotebooklm.google.com), open any notebook, and play a **Video Overview**.\n2. Within about three seconds, synchronized captions with active-word highlighting appear inside the lower frame of the video player (accompanied by an optional completion chime).\n3. Use the compact **CC**, **Transcript**, and **•••** controls docked inside the bottom play bar to toggle captions (`C`), open the click-to-seek **Transcript** drawer (`T`), adjust word-for-word highlight delay (`{` \u002F `}` or the Style slider), switch caption backdrop (`B`), resize text (**A-** \u002F **A+**), shift cue timing (`[` \u002F `]`), view keyboard shortcuts (`?`), or export **`.srt`**, **`.vtt`**, **`.txt`**, **`.md`**, **`.csv`**, or **`.json`** files.\n\n---\n\n## Product tour and screenshots\n\n### Compact bottom play-bar controls and highlighted spoken-word captions inside NotebookLM\nSynchronized closed captions with 3-state progressive word highlighting, adjustable word-highlight delay (`-500 ms` to `+1500 ms`), compact **CC** and **Transcript** controls integrated directly into the bottom play bar, and a secondary tools popover for styling, study loops, and `.srt`\u002F`.vtt`\u002F`.txt`\u002F`.md`\u002F`.csv`\u002F`.json` export.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fscreenshots\u002F01-player-subtitles.png\" width=\"100%\" alt=\"LM Subs highlighted spoken-word captions inside the video and compact CC controls in the bottom play bar\" \u002F>\n\u003C\u002Fp>\n\n### Statistics that match the extension\nEvery number on the website is the same number the extension reports, computed on your device and merged with your account when you sign in: watch time, listening time, exports, and per provider usage.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fscreenshots\u002F02-statistics-dashboard.png\" width=\"100%\" alt=\"LM Subs statistics dashboard showing watch time, listening time, export counts, and per provider usage\" \u002F>\n\u003C\u002Fp>\n\n### Chrome toolbar popup\nConfigure a free Groq or Mistral key, inspect account sync state, trigger captions on the active NotebookLM tab, or export `.srt`, `.vtt`, `.txt`, and `.json` files in two clicks. Includes an inline first-time setup guide when no key is saved yet.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fscreenshots\u002F03-toolbar-popup.png\" width=\"100%\" alt=\"LM Subs Chrome toolbar popup\" \u002F>\n\u003C\u002Fp>\n\n### Settings, opt-in privacy switches, statistics, and priority queue\nSign in with Google, GitHub, or a 6-digit email code, toggle granular cloud sync switches (`Sync API keys`, `Sync transcriptions`, `Sync preferences`), inspect real transcription metrics, and order all 12 speech-to-text providers.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fscreenshots\u002F04-settings-statistics.png\" width=\"100%\" alt=\"LM Subs settings page showing opt-in sync switches, statistics, and the provider queue\" \u002F>\n\u003C\u002Fp>\n\n### Page that opens after install\nSetup finishes itself: pin the extension, paste one free API key, then press CC on any overview.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fscreenshots\u002F09-welcome-install-page.png\" width=\"100%\" alt=\"LM Subs install page that opens after loading the extension, showing the pin, API key, and caption steps\" \u002F>\n\u003C\u002Fp>\n\n---\n\n## Why LM Subs?\n\nGoogle NotebookLM generates narrated **Studio Video Overviews**, yet its built-in player ships without closed captions, downloadable subtitle files, or cross-browser transcript sync.\n\nNaive transcription tools upload entire 50 to 120 MB HD `.mp4` video files or inflate compressed audio into 40+ MB of uncompressed `.wav` data, hitting API upload limits and turning a 3-minute Video Overview into a multi-minute wait.\n\n| Metric | Full Video \u002F WAV Upload | LM Subs (`v0.2.8`) |\n| :--- | :--- | :--- |\n| **Media payload** | 50 to 120 MB `.mp4` + 42 MB `.wav` | **~3.4 MB `=m140` AAC** (or HTTP `206` audio byte ranges) |\n| **Audio prep overhead** | 45 to 90s full download + decode | **0 ms** direct `=m140` passthrough (`\u003C1.2s` Range remux) |\n| **Whisper timestamp mode** | Slow word-level DTW alignment | **Segment timestamps (~200x real-time)** + clause balancer |\n| **Long-video chunking** | Sequential 1-by-1 upload | **3x concurrent workers + live progressive cues** |\n| **Second-browser open** | Re-downloads and re-transcribes | **~50 ms Neon Postgres cache hit** (`0` media bytes fetched) |\n\n---\n\n## How LM Subs delivers captions in seconds\n\n1. **Zero-decode `=m140` audio stream passthrough (`0 ms` IPC):** Google's FIFE `=m140` stream serves a ~3 to 6 MB `audio\u002Fmp4` payload. `service-worker.js` inspects `inspectMp4Tracks()` and `Content-Type` and forwards pure-audio payloads (`\u003C=24 MB`) directly to your speech-to-text provider without inflating them into PCM `.wav`.\n2. **Parallel `HTTP 206 Partial Content` audio byte-range extraction:** When a CDN edge serves a muxed 50 to 120 MB `=m22` `video\u002Fmp4`, LM Subs aborts the full download after reading headers, probes the `moov` atom via `Range: bytes=...`, and fetches only the 3 to 6 MB `soun` audio slices over 6 parallel `HTTP 206` requests.\n3. **Segment-level Whisper timestamps (~200x real-time):** Requesting segment timestamps instead of word-level DTW alignment and balancing two-line cues client-side via `cuesFromSegments()` cuts transcription latency by 4 to 8x.\n4. **Concurrent chunk workers + progressive cues (`SUBTITLES_PARTIAL`):** Long recordings (`>24 MB`) transcribe 3 audio chunks concurrently and render live cues on the `\u003Cvideo>` element as soon as chunk 1 completes.\n5. **Pre-download Neon Postgres cache hit (~50 ms):** Before downloading media from Google's CDN, `service-worker.js` checks local storage and `GET \u002Fapi\u002Fsync\u002Fsubtitle?cacheKey=...` so previously captioned videos load instantaneously across your signed-in browsers.\n\n---\n\n## System architecture\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Farchitecture.svg\" width=\"100%\" alt=\"LM Subs 4-plane MV3 and Hosted Neon Postgres architecture\" \u002F>\n\u003C\u002Fp>\n\n* **Page Main World (`src\u002Fcontent\u002Fpage-hook.js` at `document_start`):** Observes NotebookLM SSR `AF_initDataCallback` payloads and `batchexecute` RPCs (`R7cb6c`, `gArtLc`) without touching storage or credentials.\n* **Isolated Content Script (`src\u002Fcontent\u002Fcontent.js` + `player-overlay.js`):** Attaches both a native `\u003Ctrack kind=\"subtitles\">` (for OS Picture-in-Picture) and an isolated closed ShadowRoot caption bar inside NotebookLM's `\u003Cvideo>` container.\n* **MV3 Service Worker (`src\u002Fbackground\u002Fservice-worker.js`):** Sole reader of `secretApiKeys` and `cloudSyncSecret` in `chrome.storage.local`. Executes audio stream extraction, 12-provider failover, and opt-in cloud sync.\n* **Hosted Web App & Neon Postgres API (`src\u002Fweb\u002F`, `server\u002F`, `api\u002Findex.js`):** React + Radix UI web application (`\u002F`, `\u002Fguide`, `\u002Flibrary`, `\u002Fstats`, `\u002Fabout`) and Hono REST API backed by Neon Serverless PostgreSQL (`db\u002Fschema.sql`). Includes Vercel Web Analytics and Vercel Speed Insights.\n\n---\n\n## Hosted account and opt-in cloud sync\n\nEnd users never self-host a database or configure a server URL. Sign in from the extension or web app using **Google**, **GitHub**, or a **passwordless 6-digit email code**:\n\n* **Granular opt-in switches:** Control three independent switches in both the web library and extension settings:\n  1. **Sync API keys** (`AES-256-GCM` per-user HKDF-derived encryption bound to `${userId}:${providerId}` as AAD).\n  2. **Sync transcriptions** (searchable caption archive with `.srt`, `.vtt`, `.txt`, and `.json` downloads).\n  3. **Sync preferences** (provider priority order, caption font scale, and target language).\n* **One-click cloud purge:** Turning off any switch can immediately delete your stored cloud rows for that category in Neon Postgres while keeping your local Chrome data untouched.\n* **Live SQL statistics (`\u002Fstats`):** Displays real `COUNT`, `SUM`, `AVG`, 14-day daily transcription volume, upload bandwidth saved, and per-provider latency queried directly from `lmsubs_subtitles` and `lmsubs_transcription_events`.\n\n### Deploying your own fork (Neon correlated with Supabase & Firebase)\n\nRead [**`DEPLOYMENT_GUIDE.md`**](DEPLOYMENT_GUIDE.md) for:\n* A first-principles guide correlating **Neon** with **Supabase** and **Firebase** (SQL Editor migrations, why no storage buckets are needed, why Firebase auto-configures Google OAuth while Supabase and Vercel + Neon use Google Cloud Console OAuth credentials, and server-vault encryption vs client RLS).\n* Exact step-by-step instructions to connect Neon (`falling-cherry-16443194`), Google OAuth, GitHub OAuth, and Resend on Vercel.\n\n---\n\n## Supported speech-to-text providers\n\nConfigure one key or stack multiple providers in priority order for automatic `HTTP 429` rate-limit failover:\n\n| Rank | Provider | Default model | Free tier and billing notes |\n| :-: | :--- | :--- | :--- |\n| **1** | **Groq** *(Recommended)* | `whisper-large-v3-turbo` | Free developer tier (~8 hrs\u002Fday, no credit card) |\n| **2** | **Mistral AI** *(Recommended)* | `voxtral-mini-latest` | Free La Plateforme tier, 48 MB file cap |\n| **3** | **Google Gemini** | `gemini-2.5-flash` | Free Google AI Studio tier, native translation |\n| **4** | **Deepgram** | `nova-3` | $200 free starter credit |\n| **5** | **AssemblyAI** | `universal` | $50 free starter credit |\n| **6** | **Gladia** | `solaria-1` | 10 free hours per month |\n| **7** | **Cloudflare Workers AI** | `@cf\u002Fopenai\u002Fwhisper-large-v3-turbo` | 10,000 free neurons per day |\n| **8** | **ElevenLabs** | `scribe_v1` | Free starter quota, 99 languages |\n| **9** | **Hugging Face** | `openai\u002Fwhisper-large-v3-turbo` | Free monthly inference credits |\n| **10** | **OpenRouter** | `google\u002Fgemini-2.5-flash` | Unified multi-model router |\n| **11** | **OpenAI** | `whisper-1` | Pay-as-you-go (`$0.006\u002Fmin`) |\n| **12** | **Local \u002F Custom** | `Systran\u002Ffaster-whisper-small` | 100% free and offline (`faster-whisper-server` \u002F `whisper.cpp`) |\n\n---\n\n## Security and privacy architecture\n\n* **Minimal Manifest V3 permissions:** Requests only `\"storage\"` in `extension\u002Fmanifest.json`, plus narrow host permissions for NotebookLM and Google media CDNs.\n* **Service-worker secret isolation:** Automated static-analysis tests (`tests\u002Fe2e.test.js`) verify that `content.js`, `page.js`, `popup.js`, and `options.js` never import secret-storage getters.\n* **Diagnostic redaction:** `GET_DEBUG_REPORT` scrubs `Bearer` headers, `lms_...` session tokens, `gsk_...`\u002F`sk-...`\u002F`AIza...` keys, and signed FIFE query parameters.\n\n---\n\n## Development and testing\n\n```bash\nnpm install          # Install dependencies (0 vulnerabilities)\nnpm run assets       # Render SVG\u002FPNG brand marks, favicons, badges, diagram, and 4 screenshots\nnpm run build        # Bundle all 5 MV3 extension entrypoints + React web app (docs\u002Fapp.js)\nnpm run zip          # Rebuild bundles and package docs\u002Freleases\u002Flm-subs-v0.2.8.zip\nnpm test             # Run unit, security, speed, export, and PGlite Postgres E2E tests\nnpm start            # Start unified Web App + \u002Fapi\u002F* Hono server on http:\u002F\u002F0.0.0.0:4173\n```\n\n---\n\n## About the creator\n\nCreated by **Sarang** ([`@sarang-cmd`](https:\u002F\u002Fgithub.com\u002Fsarang-cmd)), an aspiring computer science student and agentic engineer based in Germany.\n\n---\n\n## License\n\nReleased under the [MIT License](LICENSE). Independent open-source project, unaffiliated with Google LLC.\n","LM Subs 是一款专为 Google NotebookLM 视频概览设计的浏览器扩展，提供实时同步字幕、多格式字幕导出（SRT\u002FVTT\u002FTXT\u002FJSON）及可选加密云同步功能。核心特性包括支持 12 家 BYOK（自带密钥）语音转文字服务商（如 Groq、Mistral）、音频快速提取通道、基于 Neon 的端到端加密云端同步，以及完全离线可运行的 Manifest V3 架构。适用于需要在 NotebookLM 中高效处理视频内容、保障隐私且需灵活 STT 备份策略的研究者、教育工作者与知识管理者。","2026-11-24 04:41:14","CREATED_QUERY"]