No description
Find a file
wujunchen 6e83d216c2 feat: add generate button to empty state panel
When a note has no cached parallel notes, the empty state now shows a
clickable "Generate" button so users can trigger generation directly
without going through the command palette. Closes #2.

Change-Id: I879897168ef77c44e0ab570e9c094fa9af9f66d4
2026-04-27 10:24:05 +08:00
.github/workflows ci: add GitHub Actions workflow for build, typecheck, test, and lint 2026-04-26 09:31:38 +08:00
scripts chore: check build artifact consistency 2026-04-26 18:22:11 +08:00
src feat: add generate button to empty state panel 2026-04-27 10:24:05 +08:00
tests test: cover cache manager with fake adapter 2026-04-26 18:31:17 +08:00
.editorconfig chore: add .editorconfig for consistent formatting 2026-04-25 23:48:27 +08:00
.gitignore refactor: remove CLI backends, add Chinese README 2026-04-26 09:57:30 +08:00
biome.json refactor: upgrade Biome lint rules 2026-04-26 06:16:36 +00:00
esbuild.config.mjs feat: add TypeScript build and provider architecture 2026-04-25 14:12:17 +08:00
LICENSE init: Obsidian Parallel Reader v0.1.0 2026-04-24 19:31:23 +08:00
main.js feat: add generate button to empty state panel 2026-04-27 10:24:05 +08:00
main.ts fix: remove unnecessary async from catch handler 2026-04-26 21:12:16 +08:00
manifest.json chore: bump version to 1.0.2 2026-04-26 16:01:39 +08:00
package-lock.json chore: add eslint tooling dependencies 2026-04-26 19:25:51 +08:00
package.json chore: add eslint tooling dependencies 2026-04-26 19:25:51 +08:00
README.md docs: simplify CLI backend description to match auto-detection 2026-04-26 12:14:19 +08:00
README.zh-CN.md docs: simplify CLI backend description to match auto-detection 2026-04-26 12:14:19 +08:00
styles.css feat: add generate button to empty state panel 2026-04-27 10:24:05 +08:00
tsconfig.json refactor: enable full TypeScript strict mode 2026-04-26 09:21:54 +08:00
versions.json chore: bump version to 1.0.1 2026-04-26 11:29:32 +08:00

Release CI License Stars

Obsidian Parallel Reader

中文文档

Split-view reading for Obsidian — your original note on the left, AI-generated summary cards on the right, with scroll-sync highlighting.

Inspired by this reading workflow demo.

Features

  • Adaptive segmentation — the LLM decides natural topic boundaries. Short sections merge, long ones split. No dependency on markdown headings.
  • Scroll-sync — scrolling the editor auto-highlights the matching card on the right.
  • Streaming — real-time SSE streaming for OpenAI Chat and Anthropic APIs, so you see progress as it generates.
  • 20+ providers — Anthropic, OpenAI, Gemini, OpenRouter, Groq, DeepSeek, Moonshot, Ollama, LM Studio, and more. Plus Claude Code CLI and Codex CLI backends.
  • Persistent cache — summaries are cached by content SHA-1 + settings fingerprint. Reopen a note and cards appear instantly. Edits or config changes show a stale banner.
  • Rich rendering — cards render through Obsidian's MarkdownRenderer, so tables, bold, code, and wikilinks all work natively.
  • Card editing — right-click any card to copy, edit, delete, or jump to source.
  • Export — save cards as a Markdown note in your vault, or copy to clipboard.
  • Bilingual UI — full Chinese and English support for commands, settings, and notices.

Quick Start

Step 1: Install the Plugin

  1. Go to the Releases page and download three files from the latest release: main.js, manifest.json, styles.css
  2. Open your vault folder, navigate to .obsidian/plugins/ (create it if it doesn't exist), and create a new folder called parallel-reader
  3. Put the three downloaded files into that folder
  4. Open Obsidian → SettingsCommunity plugins → find Parallel Reader → toggle it on

Tip: Can't see the .obsidian folder? On macOS press Cmd+Shift+. in Finder; on Windows enable "Show hidden files" in File Explorer.

Step 2: Set Up Your AI Provider

  1. In Obsidian, go to SettingsParallel Reader
  2. Choose a Provider preset (e.g. Anthropic, OpenAI, DeepSeek, etc.)
  3. Paste your API Key
  4. (Optional) Change the Model if you prefer a different one
  5. Click Test to verify the connection

That's it! Open any note and run the command "Parallel Reader: Generate" from the command palette (Cmd/Ctrl+P).

Supported providers
Provider Notes
Anthropic Default, recommended
OpenAI GPT models
Google Gemini Gemini models
OpenRouter / Groq / DeepSeek / Moonshot / ... OpenAI-compatible
Ollama / LM Studio Local models, no API key needed
Custom endpoint Any OpenAI or Anthropic compatible API
CLI backends (advanced)

If you have Claude Code or Codex installed locally, you can use them as backends instead of API keys. Just switch the backend in settings — the plugin automatically detects common install locations. If auto-detection fails, you can manually enter the path in settings.

Usage

Action Effect
Click a card Jump editor to that section
Right-click a card Context menu: copy, edit, delete, jump to source
Scroll the editor Right-side card auto-highlights
Alt+↑ / Alt+↓ Navigate between cards
Enter in summary pane Jump to active card's source line
Ribbon icon Open the parallel reader pane
File context menu Generate / regenerate / clear cache

How It Works

The LLM returns structured JSON:

{
  "cards": [
    {
      "title": "Short heading",
      "anchor": "Verbatim quote from source for positioning",
      "gist": "One-sentence lead-in",
      "bullets": ["Supporting detail 1", "Supporting detail 2"]
    }
  ]
}

Anchor is the key mechanism — a verbatim quote that the plugin locates via indexOf with multi-level fallbacks, keeping scroll-sync working without relying on headings.

Gist + bullets gives both overview and scannable detail — pure prose felt like a wall of text, pure bullets felt fragmented.

Development

npm install
npm run dev       # watch mode
npm run build     # production build
npm run typecheck # TypeScript strict mode
npm run lint      # Biome
npm test          # build + typecheck + tests

Star History

Star History Chart

License

MIT