Metadata-Version: 2.4
Name: notebooklm-chunker
Version: 0.7.0
Summary: Turn long PDFs into chunked NotebookLM workflows with Studio outputs
Author: cmlonder
License-Expression: MIT
Project-URL: Homepage, https://github.com/cmlonder/notebooklm-chunker
Project-URL: Repository, https://github.com/cmlonder/notebooklm-chunker
Project-URL: Issues, https://github.com/cmlonder/notebooklm-chunker/issues
Keywords: notebooklm,pdf,chunking,study-tools,llm
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Education
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Text Processing
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: notebooklm-py[browser]<0.9,>=0.8.6
Requires-Dist: pymupdf>=1.24.0
Provides-Extra: dev
Requires-Dist: build>=1.2.2; extra == "dev"
Requires-Dist: twine>=5.1.1; extra == "dev"
Requires-Dist: ruff>=0.8.0; extra == "dev"
Requires-Dist: mypy>=1.13.0; extra == "dev"
Requires-Dist: coverage>=7.6.0; extra == "dev"
Dynamic: license-file

<p align="center">
  <img src="desktop/renderer/chunker-mark.svg" width="96" height="96" alt="NotebookLM Chunker">
</p>

<h1 align="center">notebooklm-chunker</h1>

<p align="center">
  <a href="https://github.com/cmlonder/notebooklm-chunker/actions/workflows/ci.yml"><img src="https://github.com/cmlonder/notebooklm-chunker/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
  <a href="https://github.com/cmlonder/notebooklm-chunker/actions/workflows/desktop-release.yml"><img src="https://github.com/cmlonder/notebooklm-chunker/actions/workflows/desktop-release.yml/badge.svg" alt="Desktop Release"></a>
  <a href="https://badge.fury.io/py/notebooklm-chunker"><img src="https://badge.fury.io/py/notebooklm-chunker.svg" alt="PyPI version"></a>
  <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
</p>

<p align="center">Turn long documents into smaller, heading-aware NotebookLM sources so reports, slide decks, quizzes, flashcards, and audio outputs stay more focused and useful.</p>

## Install

**Desktop app** — download it from [GitHub Releases](https://github.com/cmlonder/notebooklm-chunker/releases), open it, and sign in with Google. Nothing else to install: the app carries its own `nblm` engine.

- **macOS**: `.dmg` or `.zip` (Apple Silicon)
- **Windows**: `.exe` installer or portable
- **Linux**: `.AppImage` or `.deb`

The builds are not code-signed. On macOS, open the app once, then allow it under System Settings → Privacy & Security → Open Anyway.

Sign-in opens a browser window. The app uses Google Chrome or Microsoft Edge if you have one, and otherwise downloads Chromium (about 150 MB) the first time.

**CLI** — the same engine from a terminal:

```bash
pip install notebooklm-chunker
nblm login
```

## Quick Start (CLI)

```bash
nblm init
nblm run --config ./nblm.toml
nblm resume --config ./nblm.toml
nblm studios --config ./quiz.toml
```

`run` starts fresh, `resume` continues an interrupted run, and `studios` adds Studio outputs later (here from a second workflow file) without re-uploading. Full reference: **[CLI.md](CLI.md)**.

## Desktop App

A visual workflow from PDF to NotebookLM Studio outputs.

### Chunk size

Set the page range per chunk and skip front matter or the index. Chunks split at headings; when the PDF has a table of contents, chapter starts win over sub-sections.

<img src="docs/screenshots/structure.png" width="720" alt="Chunk size">

### Sources

Review, search, and edit chunks before syncing.

<img src="docs/screenshots/sources.png" width="720" alt="Sources">

### NotebookLM

Browse your notebooks and open one to see its synced sources.

<img src="docs/screenshots/notebooklm-dashboard.png" width="720" alt="NotebookLM">

### Studio Builder

Pick sources, then queue any of the nine Studio types — report, slide deck, quiz, flashcards, audio, video, infographic, mind map, data table — for the selection or one per source.

<img src="docs/screenshots/notebooklm-detail.png" width="720" alt="Studio Builder">

### Queue

Track jobs by type and status. A Studio type that runs out of quota pauses and retries by itself; the others keep going.

<img src="docs/screenshots/notebooklm-queue.png" width="720" alt="Queue">

### Studio defaults

Language, format, and parallel limits per Studio type.

<img src="docs/screenshots/settings.png" width="720" alt="Studio defaults">

### Also

| Feature | Description |
|---|---|
| **Resume** | Sync tracks each chunk, so an interrupted upload continues where it stopped |
| **Prompt library** | Reusable prompts per Studio type |
| **Versions** | Several chunkings of one PDF, each with its own sync and Studio state |
| **Accounts** | Switch between Google accounts |
| **Offline** | Chunk and edit without a network connection |

### Run from source (repo demo)

```bash
cd desktop
npm install
npm run dev
```

From source the app uses `nblm` from your PATH, or the bundled engine once you build it with `bash scripts/build_sidecar.sh`.

---

## Development

For setup, testing, packaging, and GitHub release flow, see [DEVELOPMENT.md](DEVELOPMENT.md).

## License

MIT
