Metadata-Version: 2.5
Name: research-hub-pipeline
Version: 1.5.0
Summary: Local research workspace linking literature, research artifacts, writing proposals, and human review through CLI, MCP, REST, and UI.
Project-URL: Homepage, https://github.com/WenyuChiou/research-hub
Project-URL: Repository, https://github.com/WenyuChiou/research-hub
Project-URL: Issues, https://github.com/WenyuChiou/research-hub/issues
License: MIT
License-File: LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.10
Requires-Dist: cryptography>=42
Requires-Dist: httpx<1.0,>=0.28.1
Requires-Dist: jsonschema<5,>=4.21
Requires-Dist: networkx<4.0,>=3.0
Requires-Dist: notebooklm-py==0.8.6
Requires-Dist: platformdirs<6.0,>=4.0
Requires-Dist: pyyaml<7,>=6
Requires-Dist: pyzotero<2.0,>=1.5.18
Requires-Dist: rapidfuzz<4.0,>=3.0
Requires-Dist: requests<3.0,>=2.34.2
Provides-Extra: browser-auth
Requires-Dist: browser-cookie3<1,>=0.20.1; extra == 'browser-auth'
Requires-Dist: notebooklm-py[cookies]==0.8.6; extra == 'browser-auth'
Provides-Extra: dev
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
Requires-Dist: pytest-mock>=3.10; extra == 'dev'
Requires-Dist: pytest-socket>=0.8.1; extra == 'dev'
Requires-Dist: pytest-split>=0.11.0; extra == 'dev'
Requires-Dist: pytest-timeout>=2.4.0; extra == 'dev'
Requires-Dist: pytest>=9.1.1; extra == 'dev'
Requires-Dist: responses>=0.26.3; extra == 'dev'
Provides-Extra: import
Requires-Dist: pdfplumber>=0.11.10; extra == 'import'
Requires-Dist: python-docx>=1.1; extra == 'import'
Requires-Dist: readability-lxml>=0.8; extra == 'import'
Requires-Dist: requests>=2.34.2; extra == 'import'
Provides-Extra: mcp
Requires-Dist: fastmcp>=4.1.3; extra == 'mcp'
Provides-Extra: playwright
Requires-Dist: notebooklm-py[browser]==0.8.6; extra == 'playwright'
Requires-Dist: patchright>=1.64.2; extra == 'playwright'
Provides-Extra: scholar
Requires-Dist: scholarly>=1.7; extra == 'scholar'
Provides-Extra: secrets
Requires-Dist: cryptography>=42; extra == 'secrets'
Description-Content-Type: text/markdown

<!-- mcp-name: io.github.WenyuChiou/research-hub -->

# research-hub

