How pixelxzen/zisuzi-weread-mp works
Zisuzi-Weread-MP is an Obsidian desktop plugin that imports WeRead public-account articles into a local Markdown vault. The main workflow is QR login, choosing shelf accounts, scheduled or manual polling, fetching article content and media, converting it to Markdown, and saving notes. The plugin also supports historical backfills, multiple library views, optional AI and local-agent workflows, and a companion skill pack. Some connections are documented in the README or SOURCE INDEX rather than shown in sampled implementation excerpts; those limits are reflected in the evidence paths.
Main entry points: main.ts Plugin orchestration · weread.ts WeRead API client · backfill-modal.ts Backfill dialog · view-linear.ts Library views
Components 23
Obsidian plugin
- Plugin orchestration
src/main.ts - QR login and access probe
src/main.ts - Library views
src/host/view-linear.ts - Alternate view modes
src/host/view-modes.ts - Card view
src/host/view-cards.ts - Backfill dialog
src/host/backfill-modal.ts
Article capture
- WeRead API client
src/core/weread.ts - API transport helpers
src/core/weread-api.ts - Article pagination
src/core/paging.ts - Backfill state model
src/core/bf.ts - HTML to Markdown
src/core/html2md.ts - Image and media assets
src/core/assets.ts
Local library
- Note archive
src/main.ts - Parsing and runtime adapters
src/core/typed.ts
Optional extensions
- AI article processing
src/core/llm.ts - Agent skill pack
src/core/skill-pack.ts - Feed monitor companion
skill/weread-mp-monitor/scripts/weread_mp_monitor.js
Other components
- WeRead user
- Obsidian host
- WeRead services
- Markdown vault
- OpenAI-compatible endpoint
- Local agent CLI
Connections 30
- WeRead user → Plugin orchestration: operates
README.md - Obsidian host → Plugin orchestration: hosts
README.md - Plugin orchestration → QR login and access probe: manages login
src/main.ts - QR login and access probe → WeRead services: probes access
src/main.ts - QR login and access probe → WeRead API client: checks session
src/main.ts - Plugin orchestration → WeRead API client: requests articles
src/main.ts - WeRead API client → WeRead services: fetches feeds
README.md - Plugin orchestration → Article pagination: uses paging
src/main.ts - WeRead API client → API transport helpers: uses API helpers
src/core/weread.ts - Plugin orchestration → HTML to Markdown: converts content
src/main.ts - Plugin orchestration → Image and media assets: downloads media
src/main.ts - Plugin orchestration → Note archive: writes notes
README.md - Image and media assets → Markdown vault: saves assets
README.md - Note archive → Markdown vault: stores Markdown
README.md - Plugin orchestration → Library views: provides library
src/main.ts - Plugin orchestration → Alternate view modes: registers modes
src/main.ts - Plugin orchestration → Card view: registers view
src/main.ts - Library views → Backfill dialog: opens dialog
src/host/view-linear.ts - Alternate view modes → Backfill dialog: opens dialog
src/host/view-modes.ts - Backfill dialog → Plugin orchestration: runs archive
src/host/backfill-modal.ts - Plugin orchestration → Backfill state model: tracks progress
src/main.ts - Plugin orchestration → Parsing and runtime adapters: uses parsing
src/main.ts - WeRead API client → Parsing and runtime adapters: parses responses
src/core/weread.ts - Plugin orchestration → AI article processing: offers AI actions
src/main.ts - AI article processing → OpenAI-compatible endpoint: sends completions
README.md - Plugin orchestration → Agent skill pack: renders and installs
src/main.ts - Agent skill pack → Markdown vault: guides archive queries
src/core/skill-pack.ts - WeRead user → Feed monitor companion: runs companion
- Feed monitor companion → WeRead services: monitors feeds
- Plugin orchestration → Local agent CLI: invokes CLI
README.md