paperquay-mineru

Installation
SKILL.md

PaperQuay (Keyless MinerU Fork)

Guide for working with Ferryyer/PaperQuay (keyless-mineru branch), an Electron + React + TypeScript local-first AI academic paper workspace adding keyless MinerU lightweight PDF parsing and PDF cover-card library views on top of upstream PaperQuay.

Key Architecture

  • Electron Main & Local Backend (electron/):
    • electron/backend/mineruCommands.cjs — Dual-mode MinerU integration:
      • Keyless lightweight mode (when Token is empty): signed PDF upload → async status polling → Markdown download & local cache → reading block reconstruction and full-text translation. Constraints: <= 10 MB, <= 20 pages, returns Markdown without PDF region coordinates, subject to IP rate limits.
      • Token precision mode (when Token or custom MinerU API URL is configured): preserves upstream coordinate-aware structural parsing.
    • electron/backend/libraryDatabaseStore.cjs & libraryStore.cjs — Local SQLite metadata, attachment migration, and cover previews.
    • electron/backend/noteStore.cjs — Tiptap/ProseMirror rich notes, bidirectional links, and external-change detection.
    • electron/backend/ragStore.cjs — Local vector indexing (sqlite-vec) with clickable source block/page citations.
    • electron/backend/aiCommands.cjs & knowledgeGraphCommands.cjs — OpenAI-compatible translation, paper overview, knowledge graph, and Agent tool calls.
  • Renderer (src/): React + TypeScript + Tailwind + PDF.js + Tiptap + Cytoscape + Zustand.

Development & Build Commands

Installs
3
First Seen
2 days ago