**Local-First AI Research Workstation** — connect **Claude Code**, **Codex**, **Gemini**, and **Antigravity** ([AI Research Skills](https://github.com/WenyuChiou/ai-research-skills)) with **Zotero**, **Obsidian (+ Bases)**, **NotebookLM**, and human-reviewed drafts in one verifiable local SQLite + SHA-256 ledger.

[繁體中文](README.zh-TW.md) · [Workspace guide](docs/workspace-guide.md) · [Setup guide](docs/setup.md) · [Architecture](docs/workspace-architecture.md) · [Changelog](CHANGELOG.md)

[![PyPI](https://img.shields.io/pypi/v/research-hub-pipeline.svg)](https://pypi.org/project/research-hub-pipeline/) [![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue.svg)](pyproject.toml) [![MIT license](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)

![Research Hub ecosystem hero poster showing AI agents on the left, live Reading Desk and Evidence Blind-Spot Radar workstation UI in the center, and Zotero, Obsidian, NotebookLM, and SHA-256 provenance on the right.](docs/images/hero-ecosystem.en.png)

## Quick start

<a id="start-here"></a>
<a id="workspace-preview"></a>

Install from [PyPI](https://pypi.org/project/research-hub-pipeline/) and launch the offline demo workstation in seconds:

```sh
pip install -U research-hub-pipeline
research-hub open --demo
```

`open --demo` starts a local server at [http://127.0.0.1:8765/app/](http://127.0.0.1:8765/app/) on `~/research-hub-workspace` (never overwriting existing data; pass `--root`, `--port`, or `--obsidian-vault`).

- **Path A — Use inside your AI host (zero install):** Load the [portable skill](skills/research-hub/) ([skill loading](docs/setup.md#installed-skill-files) · [host support](docs/ai-host-support.md)). No Hub installation, Zotero, Obsidian, or NotebookLM is required; Codex MCP is not release-verified. Ask: *“First request: Find papers on LLMs simulating human decisions. Include links, relevance, versions, and reading limits.”* Expect a source list in your host stating unknowns cleanly without claiming full text.
- **Path B — Visual Research Hub workstation:** Requires Python 3.10+, Git, and a local browser. Launch the [visual preview](#workspace-preview) above to inspect offline sample papers, Master Table, Matrix, and Evidence Radar; optional [result saving](docs/contracts/native-discovery-view.md) and [task handoff](docs/workspace-guide.md#writing-adapter-preview) write only to a selected destination and authorization.

<details>
<summary>Alternative: source install (`git clone`), manual launcher & two-path diagram</summary>

![Two starting paths: research with an available compatible AI host without Hub, or install Hub to view saved sources and proposals. Task handoff is optional. People review sources and evidence; saving is not reading or approval, and nothing is automatically published.](docs/images/research-entry-paths.en.svg)

```sh
git clone -c core.autocrlf=false https://github.com/WenyuChiou/research-hub.git
cd research-hub
```

**macOS / Linux**

```sh
python3 -m venv .venv
./.venv/bin/python -m pip install -e .
./.venv/bin/python -m research_hub open --demo
```

**Windows PowerShell**

```powershell
py -3 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e .
.\.venv\Scripts\python.exe -m research_hub open --demo
```

- **Manual two-step launch:** Run `python -m research_hub project demo --root ./workspace-demo --json` followed by `python -m research_hub serve --workspace --root ./workspace-demo`.
- **Capture provenance:** Workstation showcase screenshots were captured on Windows 11 (`b2ca1ad` / `45c5fcc`) against offline demo fixtures (`review-demo`, `llm-decision-showcase`); `summation-demo` provides a numeric starter workspace. Cross-platform CI and historical Linux rehearsals (`2026-11-07`) live in [verification history](docs/readme-verification-history.md#source-demo-first-task-2026-11-07).

<a id="published-dashboard"></a>

- **Legacy HTML dashboard (`1.2.0`):** `pip install research-hub-pipeline==1.2.0` and `research-hub dashboard --sample` ([setup](docs/setup.md) · [tour](docs/dashboard-walkthrough.md)).

</details>

## How to use in 3 steps

<a id="first-run-checklist"></a>

Try your first 60-second walkthrough directly in the running demo:

1. Choose `DEMO: floating-point reading and review outline` (`review-demo`) in **Projects**.
2. Open **Literature** and click **What Every Computer Scientist Should Know About Floating-Point Arithmetic**.
3. Verify the selected paper displays DOI `10.1145/103162.103163` alongside **Unverified**, **Coverage unknown**, and **No summary saved**—then try `#domain:*` / `#method:*` labels, **Master table**, **Matrix**, `Ctrl+K` (`⌘K`), or `Ctrl+J` (`✦ AI Assistant`). See [bring your own project](docs/workspace-guide.md#bring-your-own-project) when ready.

## Features & workstation tour

| Page | Role in your workflow |
|---|---|
| **Overview** | Pipeline stepper, publication timeline, scope donut, and **Evidence Blind-Spot Radar**. |
| **Literature** | **Reader**, **Master table** (`Markdown` / `CSV`), **Matrix**, `#` labels, **APA / BibTeX / RIS**, and Obsidian snapshot browsing. |
| **Evidence** | Bind claims to verified source IDs and catch abstract-only or single-source fragility early. |
| **Design & results** | Track research methods, run receipts (`research-hub context record-run`), limitations, and SHA-256 artifacts. |
| **Manuscript** | Track **Word**, **LaTeX**, or **Markdown** drafts, input freshness, and `.paper/claims.yml` / `.paper/figures.yml` links. |
| **Review & delivery** | Review AI proposals (`awaiting_human`), approve decisions locally, and package verified delivery ZIPs. |

> *Click any screenshot below to view full `2880×1800` workstation details.*

[![Research Hub Literature Reading Desk in Light Mode showing the dark AI-IDE sidebar, Reader / Master table / Matrix view switcher, scoped labels, Quick Cite bar, screening status, and honest coverage limits on offline review-demo data.](docs/images/workspace-ui.en.png)](docs/images/workspace-ui.en.png)

[![Light Mode Overview showing the 4-stage pipeline stepper, publication year distribution, coverage triage donut, and 4-quadrant Evidence Risk and Blind-Spot Radar.](docs/images/showcase-overview-radar.en.png)](docs/images/showcase-overview-radar.en.png)

[![Dark Mode Literature Reading Desk showing deep-slate surfaces, reading scope breakdown, scoped labels, saved summary, and 1-click APA, BibTeX, citekey, and RIS actions.](docs/images/showcase-dark-desk.en.png)](docs/images/showcase-dark-desk.en.png)

<details>
<summary>More screenshots & diagrams: Literature Matrix, Settings Sync Hub, Lifecycle & AI Writing Flow</summary>

[![Dark Mode Literature Synthesis Matrix cross-tabulating papers against reading scope, screening triage, evidence citation counts, and scoped theme label columns.](docs/images/showcase-dark-matrix.en.png)](docs/images/showcase-dark-matrix.en.png)

[![Settings Center showing Connections and Sync, live status LEDs, HD Obsidian, Zotero, and NotebookLM cards, local bundle receipts, and Overleaf BibTeX, EndNote RIS, Quarto CSL-JSON, and APA 7th exports.](docs/images/showcase-settings-sync.en.png)](docs/images/showcase-settings-sync.en.png)

![Concept diagram: research questions connect literature, evidence, analysis, manuscript proposals, and human review; changed inputs return work for review.](docs/images/workspace-lifecycle.en.png)

![Concept diagram: a researcher prepares a task, uses a portable AI handoff or a connected Codex prose worker, checks the proposal, and explicitly accepts or requests changes.](docs/images/workspace-writing.en.png)

</details>

## Integrations & AI workflow

<a id="connect-your-ai-host"></a>

| Integration | Quick setup (`⚙ Settings` or CLI) | One-click sync & output |
|---|---|---|
| **Zotero** | Save `ZOTERO_LIBRARY_ID` + encrypted `ZOTERO_API_KEY` (overrides ambient env vars) | **Dry-run preview** → attach/create `[Research Hub] <Project>` collection |
| **Obsidian (+ Bases)** | Pass `--obsidian-vault` or save Vault path in **Settings** (unified read-only validation + browsing) | Export `.md` notes + `.base` views under `.research/exports/` & open via `obsidian://` |
| **NotebookLM** | Sign in via `notebooklm login --auto-detect` or import `state.json` | Build bounded source packs & click **`☁ Upload to NotebookLM`** (`upload_receipt.json`) |
| **AI Assistant & MCP** | Press `Ctrl+J` (`⌘J`) or connect [MCP / REST](docs/ai-integrations.md) | Propose bounded curations, tags, syncs, or **APA / BibTeX / RIS / CSL** export |

- **Honest evidence boundaries:** Resolvable DOIs never prove claim support; unparsed PDFs and parallel translations never count as full-text reading.
- **Reproducible Stage 4–6 provenance:** Isolate delegate edits (`context check-scope`), record immutable run receipts (`context record-run`), and verify `.paper/claims.yml` ↔ `.paper/figures.yml` reciprocity (`--strict`).
- **Human review before export:** Both **Portable handoff** and **Connected Codex / Assistant** modes stage proposals as `awaiting_human`; delivery ZIPs package restricted sources only when explicitly authorized. See [paper-summarize](skills/paper-summarize/) ([native summary CLI](docs/cli-reference.md#native-authored-source-summaries) · [contract](docs/native-source-summary.md) · [reader guide](src/research_hub/skills_data/research-hub/references/native-discovery-export.md)).

## Documentation & configuration

<a id="credential-reference"></a>
<details>
<summary>Environment variables & optional extras (`research-hub doctor`)</summary>

Run `research-hub doctor` to inspect destination health. Optional extras: Researcher / Humanities (`[playwright,secrets]`), Analyst / Internal KM (`[import,secrets]`).

<!-- env-vars-table-start -->

| Name | Required | Purpose |
|---|---|---|
| `ZOTERO_API_KEY` | Zotero only | Zotero API authentication |
| `ZOTERO_LIBRARY_ID` | Zotero only | Zotero library identifier |
| `SEMANTIC_SCHOLAR_API_KEY` | no | Optional search API key |
| `SEMANTIC_SCHOLAR_RPS` | no | Optional search request-rate override |
| `TAVILY_API_KEY` | no | Optional web search backend |
| `BRAVE_API_KEY` | no | Optional web search backend |

<!-- env-vars-table-end -->

</details>

- **Guides:** [Workspace guide](docs/workspace-guide.md) · [Architecture](docs/workspace-architecture.md) · [CLI](docs/cli-reference.md) · [MCP tools](docs/mcp-tools.md) · [Stable API](docs/stable-api.md) · [Capability baseline](docs/capability-baseline.md)
- **Project:** [Changelog](CHANGELOG.md) · [Upgrade guide](UPGRADE.md) · [Verification history](docs/readme-verification-history.md) · [Contributing](CONTRIBUTING.md) · [Releasing](docs/RELEASING.md) · [MIT License](LICENSE)
