papersearch 0.4.9 → 0.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/LICENSE +1 -1
  2. package/NOTICE +23 -0
  3. package/README.en.md +136 -247
  4. package/README.md +136 -247
  5. package/assets/carsi-flow.en.png +0 -0
  6. package/assets/carsi-flow.png +0 -0
  7. package/assets/overview.en.png +0 -0
  8. package/assets/overview.png +0 -0
  9. package/assets/progress-capsule.en.png +0 -0
  10. package/assets/progress-capsule.png +0 -0
  11. package/carsi/README.md +6 -7
  12. package/carsi/paper_search_carsi/adapters/elsevier/__init__.py +1 -1
  13. package/carsi/paper_search_carsi/adapters/ieee/__init__.py +1 -1
  14. package/carsi/paper_search_carsi/adapters/iop/__init__.py +8 -2
  15. package/carsi/paper_search_carsi/adapters/jama/__init__.py +3 -1
  16. package/carsi/paper_search_carsi/adapters/karger/__init__.py +2 -1
  17. package/carsi/paper_search_carsi/adapters/lww/ovid.py +2 -2
  18. package/carsi/paper_search_carsi/adapters/oup/__init__.py +3 -4
  19. package/carsi/paper_search_carsi/adapters/platforms/silverchair/__init__.py +23 -0
  20. package/carsi/paper_search_carsi/adapters/world_scientific/__init__.py +5 -4
  21. package/carsi/paper_search_carsi/assets/capsule.html +134 -18
  22. package/carsi/paper_search_carsi/browser/backend.py +269 -233
  23. package/carsi/paper_search_carsi/browser/batch_session.py +42 -0
  24. package/carsi/paper_search_carsi/browser/challenge_interaction.py +28 -9
  25. package/carsi/paper_search_carsi/browser/cookies.py +8 -8
  26. package/carsi/paper_search_carsi/browser/driver.py +29 -0
  27. package/carsi/paper_search_carsi/browser/engine.py +17 -23
  28. package/carsi/paper_search_carsi/browser/foreground.py +21 -15
  29. package/carsi/paper_search_carsi/browser/login.py +12 -18
  30. package/carsi/paper_search_carsi/browser/preview.py +31 -12
  31. package/carsi/paper_search_carsi/browser/profiles.py +16 -23
  32. package/carsi/paper_search_carsi/browser/watchdog.py +113 -58
  33. package/carsi/paper_search_carsi/cli.py +22 -7
  34. package/carsi/paper_search_carsi/cold_start.py +65 -51
  35. package/carsi/paper_search_carsi/config.py +6 -4
  36. package/carsi/paper_search_carsi/download_diagnostics.py +2 -1
  37. package/carsi/paper_search_carsi/engine/batch.py +17 -7
  38. package/carsi/paper_search_carsi/engine/batch_capture.py +97 -31
  39. package/carsi/paper_search_carsi/engine/batch_common.py +56 -16
  40. package/carsi/paper_search_carsi/engine/batch_diagnostics.py +3 -0
  41. package/carsi/paper_search_carsi/engine/batch_institution.py +132 -13
  42. package/carsi/paper_search_carsi/engine/batch_login.py +151 -18
  43. package/carsi/paper_search_carsi/engine/batch_user.py +1 -1
  44. package/carsi/paper_search_carsi/engine/batch_waits.py +21 -7
  45. package/carsi/paper_search_carsi/engine/bridge.py +23 -13
  46. package/carsi/paper_search_carsi/engine/login_wait.py +1 -1
  47. package/carsi/paper_search_carsi/engine/supplements.py +36 -2
  48. package/carsi/paper_search_carsi/mcp_progress.py +13 -5
  49. package/carsi/paper_search_carsi/network.py +1 -1
  50. package/carsi/paper_search_carsi/progress_capsule.py +6 -2
  51. package/carsi/paper_search_carsi/progress_reporter.py +107 -9
  52. package/carsi/paper_search_carsi/progress_view.py +78 -1
  53. package/carsi/paper_search_carsi/server.py +53 -10
  54. package/carsi/paper_search_carsi/session_broker.py +1 -1
  55. package/carsi/pyproject.toml +7 -7
  56. package/dist/capabilities/journal-metrics/JournalMetricsService.d.ts.map +1 -1
  57. package/dist/capabilities/journal-metrics/JournalMetricsService.js +2 -1
  58. package/dist/capabilities/journal-metrics/JournalMetricsService.js.map +1 -1
  59. package/dist/capabilities/pdf-discovery/OpenAccessFallbackService.d.ts.map +1 -1
  60. package/dist/capabilities/pdf-discovery/OpenAccessFallbackService.js +6 -0
  61. package/dist/capabilities/pdf-discovery/OpenAccessFallbackService.js.map +1 -1
  62. package/dist/capabilities/pdf-discovery/batch.d.ts +2 -0
  63. package/dist/capabilities/pdf-discovery/batch.d.ts.map +1 -1
  64. package/dist/capabilities/pdf-discovery/batch.js +59 -14
  65. package/dist/capabilities/pdf-discovery/batch.js.map +1 -1
  66. package/dist/capabilities/pdf-discovery/batchSummary.d.ts +28 -0
  67. package/dist/capabilities/pdf-discovery/batchSummary.d.ts.map +1 -0
  68. package/dist/capabilities/pdf-discovery/batchSummary.js +155 -0
  69. package/dist/capabilities/pdf-discovery/batchSummary.js.map +1 -0
  70. package/dist/capabilities/pdf-discovery/carsi/CarsiAttempt.d.ts +1 -0
  71. package/dist/capabilities/pdf-discovery/carsi/CarsiAttempt.d.ts.map +1 -1
  72. package/dist/capabilities/pdf-discovery/carsi/CarsiAttempt.js +56 -1
  73. package/dist/capabilities/pdf-discovery/carsi/CarsiAttempt.js.map +1 -1
  74. package/dist/capabilities/pdf-discovery/carsi/CarsiMcpClient.d.ts +11 -4
  75. package/dist/capabilities/pdf-discovery/carsi/CarsiMcpClient.d.ts.map +1 -1
  76. package/dist/capabilities/pdf-discovery/carsi/CarsiMcpClient.js +114 -30
  77. package/dist/capabilities/pdf-discovery/carsi/CarsiMcpClient.js.map +1 -1
  78. package/dist/capabilities/pdf-discovery/carsi/CarsiReadiness.d.ts +6 -0
  79. package/dist/capabilities/pdf-discovery/carsi/CarsiReadiness.d.ts.map +1 -1
  80. package/dist/capabilities/pdf-discovery/carsi/CarsiReadiness.js +12 -0
  81. package/dist/capabilities/pdf-discovery/carsi/CarsiReadiness.js.map +1 -1
  82. package/dist/capabilities/pdf-discovery/carsi/index.d.ts +2 -2
  83. package/dist/capabilities/pdf-discovery/carsi/index.d.ts.map +1 -1
  84. package/dist/capabilities/pdf-discovery/carsi/index.js +1 -1
  85. package/dist/capabilities/pdf-discovery/carsi/index.js.map +1 -1
  86. package/dist/capabilities/pdf-discovery/carsi/types.d.ts +48 -0
  87. package/dist/capabilities/pdf-discovery/carsi/types.d.ts.map +1 -1
  88. package/dist/capabilities/pdf-discovery/handler.d.ts.map +1 -1
  89. package/dist/capabilities/pdf-discovery/handler.js +11 -6
  90. package/dist/capabilities/pdf-discovery/handler.js.map +1 -1
  91. package/dist/capabilities/pdf-discovery/tiers/publisherApi.d.ts.map +1 -1
  92. package/dist/capabilities/pdf-discovery/tiers/publisherApi.js +2 -1
  93. package/dist/capabilities/pdf-discovery/tiers/publisherApi.js.map +1 -1
  94. package/dist/capabilities/pdf-discovery/types.d.ts +3 -0
  95. package/dist/capabilities/pdf-discovery/types.d.ts.map +1 -1
  96. package/dist/cli.js +30 -15
  97. package/dist/cli.js.map +1 -1
  98. package/dist/config/ConfigService.d.ts.map +1 -1
  99. package/dist/config/ConfigService.js +28 -2
  100. package/dist/config/ConfigService.js.map +1 -1
  101. package/dist/config/apiKeySignup.d.ts +13 -0
  102. package/dist/config/apiKeySignup.d.ts.map +1 -0
  103. package/dist/config/apiKeySignup.js +32 -0
  104. package/dist/config/apiKeySignup.js.map +1 -0
  105. package/dist/infrastructure/runlog/failureClass.d.ts.map +1 -1
  106. package/dist/infrastructure/runlog/failureClass.js +4 -0
  107. package/dist/infrastructure/runlog/failureClass.js.map +1 -1
  108. package/dist/management/capability-profile/index.d.ts +7 -0
  109. package/dist/management/capability-profile/index.d.ts.map +1 -1
  110. package/dist/management/capability-profile/index.js +7 -0
  111. package/dist/management/capability-profile/index.js.map +1 -1
  112. package/dist/management/carsi/installer.d.ts +26 -14
  113. package/dist/management/carsi/installer.d.ts.map +1 -1
  114. package/dist/management/carsi/installer.js +118 -74
  115. package/dist/management/carsi/installer.js.map +1 -1
  116. package/dist/management/carsi/runtime.d.ts +12 -1
  117. package/dist/management/carsi/runtime.d.ts.map +1 -1
  118. package/dist/management/carsi/runtime.js +30 -1
  119. package/dist/management/carsi/runtime.js.map +1 -1
  120. package/dist/management/diagnostics/index.d.ts.map +1 -1
  121. package/dist/management/diagnostics/index.js +4 -1
  122. package/dist/management/diagnostics/index.js.map +1 -1
  123. package/dist/management/failures/exportReport.js +3 -3
  124. package/dist/management/reports/index.d.ts.map +1 -1
  125. package/dist/management/reports/index.js +6 -1
  126. package/dist/management/reports/index.js.map +1 -1
  127. package/dist/platforms/SemanticScholarSearcher.d.ts.map +1 -1
  128. package/dist/platforms/SemanticScholarSearcher.js +2 -1
  129. package/dist/platforms/SemanticScholarSearcher.js.map +1 -1
  130. package/package.json +3 -2
  131. package/skills/paper-search/SKILL.md +9 -9
  132. package/skills/paper-search/references/browser-download.md +7 -6
  133. package/skills/paper-search/references/capability-routing.md +3 -3
  134. package/skills/paper-search/references/carsi-setup.md +8 -7
  135. package/skills/paper-search/references/cli-contract.md +6 -6
  136. package/skills/paper-search/references/management-layer.md +3 -3
  137. package/skills/paper-search/references/publisher-support.md +2 -0
  138. package/skills/paper-search/references/troubleshooting.md +1 -2
  139. package/carsi/paper_search_carsi/assets/quiet-browser/api.js +0 -142
  140. package/carsi/paper_search_carsi/assets/quiet-browser/manifest.json +0 -24
  141. package/carsi/paper_search_carsi/assets/quiet-browser/schema.json +0 -1
  142. package/carsi/paper_search_carsi/browser/background.py +0 -68
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Dianel555
3
+ Copyright (c) 2026 dr-dumpling
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/NOTICE ADDED
@@ -0,0 +1,23 @@
1
+ PaperSearch
2
+ The command started as an adaptation of paper-search-mcp-nodejs
3
+ (https://github.com/Dianel555/paper-search-mcp-nodejs), MIT License. Its notice:
4
+
5
+ Copyright (c) 2025 Dianel555
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
package/README.en.md CHANGED
@@ -1,321 +1,210 @@
1
1
  <p align="center">
2
- <img src="assets/logo.svg" width="112" alt="PaperSearch logo">
2
+ <img src="assets/logo.svg" width="80" alt="PaperSearch logo">
3
3
  </p>
4
4
 
5
5
  <h1 align="center">PaperSearch</h1>
6
6
 
7
- <p align="center"><b>Let your AI tools search the literature, verify citations, and download full texts and supplementary files.</b></p>
7
+ <p align="center"><b>A lightweight, fully automated all-in-one literature tool for AI</b><br>
8
+ Tell your AI tool once: it searches, verifies and downloads full texts and supplementary files through a deeply optimized flow in the background, without interrupting your work.</p>
8
9
 
9
10
  <p align="center">
10
- <a href="https://www.npmjs.com/package/papersearch"><img src="https://img.shields.io/npm/v/papersearch" alt="npm"></a>
11
- <img src="https://img.shields.io/node/v/papersearch" alt="Node.js">
12
- <img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License">
13
- <a href="https://linux.do"><img src="https://img.shields.io/badge/LinuxDo-community-1f6feb" alt="LinuxDo"></a>
11
+ <a href="https://www.npmjs.com/package/papersearch"><img src="https://img.shields.io/npm/v/papersearch?style=flat-square" alt="npm"></a>
12
+ <a href="https://github.com/dr-dumpling/PaperSearch/actions/workflows/publish.yml"><img src="https://img.shields.io/github/actions/workflow/status/dr-dumpling/PaperSearch/publish.yml?style=flat-square&amp;label=publish" alt="Publish workflow status"></a>
13
+ <a href="https://nodejs.org/"><img src="https://img.shields.io/node/v/papersearch?style=flat-square" alt="Required Node.js version"></a>
14
+ <a href="#1-school-subscription-downloads-carsi"><img src="https://img.shields.io/badge/CARSI-supported-7284CE?style=flat-square" alt="School subscription downloads (CARSI)"></a>
15
+ <a href="docs/guide.en.md#agent-skill"><img src="https://img.shields.io/badge/Agent%20Skill-bundled-D97757?style=flat-square" alt="Bundled Agent Skill"></a>
16
+ <a href="#quick-start"><img src="https://img.shields.io/badge/platform-macOS%20%7C%20Windows-555555?style=flat-square" alt="Runs on macOS and Windows"></a>
17
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-2F9E44?style=flat-square" alt="MIT license"></a>
14
18
  </p>
15
19
 
16
- <p align="center"><a href="README.md">简体中文</a> | English</p>
17
-
18
- PaperSearch provides the `paper-search` command and a bundled Skill. Once installed, Claude Code, Codex, Cursor, Kimi Code, Qwen Code, CodeBuddy, TRAE and other AI tools that can run local commands can search more than 20 scholarly sources for you, verify DOIs, and download and organize paper PDFs and supplementary files. You can also use it directly in a terminal or a script; output is JSON by default.
19
-
20
- - **Open access, downloaded directly**: PubMed Central, Unpaywall, publisher APIs and more, ready as soon as it is installed.
21
- - **Your school's subscriptions too**: the optional institutional download extension signs in to your school through CARSI and fetches the papers and supplementary files your school can access, in batches. It handles verification automatically and resumes downloading when the site grants access.
22
- - **Every paper checked**: each PDF's first page is checked against the DOI and title; a file of another article is not counted as a success.
23
- - **Ready to use**: one folder per paper named journal_year_title, with the main text and supplementary files together; papers not downloaded come with a reason.
24
-
25
- <p align="center"><img src="assets/overview.en.png" width="900" alt="What PaperSearch does: search papers, verify and trace citations, journal metrics, text snippets, full texts and supplementary files"></p>
26
-
27
- [What you get](#what-you-get) | [Quick start](#quick-start) | [Common tasks](#common-tasks) | [How it works](#how-it-works) | [Institutional download extension](#institutional-download-extension) | [Search sources](#search-sources) | [Configuration](#configuration) | [Agent Skill](#agent-skill) | [Commands](#commands) | [Troubleshooting](#troubleshooting)
28
-
29
- ## What you get
30
-
31
- Ask your AI tool in one sentence, for example:
20
+ <p align="center">
21
+ <a href="README.md">简体中文</a> · <a href="#quick-start">Quick start</a> · <a href="#1-school-subscription-downloads-carsi">School subscription downloads</a> · <a href="#2-api-keys">API keys</a> · <a href="docs/guide.en.md">Guide</a> · <a href="docs/ARCHITECTURE.zh.md">Architecture</a> · <a href="docs/ROADMAP.zh.md">Roadmap</a> · <a href="https://github.com/dr-dumpling/PaperSearch/issues/new/choose">Report an issue</a>
22
+ </p>
32
23
 
33
- > Find randomized trials of SGLT2 inhibitors in heart failure since 2020, verify the DOIs, and download the full texts and supplementary files to ./downloads
24
+ PaperSearch provides the `paper-search` command and a bundled Skill. Once installed, Claude Code, Codex, Cursor, Kimi Code, Qwen Code, CodeBuddy, TRAE and other AI tools that can run local commands can do this for you:
34
25
 
35
- The AI calls PaperSearch to search, verify and download, then tells you what it got, what it could not get, and why. This is the result of an actual download:
26
+ - **Search papers**: query more than 20 sources at once, including PubMed, Crossref, OpenAlex, Semantic Scholar and arXiv, with duplicates merged by DOI and DOIs verified.
27
+ - **Search full-text snippets**: search the paper bodies Semantic Scholar indexes for passages on methods or results, with their sources.
28
+ - **Look up journal IF and quartiles**: through EasyScholar, look up JCR impact factors, JCR quartiles and CAS zones.
29
+ - **Look up citations and references**: from one paper, find the studies that cite it and the works it cites.
30
+ - **Download full texts and supplementary files**: open-access papers download directly; other papers come through your school's subscriptions: install school subscription downloads (CARSI) to download them in batches through your school login, or add publisher API keys.
36
31
 
37
- ```text
38
- downloads/
39
- ├── papers/
40
- │ ├── Nutrients_2026_α-Ketoglutarate Alleviates the Pathogenesis…_0b6e0203de/
41
- │ │ ├── Nutrients_2026_α-Ketoglutarate Alleviates the Pathogenesis….pdf
42
- │ │ └── supplements/
43
- │ │ └── nutrients-18-03600-s001.zip supplementary files keep their names
44
- │ └── arXiv_2017_Attention Is All You Need_a1a0262a54/
45
- │ └── arXiv_2017_Attention Is All You Need.pdf preprints are labelled
46
- └── diagnostics/ run records, file manifests, screenshots
47
- ```
32
+ <!-- Demo GIF goes here once recorded; the overview picture then moves to "Reference · How it works" -->
48
33
 
49
- During institutional downloads, a progress capsule in a corner of the screen shows progress, turns amber when you need to sign in or complete a verification, and opens into a card when you hover over it (its interface is in Chinese).
50
-
51
- <p align="center"><img src="assets/progress-capsule.en.png" width="820" alt="Progress capsule: downloading, sign in to your school, hover to expand, settings"></p>
34
+ <p align="center"><img src="assets/overview.en.png" width="840" alt="What PaperSearch does: search papers, full-text snippets, journal metrics, citations and references, full texts and supplementary files"></p>
52
35
 
53
36
  ## Quick start
54
37
 
55
- Requires Node.js 18 or later and npm.
56
-
57
- ```bash
58
- npm install -g papersearch
59
- paper-search setup
60
- paper-search doctor --format text
61
- ```
62
-
63
- `paper-search setup` asks three things in turn: API keys and email; whether to install the Skill in a shared directory or tool-specific directories; and whether to install the institutional download extension. Each can be skipped. `doctor` shows what works now and what is still missing.
38
+ ### 1. Install
64
39
 
65
- The Skill is the instruction file that teaches an AI tool to call `paper-search`; install it when you use an AI tool for literature work. If you skipped it, install it any time, with `--targets` set to your tool (`claude`, `codex`, `cursor`, `gemini`, `agents`, or `all`):
40
+ It needs Node.js 18 or later and npm. Either way:
66
41
 
67
- ```bash
68
- paper-search skills update --targets claude
69
- ```
42
+ - Yourself: copy one line (Codex as the example). For another AI tool, replace `codex` with `claude`, `cursor`, `gemini`, `antigravity` or `agents` (the shared `~/.agents/skills/` directory).
70
43
 
71
- For Kimi Code and Qwen Code, use `--targets agents` to install into the shared directory. See [Agent Skill](#agent-skill) below for TRAE and CodeBuddy.
44
+ ```sh
45
+ npm install -g papersearch && paper-search skills update --targets codex
46
+ ```
72
47
 
73
- You can also send this to your AI tool and let it do the install:
48
+ - Through your AI tool: send it this.
74
49
 
75
- ```text
76
- Please install PaperSearch for me: run npm install -g papersearch, then install the bundled Skill for yourself using the README's Agent Skill instructions (agents for Kimi Code and Qwen Code, claude for Claude Code, codex for Codex, cursor for Cursor; TRAE and CodeBuddy use their own Skill directories), then run paper-search doctor --format text and tell me which features work and which keys are missing; then ask me which folder downloaded papers should go to by default and save it with paper-search config set DEFAULT_DOWNLOAD_PATH. I will enter API keys myself with paper-search setup in a terminal; do not ask me to paste them into the chat.
77
- ```
50
+ ```text
51
+ Please install PaperSearch: run npm install -g papersearch;
52
+ then run paper-search skills update --targets <your type> to install
53
+ the bundled Skill for yourself (codex, claude, cursor, gemini, antigravity or agents);
54
+ finally run paper-search doctor --format text and tell me which features work.
55
+ I will enter API keys myself with paper-search setup.
56
+ ```
78
57
 
79
- **Coming from the old package `paper-search-cli`**: run `npm uninstall -g paper-search-cli`, then `npm install -g papersearch`. Both provide the same `paper-search` command and cannot be installed together; your configuration, Skill, school login and download records stay.
58
+ ### 2. Tell your AI tool what you need
80
59
 
81
- **Later upgrades**: `npm install -g papersearch@latest`. The first `paper-search` run after an upgrade brings the Skill you installed up to the new version.
60
+ Start a new AI session and say what you need, for example:
82
61
 
83
- ## Common tasks
62
+ | To do | You can say |
63
+ |---|---|
64
+ | Search papers | Find randomized trials of SGLT2 inhibitors in heart failure since 2020, and verify the DOIs |
65
+ | Search full-text snippets | How did these trials define their primary endpoint? Quote a few passages |
66
+ | Look up journal IF and quartiles | Which journals were they published in, and what are their impact factors and quartiles? |
67
+ | Look up citations and references | Which studies have cited the DAPA-HF trial since it was published? |
68
+ | Download full texts and supplementary files | Download the full texts and supplementary files of these papers to ./downloads |
84
69
 
85
- ```bash
86
- # Search papers (a set of sources that needs no keys)
87
- paper-search search "machine learning clinical prediction" --sources no-key --max-results 5 --pretty
70
+ ### 3. Get the results
88
71
 
89
- # One source, for example PubMed
90
- paper-search search "SGLT2 inhibitor heart failure" --platform pubmed --max-results 10 --pretty
72
+ - Search results, snippets, journal metrics and citations come back in the conversation.
73
+ - Downloaded papers are organized into folders, and you are told why any paper was not obtained:
91
74
 
92
- # Verify a DOI
93
- paper-search run get_paper_by_doi --arg doi="10.1038/nature12373" --pretty
75
+ ```text
76
+ downloads/
77
+ ├── papers/
78
+ │ ├── Nutrients_2026_α-Ketoglutarate Alleviates the Pathogenesis…_0b6e0203de/
79
+ │ │ ├── Nutrients_2026_α-Ketoglutarate Alleviates the Pathogenesis….pdf
80
+ │ │ └── supplements/
81
+ │ │ └── nutrients-18-03600-s001.zip
82
+ │ └── arXiv_2017_Attention Is All You Need_a1a0262a54/
83
+ │ └── arXiv_2017_Attention Is All You Need.pdf
84
+ └── diagnostics/
85
+ ```
94
86
 
95
- # Citing papers; for references use get_paper_references
96
- paper-search run get_paper_citations --arg doi="10.1038/nature12373" --arg limit=5 --pretty
87
+ ### 4. Add setup when you need more
97
88
 
98
- # Journal impact factors and quartiles (EasyScholar key)
99
- paper-search journal-metrics "Nature" "BMJ" --pretty
89
+ **Works once installed**: searching papers, looking up citations and references, downloading open-access papers.
100
90
 
101
- # Find Methods wording in body text (Semantic Scholar key)
102
- paper-search run search_semantic_snippets --arg query="propensity score matching" --arg limit=3 --pretty
91
+ **With configuration, you can also:**
103
92
 
104
- # Download one paper
105
- paper-search download "<DOI>" --platform crossref
93
+ - **Look up impact factors and quartiles**: add an EasyScholar key to get JCR impact factors, JCR quartiles and CAS zones in one go.
94
+ - **Find passages in full texts**: add a Semantic Scholar key to search the body text of open-access papers and get the matching passages with their sources.
95
+ - **Download papers your school subscribes to**, either way:
96
+ - Set up school subscription downloads (CARSI): sign in to your school in Chrome, and full texts and supplementary files the open channels cannot get download in batches.
97
+ - Add Elsevier and Springer API keys: on your campus network, full texts come straight from the publisher APIs without a browser; off campus, Elsevier subscription articles also need `ELSEVIER_INSTTOKEN`.
106
98
 
107
- # Download main texts and supplementary files in a batch (omit content for main text only; "supplements" for supplementary files only)
108
- paper-search run download_batch --json-args '{"items":[{"doi":"<DOI-1>"},{"doi":"<DOI-2>"}],"content":"both"}'
99
+ How to set them up: see [Optional setup](#optional-setup) below. Run `paper-search doctor --format text` any time to see what works.
109
100
 
110
- # Papers not downloaded, and why
111
- paper-search failures --format text
112
- ```
113
-
114
- ## How it works
115
-
116
- ```text
117
- A literature request
118
- │
119
- ├─ Find papers, verify DOI/PMID → paper-search search (Crossref, PubMed, OpenAlex, ...)
120
- │ └─ Entries confirmed, full text needed → go to "Download" below
121
- ├─ Citing papers, references → paper-search run get_paper_citations / get_paper_references
122
- ├─ Impact factor, quartiles → paper-search journal-metrics (EasyScholar key)
123
- ├─ Methods wording, parameters → paper-search run search_semantic_snippets (Semantic Scholar key)
124
- │
125
- └─ Download main text, supplementary files → paper-search download / run download_with_fallback / run download_batch
126
- One download command, tried in order:
127
- ├─ ① Open downloading (built in): the source's own download, PMC, Unpaywall, publisher APIs
128
- ├─ ② Sci-Hub fallback (on by default, can be turned off)
129
- ├─ ③ Institutional download (optional extension): a browser signs in to your school through CARSI and takes the PDF and supplementary files from the publisher's site
130
- ├─ ④ arXiv preprint: only when no published version was found, and labelled as a preprint
131
- ├─ Every file is checked against the DOI and title on its first page; once one passes it is saved and the rest are not tried
132
- └─ Nothing found → paper-search failures says why
133
- ```
101
+ ## Optional setup
134
102
 
135
- ### Two ways to download
103
+ School subscription downloads only download; API keys belong to individual sources and services and cover more:
136
104
 
137
- | | Open downloading (default) | Institutional download (optional extension) |
105
+ | Feature | School subscription downloads (CARSI) | API keys |
138
106
  |---|---|---|
139
- | Available | As soon as PaperSearch is installed | After `paper-search carsi install` |
140
- | Gets | Open-access main text | Main text your school subscribes to; supplementary files from the publishers with rules for them |
141
- | How | Direct downloads, usually seconds, no login: the source's own download, PDF links in the metadata, PubMed Central, Unpaywall, publisher APIs (your own Elsevier/Springer keys); last, the Sci-Hub fallback, on by default | A browser signs in to your school through CARSI and takes the PDF from the publisher's site |
142
- | What you do | Nothing | Sign in to your school in the browser; verification is handled automatically, with a prompt when manual action is needed |
107
+ | Download subscribed full texts | ✓ | ✓ Elsevier and Springer only (usually on a campus network) |
108
+ | Download supplementary files | ✓ | |
109
+ | Look up impact factors and quartiles | | ✓ EasyScholar |
110
+ | Search full-text snippets | | ✓ Semantic Scholar |
111
+ | More search sources, higher limits | | ✓ Each source's own key |
112
+ | **What you need** | Google Chrome and a school account | Keys from each provider's site |
113
+ | **How to set up** | `paper-search carsi install` | `paper-search setup` |
143
114
 
144
- Both use the same download command: open downloading first, and when it finds nothing, the institutional download if it is installed.
115
+ ### 1. School subscription downloads (CARSI)
145
116
 
146
- - For dozens to hundreds of papers, use one `download_batch`: open channels are tried for every paper first, then the institutional download for papers still without a main text. Afterwards `paper-search failures` sorts the papers not downloaded into four classes: no access (with the evidence, such as the page's own words), needs you (login, verification, waiting), site not supported yet, and cause unknown.
147
- - For arXiv papers the published version is tried first; the preprint is downloaded only when none was found. The result says `version: "preprint"` and, when known, gives the published DOI.
148
- - To leave out Sci-Hub, set `"useSciHub": false` in `download_with_fallback` / `download_batch`.
149
- - Every PDF is checked against the DOI and title on its first page; a file that does not match is not counted as a success and is kept aside for review.
117
+ Papers the open channels cannot get can come through your school's subscriptions. CARSI is the China higher-education identity federation; almost every Chinese university has joined it, so your school account signs you in to the publishers. Once this is installed, each paper is downloaded like this:
150
118
 
151
- ### Download results
119
+ <p align="center"><img src="assets/carsi-flow.en.png" width="840" alt="How school subscription downloads work: open the article and go to the institutional login, CARSI and your school are chosen for you, you sign in on your school's login page, the PDF and supplementary files are fetched from the publisher, and the DOI and title are checked"></p>
152
120
 
153
- A download folder has two parts. `papers/` holds the papers, one folder each, with the main text named journal_year_title and supplementary files under that paper's `supplements/` with their original names. `diagnostics/` holds run records, file manifests and screenshots, for tracking down problems. The short ID at the end of a folder name tells apart papers with the same title. A missing journal or year is written as unknown. Files downloaded by earlier versions are not moved; the JSON a command returns gives each file's actual location.
121
+ Why use it:
154
122
 
155
- ## Institutional download extension
123
+ - **Your school account is enough**: no keys to apply for; publisher API keys only cover Elsevier and Springer.
124
+ - **Deep publisher adaptation**: the general download flow is deeply optimized, and more than 30 publishers have dedicated rules, one by one: where the institutional login is and how to fetch the PDF and supplementary files follow each publisher as it really is, so downloads are more accurate and fewer papers are missed. The main publishers:
125
+ - General: Elsevier (including Cell and The Lancet), Springer Nature (including Nature and BMC), Wiley, Oxford Academic, Taylor & Francis, Sage, PNAS, Science
126
+ - Medicine: NEJM, JAMA, AHA, ASH, Wolters Kluwer, Karger, Thieme
127
+ - Science and engineering: ACS, IEEE, ACM
128
+ - Full list: [publisher support table](skills/paper-search/references/publisher-support.md) (Chinese)
129
+ - Need another publisher? [Open an issue](https://github.com/dr-dumpling/PaperSearch/issues/new/choose) with the DOI of an article you can access; these rules are maintained and extended over time.
130
+ - **Verification boxes clicked for you**: it finds and clicks human-verification boxes and carries on once the site lets it through; you are asked only when it does not pass.
131
+ - **Quiet background downloads**: the browser works in the background. The progress capsule in a screen corner shows the progress; it turns amber when you need to sign in or verify, one click switches to the browser, and the download carries on once you are done.
132
+
133
+ It needs [Google Chrome](https://www.google.com/chrome/) on the computer. Install it:
156
134
 
157
135
  ```bash
158
- paper-search carsi install
159
- paper-search carsi status --format text
136
+ paper-search carsi install # choose your school during installation
137
+ paper-search carsi status --format text # check that it is ready
160
138
  ```
161
139
 
162
- - Installing asks for your school (a CARSI member school, by Chinese name, English name or domain) and downloads the dedicated Camoufox browser, about 3 GB in all; on macOS, `--browser ego` uses ego lite instead, about 0.5 GB. `--skip-school` leaves the school for later.
163
- - Schools sign in through CARSI (the Chinese university identity federation). When a publisher's institution list has no CARSI or no entry for your school, the program says so at once.
164
- - Automatic verification: verification checkboxes are located and clicked automatically, and downloads resume when the site grants access. Each verification wait allows up to three attempts, at least three seconds apart. A click or a checked box alone does not prove that verification has passed.
165
- - Downloads show a small progress capsule in a corner of the screen: progress, whether the main text or the supplementary files are being fetched, and the publisher; it turns amber with a gentle breathing glow and sends a system notification, if enabled, when you need to sign in or complete a verification. Click the reminder to switch to the current task’s download browser. Hover to open it: skip this paper, mark the journal or publisher as no access, stop the whole task, report a problem, change wait times and the default download folder (the gear at the top right), or minimize it (–). Drag the pill or a non-control area of the expanded card to move it. On the school's login page a paper waits up to 3 minutes by default; anywhere else (human checks, publisher pages, ...) it ends after 1 minute.
166
- - The default download browser keeps running in the background without requesting foreground focus on startup, clicks, or navigation. It does not automatically minimize or hide its window. The capsule alerts you when intervention is needed; click the reminder to switch to the browser when ready. A completed check with no listed supplementary files is not a failure. Incomplete sign-in, unsupported discovery, and download failures remain distinct results.
167
- - Choose or type the default download folder in capsule settings, or run `paper-search config set DEFAULT_DOWNLOAD_PATH "/absolute/path/papers"`. New tasks use the saved folder; `--save-path` or `savePath` overrides it for one task. A running batch keeps its original folder.
168
- - Since 0.4.9, prompts require a current login control or a verification step needing help. Idle time and school domains alone do not trigger human-action prompts. The verification reminder setting defaults to 30 seconds (1–600); handoff occurs by half of the remaining wait budget. Loading, absent and checked controls stay under automatic observation. Unavailable controls prompt a check without extending the overall deadline.
169
- - Since 0.4.9, you can drop the capsule near a screen edge to snap it there. It opens inward. Along the left or right edge, you can drop it at any available height, and collapsing returns it to that height. When dragging between displays, the display under the pointer at release determines where it lands.
170
- - typing, selecting or clicking a control in the dedicated sign-in page, or taking over through the capsule, pauses the remaining sign-in budget, including pauses between inputs. The timer resumes after leaving the manual sign-in step; an untouched sign-in still times out.
171
- - macOS notifications use PaperSearch’s name and icon. Notification clicks share the capsule reminder’s action for restoring the current task’s browser. The initial extension setup offers a notification choice; new configurations default to off, and upgrades preserve existing preferences. The System notifications switch in the capsule’s settings saves immediately. Turning it off keeps the amber reminder. No separate notification tool is required; enabled notifications still follow macOS notification permissions and Focus settings.
172
- - Which publishers' main texts and supplementary files it can fetch is in the [publisher support table](skills/paper-search/references/publisher-support.md) (Chinese). Both have been fetched from Elsevier, Wiley, Springer Nature, OUP, Wolters Kluwer, Taylor & Francis, Sage, ACS, NEJM, ASCE, Dove and others; supplementary files from ASH, Thieme, PLOS, Copernicus, Annual Reviews, IOP, AMS, APS, Optica, IEEE, World Scientific, MDPI and Frontiers, as well as Figshare files linked to a paper, have also been fetched; remaining attachment routes are still being completed; sites not in the table are tried with the shared rules.
173
- - `paper-search carsi update` updates the extension after a PaperSearch upgrade; `paper-search carsi uninstall` removes it (keeping the browser and the school settings by default).
174
- - Windows: if PowerShell blocks `npm.ps1`, use `npm.cmd` or Command Prompt; downloads must run in a desktop session, as a browser window cannot open from SSH or a system service.
175
-
176
- ## Search sources
177
-
178
- | Kind | Sources | API key |
179
- |---|---|---|
180
- | General academic metadata | Crossref, OpenAlex, Semantic Scholar, Google Scholar | None (Semantic Scholar body snippets need one) |
181
- | Biomedicine | PubMed, PubMed Central, Europe PMC | None (a PubMed key raises the limits) |
182
- | Preprints and conference papers | arXiv, bioRxiv, medRxiv, OpenReview, IACR ePrint | None |
183
- | Computer science and engineering | DBLP, ACM, USENIX | None |
184
- | Open access and repositories | CORE, OpenAIRE, Unpaywall | Unpaywall takes an email; CORE and OpenAIRE optional |
185
- | Publishers and citation databases | ScienceDirect, Scopus, Springer Nature, IEEE Xplore, Web of Science | Each needs its key (ScienceDirect and Scopus share the Elsevier key) |
186
- | Journal metrics | EasyScholar | Needed |
140
+ <p align="center"><img src="assets/progress-capsule.en.png" width="840" alt="The progress capsule: downloading, sign-in needed, expanded on hover, and the finished card with what failed and why"></p>
187
141
 
188
- - The sources that need no key already cover the major publishers' papers; a key adds the publisher's own search.
189
- - One source with `--platform`, several with `--sources a,b,c`; `--sources no-key` needs no keys at all (Crossref, PubMed, Europe PMC, arXiv, OpenReview).
190
- - Google Scholar is read from its web pages and often meets human checks, so it is not in `--sources all`; use `--platform googlescholar` when you need it.
191
- - The same paper from several sources is merged by DOI; when an arXiv preprint is explicitly linked to its published DOI, the published record is kept.
192
- - Sci-Hub is not a search source; it only serves as a DOI fallback when downloading.
142
+ ### 2. API keys
193
143
 
194
- ## Configuration
144
+ Keys fall into four groups by what they are for. Get the key you need and enter it with `paper-search setup <KEY>` (the input is hidden).
195
145
 
196
- PaperSearch has two separate kinds of configuration, and both are optional:
146
+ #### Journal metrics and full-text snippets
197
147
 
198
- | | API keys | CARSI (institutional download extension) |
148
+ | Feature | Key | Where to get it |
199
149
  |---|---|---|
200
- | What it is for | Search in some sources, journal metrics, body snippet search; Elsevier and Springer keys also fetch full text through the publisher API | Signing in to your school and downloading full texts and supplementary files through its subscriptions |
201
- | How to set it up | `paper-search setup`, or `paper-search config set` | `paper-search carsi install`, choosing your school |
202
- | Without it | Search uses the free sources; the sources and features that need a key under "Search sources" are unavailable | Downloads use the open channels only (see [Two ways to download](#two-ways-to-download)) |
203
-
204
- ### API keys and the configuration file
150
+ | Look up impact factors and quartiles | `EASYSCHOLAR_KEY` | [EasyScholar](https://www.easyscholar.cc/console/user/open) |
151
+ | Search full-text snippets | `SEMANTIC_SCHOLAR_API_KEY` | [Semantic Scholar](https://www.semanticscholar.org/product/api) |
205
152
 
206
- Most free sources need nothing. Run `paper-search setup` first to save keys in your user configuration:
207
-
208
- ```bash
209
- paper-search setup
210
- paper-search config list --pretty
211
- paper-search config set SEMANTIC_SCHOLAR_API_KEY <your key>
212
- ```
153
+ #### Subscribed full texts through publisher APIs
213
154
 
214
- The configuration file is `~/.config/paper-search-cli/config.json` (mode `0600`; the folder keeps its old name, so upgrades keep your settings). `config list` and `doctor` show keys masked.
215
-
216
- | Key | Use | When |
155
+ | Publisher | Key | Where to get it |
217
156
  |---|---|---|
218
- | `DEFAULT_DOWNLOAD_PATH` | Folder downloaded papers go to by default; unset, they go to `./downloads` under the command's current directory | At first setup; also in the progress capsule's settings |
219
- | `SEMANTIC_SCHOLAR_API_KEY` | Body snippet search; steadier Semantic Scholar requests | For Methods details, or frequent Semantic Scholar use |
220
- | `UNPAYWALL_EMAIL` | Open-access PDFs by DOI | Recommended; an email is enough |
221
- | `CROSSREF_MAILTO` | Crossref's polite pool | Long or frequent searches |
222
- | `CORE_API_KEY` | CORE repository search | Frequent CORE use, or rate limits |
223
- | `EASYSCHOLAR_KEY` | Journal metrics | For impact factors and quartiles; `paper-search setup EASYSCHOLAR_KEY` hides the input |
224
- | `PUBMED_API_KEY`, `NCBI_EMAIL` | Higher PubMed limits | Frequent PubMed use |
225
- | `WOS_API_KEY`, `IEEE_API_KEY`, `ELSEVIER_API_KEY`, `SPRINGER_API_KEY` | Their metadata; Elsevier and Springer keys also serve the publisher API for full text (access follows your network or key) | When you use those sources |
226
- | `ELSEVIER_INSTTOKEN` | Elsevier full text off campus through its API | Off campus; not needed on a campus network |
227
- | `GOOGLE_SCHOLAR_PROXY_URL` | Egress proxy for Google Scholar | When direct requests keep being challenged; use a proxy you are allowed to use |
228
- | `PAPER_SEARCH_CARSI_ENABLED` | Switch for the institutional download extension | Set by `paper-search carsi install` |
229
- | `PAPER_SEARCH_SKILL_AUTO_UPDATE` | `false` stops upgrades from updating the installed Skill | On by default; set it to manage the Skill yourself |
230
-
231
- Where to get keys: [EasyScholar](https://www.easyscholar.cc/console/user/open) · [Semantic Scholar](https://www.semanticscholar.org/product/api) · [Unpaywall](https://unpaywall.org/products/api) · [CORE](https://core.ac.uk/services/api) · [NCBI](https://ncbiinsights.ncbi.nlm.nih.gov/2017/11/02/new-api-keys-for-the-e-utilities/) · [Web of Science](https://developer.clarivate.com/apis) · [IEEE Xplore](https://developer.ieee.org/docs/read/Searching_the_IEEE_Xplore_Metadata_API) · [Elsevier](https://dev.elsevier.com/apikey/manage) · [Springer Nature](https://dev.springernature.com/) · [OpenAIRE](https://develop.openaire.eu/)
232
-
233
- ### CARSI
234
-
235
- Installing and using it: see [Institutional download extension](#institutional-download-extension). It uses no API key and does not search.
236
-
237
- ## Agent Skill
157
+ | Elsevier | `ELSEVIER_API_KEY`; off campus, subscription articles also need `ELSEVIER_INSTTOKEN` | [Elsevier](https://dev.elsevier.com/apikey/manage) |
158
+ | Springer | `SPRINGER_API_KEY` | [Springer Nature](https://dev.springernature.com/) |
238
159
 
239
- The Skill ships in the npm package (`skills/paper-search/`). It is written in Chinese, opens with the same overall diagram, and points the AI to focused references as needed: routing and the open download channels, the command contract, installing and using the institutional download, the [publisher support table](skills/paper-search/references/publisher-support.md), and troubleshooting. It only tells the AI how to call `paper-search`; it keeps no keys, cookies or accounts.
160
+ #### More search sources
240
161
 
241
- ```bash
242
- paper-search skills status --pretty
243
- paper-search skills update --targets claude
244
- ```
245
-
246
- AI tools from Chinese providers can load the same Skill:
247
-
248
- | Tool | Setup |
249
- |---|---|
250
- | [Kimi Code](https://www.kimi.com/code/docs/kimi-code-cli/customization/skills.html), [Qwen Code](https://github.com/QwenLM/qwen-code/blob/main/docs/users/features/skills.md) | Run `paper-search skills update --targets agents` to install into the shared `~/.agents/skills/paper-search/` directory supported by both tools |
251
- | [TRAE](https://docs.trae.ai/ide/skills?_lang=zh) | Copy the bundled Skill folder to `.trae/skills/paper-search/` in your project |
252
- | [CodeBuddy](https://www.codebuddy.ai/docs/zh/ide/Features/Skills) | Copy the bundled Skill folder to `.codebuddy/skills/paper-search/` in your project |
253
-
254
- Run `npm root -g` to locate the global npm directory; the bundled Skill is under `papersearch/skills/paper-search/` there. Copy the entire folder, including `references/`, and copy it again after an update. Start a new AI session after installation.
162
+ | Source | Key | Where to get it |
163
+ |---|---|---|
164
+ | Web of Science | `WOS_API_KEY` | [Clarivate](https://developer.clarivate.com/apis) |
165
+ | IEEE Xplore | `IEEE_API_KEY` | [IEEE](https://developer.ieee.org/docs/read/Searching_the_IEEE_Xplore_Metadata_API) |
166
+ | ScienceDirect, Scopus | `ELSEVIER_API_KEY` (the same key as above) | [Elsevier](https://dev.elsevier.com/apikey/manage) |
167
+ | Springer | `SPRINGER_API_KEY` (the same key as above) | [Springer Nature](https://dev.springernature.com/) |
255
168
 
256
- - Targets: `agents`, `codex`, `claude`, `cursor`, `gemini`, `antigravity`, `all`. Updating overwrites the files the package manages and keeps files you added to the Skill directory.
257
- - **Auto-update after upgrades**: Skills installed through the built-in targets are updated on the first `paper-search` run after an upgrade (other than `skills` and `setup`): only where they were installed; replaced files are backed up under `~/.local/share/paper-search-cli/skill-backups/`; one line on stderr says what changed. With no Skill installed in those locations, it says once how to install it. To turn it off: `paper-search config set PAPER_SEARCH_SKILL_AUTO_UPDATE false`.
258
- - `paper-search doctor` shows Skill locations and version status for the built-in installation targets.
169
+ #### Higher limits, steadier access
259
170
 
260
- ### Update notices (since 0.4.8)
171
+ | Source | Key | Where to get it |
172
+ |---|---|---|
173
+ | PubMed | `PUBMED_API_KEY` | [NCBI](https://ncbiinsights.ncbi.nlm.nih.gov/2017/11/02/new-api-keys-for-the-e-utilities/) |
174
+ | CORE | `CORE_API_KEY` | [CORE](https://core.ac.uk/services/api) |
175
+ | OpenAIRE | `OPENAIRE_API_KEY` | [OpenAIRE](https://develop.openaire.eu/) |
261
176
 
262
- When npm has a newer stable version, ordinary invocations show the installed and latest versions and an upgrade command. Checks run alongside online tasks and cache successful results for 24 hours. Network failures do not affect paper tasks; unfinished checks are cancelled when the command ends. Notices go to stderr, preserving stdout JSON. Offline management commands use only cached results; CI, help and configuration commands do not show automatic notices.
177
+ Common commands:
263
178
 
264
179
  ```bash
265
- paper-search update check --format text
266
- paper-search config set PAPER_SEARCH_UPDATE_NOTIFY false # Disable automatic checks and notices
267
- paper-search config set PAPER_SEARCH_UPDATE_NOTIFY true # Enable them again
180
+ paper-search setup # the common settings, one by one
181
+ paper-search setup EASYSCHOLAR_KEY # just one of them
182
+ paper-search config list --pretty # what is set; keys are masked
268
183
  ```
269
184
 
270
- Updates are never installed automatically. Installed Skills sync under the existing rules after a CLI upgrade; update the institutional extension separately with `paper-search carsi update`. This setting is independent of capsule/system notifications.
185
+ Settings are saved in `~/.config/paper-search-cli/config.json`, readable only by you. The download folder, contact emails, proxy, automatic updates and other settings are in [Guide · Other settings](docs/guide.en.md#other-settings).
271
186
 
272
- ## Commands
187
+ ## More documentation
273
188
 
274
- | Command | Use |
275
- |---|---|
276
- | `paper-search search` | Search paper metadata |
277
- | `paper-search journal-metrics` | Journal metrics (EasyScholar) |
278
- | `paper-search download` | Download the PDF of a verified paper |
279
- | `paper-search run <tool>` | Call one tool exactly, with `--arg` or `--json-args` |
280
- | `paper-search failures` | Why downloads failed, summarized |
281
- | `paper-search update check` | Check the stable npm release (since 0.4.8) |
282
- | `paper-search carsi` | Install, check, update or remove the institutional download extension |
283
- | `paper-search setup` / `config` | Configure keys, the Skill and the extension |
284
- | `paper-search doctor` | Health check: configuration, available features, Skill and extension status |
285
- | `paper-search skills` | Skill status, differences and updates |
286
- | `paper-search smoke` | Offline or live self-check |
287
- | `paper-search tools` | All tool names and their arguments |
288
-
289
- Commands print JSON by default; `--pretty` formats it and `--format text` prints a report for people. All commands: `paper-search tools --pretty`, or the [command contract](skills/paper-search/references/cli-contract.md) (Chinese).
290
-
291
- ## Troubleshooting
292
-
293
- | Problem | What to do |
294
- |---|---|
295
- | `paper-search` not found | Reinstall with `npm install -g papersearch` |
296
- | `EEXIST` while installing | The old package is still there: `npm uninstall -g paper-search-cli` first |
297
- | A feature does not work | `paper-search doctor --format text` shows what is missing; then `paper-search setup` |
298
- | Subscribed articles do not download | `paper-search carsi status --format text` for the extension; `paper-search failures --format text` for each paper's reason |
299
- | A source rate-limits | Lower `--max-results`, configure its key, or switch sources |
300
- | Google Scholar shows a human check | Wait and retry, or use `--sources no-key` |
301
- | The AI reads an old Skill | `paper-search skills status --pretty`, then `paper-search skills update --targets <tool>`; start a new AI session |
189
+ The [guide](docs/guide.en.md): [command examples](docs/guide.en.md#command-examples), [how it works](docs/guide.en.md#how-it-works), [search sources](docs/guide.en.md#search-sources), [Agent Skill](docs/guide.en.md#agent-skill), [all commands](docs/guide.en.md#all-commands), [troubleshooting](docs/guide.en.md#troubleshooting). `paper-search tools --pretty` lists every tool and its parameters in the terminal.
302
190
 
303
- ## Roadmap and contributing
191
+ ## Roadmap
304
192
 
305
- - Next: steadier batch downloads and smoother installs on new computers; beyond PDFs, a full-text package (the original XML/HTML, Markdown and the figures). See the [roadmap](docs/ROADMAP.zh.md) (Chinese).
306
- - How it works inside and where the code is: [architecture](docs/ARCHITECTURE.zh.md) (Chinese).
307
- - For failed downloads or publisher requests, use the download-failure issue template and provide the version, OS, website and DOI.
308
- - New in 0.4.8: `paper-search failures --export ./failure-report.zip` exports institutional failures from the latest run, including saved main texts with incomplete supplements. Add `--run <run-id> --doi <DOI>` to select a paper. Review `summary.md`, HTML and images for personal information before attaching the ZIP manually. Export sanitizes copies without modifying originals, retrying downloads or uploading anything. Missing HTML in older records is explicitly reported. If your installed version lacks this command, report the version and symptoms without uploading raw diagnostics.
309
- - To add publisher rules yourself: see [carsi/CONTRIBUTING.md](carsi/CONTRIBUTING.md).
193
+ Next on the list:
310
194
 
311
- ## Use responsibly
195
+ 1. **A better progress capsule**: better-timed reminders, with no early prompt when the school login page lets you through by itself; less of the browser briefly jumping to the front on Windows when it starts or changes pages; a cleaner look.
196
+ 2. **Parallel downloads**: papers from different publishers download at the same time, cutting the total time for dozens or hundreds of papers; each publisher's download limits still apply.
197
+ 3. **A Markdown full-text package**: besides the PDF, the original XML/HTML, a Markdown reading copy and the figures, with figure numbers, captions and in-text references matched, ready to hand to an AI for reading and citing.
198
+ 4. **More ways to reach your school's access**: beyond CARSI, WebVPN, EZProxy and similar where possible.
199
+ 5. **Better paper search and full-text snippets**: learn from similar tools and improve how papers and passages are found.
312
200
 
313
- Some sources are subject to platform terms, institutional subscriptions or local law; use them only where you have access. The institutional download uses your own school account and subscriptions; the source labels in results are for diagnosis and are not proof of entitlement.
201
+ The full plan is in the [roadmap](docs/ROADMAP.zh.md) (Chinese); how it works inside is in the [architecture](docs/ARCHITECTURE.zh.md) (Chinese). Feature ideas are welcome as [issues](https://github.com/dr-dumpling/PaperSearch/issues/new/choose) and pull requests; for failed downloads or publisher requests use the matching issue template, and to add publisher rules yourself see [carsi/CONTRIBUTING.md](carsi/CONTRIBUTING.md).
314
202
 
315
- ## Origins
203
+ ## Acknowledgements
316
204
 
317
- - Thanks to the [LinuxDo](https://linux.do) community, where the command-plus-Skill approach and workflow improvements came from discussion and open sharing.
205
+ - Thanks to the LinuxDo community, where the command-plus-Skill approach and workflow improvements came from discussion and open sharing.
318
206
  - [openags/paper-search-mcp](https://github.com/openags/paper-search-mcp): the project draws on its ideas, reworked into a standalone command.
207
+ - [Dianel555/paper-search-mcp-nodejs](https://github.com/Dianel555/paper-search-mcp-nodejs) (MIT): the command started as an adaptation of its Node.js implementation; its copyright notice is kept in `NOTICE`.
319
208
  - [Rimagination/scansci-pdf](https://github.com/Rimagination/scansci-pdf) (MIT): the institutional download backend (`carsi/`) draws on its architecture (CARSI and other federation sign-in, publisher site capture, session reuse, PDF capture); its copyright notice is kept in `carsi/NOTICE`.
320
209
 
321
210
  ## License