papersearch 0.4.10 → 0.4.12
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.
- package/LICENSE +1 -1
- package/README.en.md +128 -226
- package/README.md +128 -226
- package/assets/carsi-flow.en.png +0 -0
- package/assets/carsi-flow.png +0 -0
- package/assets/overview.en.png +0 -0
- package/assets/overview.png +0 -0
- package/carsi/README.md +1 -1
- package/carsi/paper_search_carsi/adapters/ams/__init__.py +12 -0
- package/carsi/paper_search_carsi/adapters/elsevier/__init__.py +5 -2
- package/carsi/paper_search_carsi/adapters/elsevier/sciencedirect.py +18 -1
- package/carsi/paper_search_carsi/adapters/iop/__init__.py +19 -4
- package/carsi/paper_search_carsi/adapters/platforms/atypon/__init__.py +24 -14
- package/carsi/paper_search_carsi/adapters/platforms/silverchair/__init__.py +23 -0
- package/carsi/paper_search_carsi/assets/capsule.html +36 -9
- package/carsi/paper_search_carsi/browser/preview.py +16 -3
- package/carsi/paper_search_carsi/browser/watchdog.py +68 -4
- package/carsi/paper_search_carsi/capsule_placement.py +51 -31
- package/carsi/paper_search_carsi/download_diagnostics.py +3 -1
- package/carsi/paper_search_carsi/engine/access_rules.py +11 -0
- package/carsi/paper_search_carsi/engine/batch.py +21 -3
- package/carsi/paper_search_carsi/engine/batch_access.py +3 -0
- package/carsi/paper_search_carsi/engine/batch_capture.py +61 -11
- package/carsi/paper_search_carsi/engine/batch_common.py +4 -0
- package/carsi/paper_search_carsi/engine/batch_diagnostics.py +3 -0
- package/carsi/paper_search_carsi/engine/batch_institution.py +59 -40
- package/carsi/paper_search_carsi/engine/batch_login.py +121 -16
- package/carsi/paper_search_carsi/engine/bridge.py +5 -2
- package/carsi/paper_search_carsi/engine/supplements.py +66 -4
- package/carsi/paper_search_carsi/progress_capsule.py +93 -11
- package/carsi/paper_search_carsi/progress_macos.py +35 -10
- package/carsi/paper_search_carsi/progress_reporter.py +42 -18
- package/carsi/paper_search_carsi/progress_view.py +35 -13
- package/carsi/paper_search_carsi/server.py +7 -1
- package/dist/capabilities/journal-metrics/JournalMetricsService.d.ts.map +1 -1
- package/dist/capabilities/journal-metrics/JournalMetricsService.js +2 -1
- package/dist/capabilities/journal-metrics/JournalMetricsService.js.map +1 -1
- package/dist/capabilities/pdf-discovery/batch.d.ts +2 -0
- package/dist/capabilities/pdf-discovery/batch.d.ts.map +1 -1
- package/dist/capabilities/pdf-discovery/batch.js +45 -10
- package/dist/capabilities/pdf-discovery/batch.js.map +1 -1
- package/dist/capabilities/pdf-discovery/batchSummary.d.ts +7 -1
- package/dist/capabilities/pdf-discovery/batchSummary.d.ts.map +1 -1
- package/dist/capabilities/pdf-discovery/batchSummary.js +24 -0
- package/dist/capabilities/pdf-discovery/batchSummary.js.map +1 -1
- package/dist/capabilities/pdf-discovery/carsi/CarsiAttempt.d.ts.map +1 -1
- package/dist/capabilities/pdf-discovery/carsi/CarsiAttempt.js +6 -0
- package/dist/capabilities/pdf-discovery/carsi/CarsiAttempt.js.map +1 -1
- package/dist/capabilities/pdf-discovery/carsi/CarsiMcpClient.d.ts +3 -0
- package/dist/capabilities/pdf-discovery/carsi/CarsiMcpClient.d.ts.map +1 -1
- package/dist/capabilities/pdf-discovery/carsi/CarsiMcpClient.js +29 -4
- package/dist/capabilities/pdf-discovery/carsi/CarsiMcpClient.js.map +1 -1
- package/dist/capabilities/pdf-discovery/carsi/CarsiReadiness.d.ts +2 -0
- package/dist/capabilities/pdf-discovery/carsi/CarsiReadiness.d.ts.map +1 -1
- package/dist/capabilities/pdf-discovery/carsi/CarsiReadiness.js +2 -0
- package/dist/capabilities/pdf-discovery/carsi/CarsiReadiness.js.map +1 -1
- package/dist/capabilities/pdf-discovery/carsi/types.d.ts +12 -0
- package/dist/capabilities/pdf-discovery/carsi/types.d.ts.map +1 -1
- package/dist/capabilities/pdf-discovery/tiers/publisherApi.d.ts.map +1 -1
- package/dist/capabilities/pdf-discovery/tiers/publisherApi.js +2 -1
- package/dist/capabilities/pdf-discovery/tiers/publisherApi.js.map +1 -1
- package/dist/cli.js +19 -8
- package/dist/cli.js.map +1 -1
- package/dist/config/ConfigService.d.ts.map +1 -1
- package/dist/config/ConfigService.js +28 -2
- package/dist/config/ConfigService.js.map +1 -1
- package/dist/config/apiKeySignup.d.ts +13 -0
- package/dist/config/apiKeySignup.d.ts.map +1 -0
- package/dist/config/apiKeySignup.js +32 -0
- package/dist/config/apiKeySignup.js.map +1 -0
- package/dist/infrastructure/runlog/failureClass.d.ts.map +1 -1
- package/dist/infrastructure/runlog/failureClass.js +6 -0
- package/dist/infrastructure/runlog/failureClass.js.map +1 -1
- package/dist/management/capability-profile/index.d.ts +7 -0
- package/dist/management/capability-profile/index.d.ts.map +1 -1
- package/dist/management/capability-profile/index.js +7 -0
- package/dist/management/capability-profile/index.js.map +1 -1
- package/dist/management/carsi/installer.js +5 -5
- package/dist/management/carsi/installer.js.map +1 -1
- package/dist/management/diagnostics/index.d.ts.map +1 -1
- package/dist/management/diagnostics/index.js +4 -1
- package/dist/management/diagnostics/index.js.map +1 -1
- package/dist/management/failures/exportReport.js +3 -3
- package/dist/management/reports/index.d.ts.map +1 -1
- package/dist/management/reports/index.js +6 -1
- package/dist/management/reports/index.js.map +1 -1
- package/dist/management/updates/index.d.ts +6 -1
- package/dist/management/updates/index.d.ts.map +1 -1
- package/dist/management/updates/index.js +18 -11
- package/dist/management/updates/index.js.map +1 -1
- package/dist/platforms/SemanticScholarSearcher.d.ts.map +1 -1
- package/dist/platforms/SemanticScholarSearcher.js +2 -1
- package/dist/platforms/SemanticScholarSearcher.js.map +1 -1
- package/package.json +2 -3
- package/skills/paper-search/SKILL.md +8 -14
- package/skills/paper-search/references/browser-download.md +7 -6
- package/skills/paper-search/references/capability-routing.md +3 -3
- package/skills/paper-search/references/carsi-setup.md +1 -1
- package/skills/paper-search/references/cli-contract.md +2 -2
- package/skills/paper-search/references/management-layer.md +1 -1
- package/skills/paper-search/references/publisher-support.md +6 -4
- package/skills/paper-search/references/troubleshooting.md +1 -2
- package/carsi/NOTICE +0 -5
package/LICENSE
CHANGED
package/README.en.md
CHANGED
|
@@ -1,309 +1,211 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="assets/logo.svg" width="
|
|
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>
|
|
7
|
+
<p align="center"><b>A lightweight, fully automated all-in-one literature tool for AI</b><br>
|
|
8
|
+
One sentence and your AI searches, verifies and downloads full texts and supplementary files, all in the background.</p>
|
|
8
9
|
|
|
9
10
|
<p align="center">
|
|
10
11
|
<a href="https://www.npmjs.com/package/papersearch"><img src="https://img.shields.io/npm/v/papersearch?style=flat-square" alt="npm"></a>
|
|
11
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&label=publish" alt="Publish workflow status"></a>
|
|
12
|
-
<a href="#institutional-download-extension"><img src="https://img.shields.io/badge/CARSI-institutional%20downloads-7284CE?style=flat-square" alt="CARSI institutional download extension"></a>
|
|
13
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="#
|
|
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>
|
|
15
17
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-2F9E44?style=flat-square" alt="MIT license"></a>
|
|
16
|
-
<a href="https://linux.do"><img src="https://img.shields.io/badge/LinuxDo-community-1f6feb?style=flat-square" alt="LinuxDo community"></a>
|
|
17
18
|
</p>
|
|
18
19
|
|
|
19
|
-
<p align="center"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
- **Open access, downloaded directly**: PubMed Central, Unpaywall, publisher APIs and more, ready as soon as it is installed.
|
|
24
|
-
- **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.
|
|
25
|
-
- **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.
|
|
26
|
-
- **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.
|
|
27
|
-
|
|
28
|
-
<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>
|
|
29
|
-
|
|
30
|
-
[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)
|
|
31
|
-
|
|
32
|
-
## What you get
|
|
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>
|
|
33
23
|
|
|
34
|
-
|
|
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:
|
|
35
25
|
|
|
36
|
-
|
|
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.
|
|
37
31
|
|
|
38
|
-
|
|
32
|
+
<!-- Demo GIF goes here once recorded; the overview picture then moves to "Reference · How it works" -->
|
|
39
33
|
|
|
40
|
-
|
|
41
|
-
downloads/
|
|
42
|
-
├── papers/
|
|
43
|
-
│ ├── Nutrients_2026_α-Ketoglutarate Alleviates the Pathogenesis…_0b6e0203de/
|
|
44
|
-
│ │ ├── Nutrients_2026_α-Ketoglutarate Alleviates the Pathogenesis….pdf
|
|
45
|
-
│ │ └── supplements/
|
|
46
|
-
│ │ └── nutrients-18-03600-s001.zip supplementary files keep their names
|
|
47
|
-
│ └── arXiv_2017_Attention Is All You Need_a1a0262a54/
|
|
48
|
-
│ └── arXiv_2017_Attention Is All You Need.pdf preprints are labelled
|
|
49
|
-
└── diagnostics/ run records, file manifests, screenshots
|
|
50
|
-
```
|
|
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>
|
|
51
35
|
|
|
52
36
|
## Quick start
|
|
53
37
|
|
|
54
|
-
|
|
38
|
+
### 1. Install
|
|
55
39
|
|
|
56
|
-
|
|
40
|
+
It needs Node.js 18 or later and npm. Either way:
|
|
57
41
|
|
|
58
|
-
|
|
59
|
-
npm install -g papersearch && paper-search skills update --targets codex
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
**Windows PowerShell:**
|
|
63
|
-
|
|
64
|
-
```powershell
|
|
65
|
-
npm.cmd install -g papersearch; if ($LASTEXITCODE -eq 0) { paper-search.cmd skills update --targets codex }
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
Start a new AI session after installing, and you can search for papers. For terminal use, installing `paper-search` alone is enough. Run `paper-search setup` when you need to configure API keys or email. For papers your school subscribes to, install the [institutional download extension](#institutional-download-extension). Run `paper-search doctor --format text` to check which features are available.
|
|
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).
|
|
69
43
|
|
|
70
|
-
|
|
44
|
+
```sh
|
|
45
|
+
npm install -g papersearch && paper-search skills update --targets codex
|
|
46
|
+
```
|
|
71
47
|
|
|
72
|
-
|
|
73
|
-
paper-search skills update --targets claude
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
You can also send this to your AI tool and let it do the install:
|
|
77
|
-
|
|
78
|
-
```text
|
|
79
|
-
Please install PaperSearch for me: run npm install -g papersearch, then install the bundled Skill for yourself using the README's Agent Skill instructions, 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.
|
|
80
|
-
```
|
|
48
|
+
- Through your AI tool: send it this.
|
|
81
49
|
|
|
82
|
-
|
|
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
|
+
```
|
|
83
57
|
|
|
84
|
-
|
|
58
|
+
### 2. Tell your AI tool what you need
|
|
85
59
|
|
|
86
|
-
|
|
60
|
+
Start a new AI session and say what you need, for example:
|
|
87
61
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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 |
|
|
91
69
|
|
|
92
|
-
|
|
93
|
-
paper-search search "SGLT2 inhibitor heart failure" --platform pubmed --max-results 10 --pretty
|
|
70
|
+
### 3. Get the results
|
|
94
71
|
|
|
95
|
-
|
|
96
|
-
|
|
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:
|
|
97
74
|
|
|
98
|
-
|
|
99
|
-
|
|
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
|
+
```
|
|
100
86
|
|
|
101
|
-
|
|
102
|
-
paper-search journal-metrics "Nature" "BMJ" --pretty
|
|
87
|
+
### 4. Add setup when you need more
|
|
103
88
|
|
|
104
|
-
|
|
105
|
-
paper-search run search_semantic_snippets --arg query="propensity score matching" --arg limit=3 --pretty
|
|
89
|
+
**Works once installed**: searching papers, looking up citations and references, downloading open-access papers.
|
|
106
90
|
|
|
107
|
-
|
|
108
|
-
paper-search download "<DOI>" --platform crossref
|
|
91
|
+
**With configuration, you can also:**
|
|
109
92
|
|
|
110
|
-
|
|
111
|
-
|
|
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`.
|
|
112
98
|
|
|
113
|
-
#
|
|
114
|
-
paper-search failures --format text
|
|
115
|
-
```
|
|
99
|
+
How to set them up: see [Optional setup](#optional-setup) below. Run `paper-search doctor --format text` any time to see what works.
|
|
116
100
|
|
|
117
|
-
##
|
|
118
|
-
|
|
119
|
-
```text
|
|
120
|
-
A literature request
|
|
121
|
-
│
|
|
122
|
-
├─ Find papers, verify DOI/PMID → paper-search search (Crossref, PubMed, OpenAlex, ...)
|
|
123
|
-
│ └─ Entries confirmed, full text needed → go to "Download" below
|
|
124
|
-
├─ Citing papers, references → paper-search run get_paper_citations / get_paper_references
|
|
125
|
-
├─ Impact factor, quartiles → paper-search journal-metrics (EasyScholar key)
|
|
126
|
-
├─ Methods wording, parameters → paper-search run search_semantic_snippets (Semantic Scholar key)
|
|
127
|
-
│
|
|
128
|
-
└─ Download main text, supplementary files → paper-search download / run download_with_fallback / run download_batch
|
|
129
|
-
One download command, tried in order:
|
|
130
|
-
├─ ① Open downloading (built in): the source's own download, PMC, Unpaywall, publisher APIs
|
|
131
|
-
├─ ② Sci-Hub fallback (on by default, can be turned off)
|
|
132
|
-
├─ ③ 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
|
|
133
|
-
├─ ④ arXiv preprint: only when no published version was found, and labelled as a preprint
|
|
134
|
-
├─ 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
|
|
135
|
-
└─ Nothing found → paper-search failures says why
|
|
136
|
-
```
|
|
101
|
+
## Optional setup
|
|
137
102
|
|
|
138
|
-
|
|
103
|
+
School subscription downloads only download; API keys belong to individual sources and services and cover more:
|
|
139
104
|
|
|
140
|
-
|
|
|
105
|
+
| Feature | School subscription downloads (CARSI) | API keys |
|
|
141
106
|
|---|---|---|
|
|
142
|
-
|
|
|
143
|
-
|
|
|
144
|
-
|
|
|
145
|
-
|
|
|
146
|
-
|
|
147
|
-
|
|
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` |
|
|
148
114
|
|
|
149
|
-
|
|
150
|
-
- 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.
|
|
151
|
-
- To leave out Sci-Hub, set `"useSciHub": false` in `download_with_fallback` / `download_batch`.
|
|
152
|
-
- 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.
|
|
115
|
+
### 1. School subscription downloads (CARSI)
|
|
153
116
|
|
|
154
|
-
|
|
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:
|
|
155
118
|
|
|
156
|
-
|
|
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>
|
|
157
120
|
|
|
158
|
-
|
|
121
|
+
Why use it:
|
|
159
122
|
|
|
160
|
-
|
|
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.
|
|
161
132
|
|
|
162
|
-
|
|
133
|
+
It needs [Google Chrome](https://www.google.com/chrome/) on the computer. Install it:
|
|
163
134
|
|
|
164
135
|
```bash
|
|
165
136
|
paper-search carsi install # choose your school during installation
|
|
166
137
|
paper-search carsi status --format text # check that it is ready
|
|
167
138
|
```
|
|
168
139
|
|
|
169
|
-
Then ask your AI tool to download papers as usual:
|
|
170
|
-
|
|
171
|
-
- **The first time a login is needed**, sign in to your school in the browser that opens; the login is remembered.
|
|
172
|
-
- **Human verification** is clicked automatically; you are asked only when it does not pass.
|
|
173
|
-
- **The progress capsule** in a screen corner shows the progress. It turns amber when you need to sign in or verify; click it to switch to the browser. Hover over it to skip a paper or stop the task; the gear sets the waiting times, the default download folder and system notifications.
|
|
174
|
-
- **The browser works in the background** and does not jump to the front.
|
|
175
|
-
- **When the download ends**, the capsule lists what succeeded and what failed, with reasons; `paper-search failures --format text` gives the details.
|
|
176
|
-
|
|
177
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>
|
|
178
141
|
|
|
179
|
-
|
|
142
|
+
### 2. API keys
|
|
180
143
|
|
|
181
|
-
|
|
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).
|
|
182
145
|
|
|
183
|
-
|
|
146
|
+
#### Journal metrics and full-text snippets
|
|
184
147
|
|
|
185
|
-
|
|
|
148
|
+
| Feature | Key | Where to get it |
|
|
186
149
|
|---|---|---|
|
|
187
|
-
|
|
|
188
|
-
|
|
|
189
|
-
| Preprints and conference papers | arXiv, bioRxiv, medRxiv, OpenReview, IACR ePrint | None |
|
|
190
|
-
| Computer science and engineering | DBLP, ACM, USENIX | None |
|
|
191
|
-
| Open access and repositories | CORE, OpenAIRE, Unpaywall | Unpaywall takes an email; CORE and OpenAIRE optional |
|
|
192
|
-
| Publishers and citation databases | ScienceDirect, Scopus, Springer Nature, IEEE Xplore, Web of Science | Each needs its key (ScienceDirect and Scopus share the Elsevier key) |
|
|
193
|
-
| Journal metrics | EasyScholar | Needed |
|
|
194
|
-
|
|
195
|
-
- The sources that need no key already cover the major publishers' papers; a key adds the publisher's own search.
|
|
196
|
-
- One source with `--platform`, several with `--sources a,b,c`; `--sources no-key` needs no keys at all (Crossref, PubMed, Europe PMC, arXiv, OpenReview).
|
|
197
|
-
- 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.
|
|
198
|
-
- 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.
|
|
199
|
-
- Sci-Hub is not a search source; it only serves as a DOI fallback when downloading.
|
|
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) |
|
|
200
152
|
|
|
201
|
-
|
|
153
|
+
#### Subscribed full texts through publisher APIs
|
|
202
154
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
| | API keys | CARSI (institutional download extension) |
|
|
155
|
+
| Publisher | Key | Where to get it |
|
|
206
156
|
|---|---|---|
|
|
207
|
-
|
|
|
208
|
-
|
|
|
209
|
-
| 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)) |
|
|
210
|
-
|
|
211
|
-
### API keys and the configuration file
|
|
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/) |
|
|
212
159
|
|
|
213
|
-
|
|
160
|
+
#### More search sources
|
|
214
161
|
|
|
215
|
-
|
|
216
|
-
paper-search setup
|
|
217
|
-
paper-search config list --pretty
|
|
218
|
-
paper-search config set SEMANTIC_SCHOLAR_API_KEY <your key>
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
The configuration file is `~/.config/paper-search-cli/config.json` (mode `0600`). `config list` and `doctor` show keys masked.
|
|
222
|
-
|
|
223
|
-
| Key | Use | When |
|
|
162
|
+
| Source | Key | Where to get it |
|
|
224
163
|
|---|---|---|
|
|
225
|
-
|
|
|
226
|
-
|
|
|
227
|
-
| `
|
|
228
|
-
| `
|
|
229
|
-
| `CORE_API_KEY` | CORE repository search | Frequent CORE use, or rate limits |
|
|
230
|
-
| `EASYSCHOLAR_KEY` | Journal metrics | For impact factors and quartiles; `paper-search setup EASYSCHOLAR_KEY` hides the input |
|
|
231
|
-
| `PUBMED_API_KEY`, `NCBI_EMAIL` | Higher PubMed limits | Frequent PubMed use |
|
|
232
|
-
| `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 |
|
|
233
|
-
| `ELSEVIER_INSTTOKEN` | Elsevier full text off campus through its API | Off campus; not needed on a campus network |
|
|
234
|
-
| `GOOGLE_SCHOLAR_PROXY_URL` | Egress proxy for Google Scholar | When direct requests keep being challenged; use a proxy you are allowed to use |
|
|
235
|
-
| `PAPER_SEARCH_CARSI_ENABLED` | Switch for the institutional download extension | Set by `paper-search carsi install` |
|
|
236
|
-
| `PAPER_SEARCH_SKILL_AUTO_UPDATE` | `false` stops upgrades from updating the installed Skill | On by default; set it to manage the Skill yourself |
|
|
237
|
-
| `PAPER_SEARCH_UPDATE_NOTIFY` | `false` stops the new-version notices | On by default; set it if you do not want the notices |
|
|
238
|
-
|
|
239
|
-
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/)
|
|
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/) |
|
|
240
168
|
|
|
241
|
-
|
|
169
|
+
#### Higher limits, steadier access
|
|
242
170
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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/) |
|
|
246
176
|
|
|
247
|
-
|
|
177
|
+
Common commands:
|
|
248
178
|
|
|
249
179
|
```bash
|
|
250
|
-
paper-search
|
|
251
|
-
paper-search
|
|
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
|
|
252
183
|
```
|
|
253
184
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
- `--targets all` syncs the Skill to all built-in locations. Updating overwrites the files the package manages and keeps files you added to the Skill directory.
|
|
257
|
-
- The first run after upgrading PaperSearch updates the Skill you installed; replaced files are backed up under `~/.local/share/paper-search-cli/skill-backups/`. To turn this 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.
|
|
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).
|
|
259
186
|
|
|
260
|
-
##
|
|
187
|
+
## More documentation
|
|
261
188
|
|
|
262
|
-
|
|
263
|
-
|---|---|
|
|
264
|
-
| `paper-search search` | Search paper metadata |
|
|
265
|
-
| `paper-search journal-metrics` | Journal metrics (EasyScholar) |
|
|
266
|
-
| `paper-search download` | Download the PDF of a verified paper |
|
|
267
|
-
| `paper-search run <tool>` | Call one tool exactly, with `--arg` or `--json-args` |
|
|
268
|
-
| `paper-search failures` | Why downloads failed, summarized |
|
|
269
|
-
| `paper-search update check` | Check for a new version |
|
|
270
|
-
| `paper-search carsi` | Install, check, update or remove the institutional download extension |
|
|
271
|
-
| `paper-search setup` / `config` | Configure keys, the Skill and the extension |
|
|
272
|
-
| `paper-search doctor` | Health check: configuration, available features, Skill and extension status |
|
|
273
|
-
| `paper-search skills` | Skill status, differences and updates |
|
|
274
|
-
| `paper-search smoke` | Offline or live self-check |
|
|
275
|
-
| `paper-search tools` | All tool names and their arguments |
|
|
276
|
-
|
|
277
|
-
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).
|
|
278
|
-
|
|
279
|
-
## Troubleshooting
|
|
280
|
-
|
|
281
|
-
| Problem | What to do |
|
|
282
|
-
|---|---|
|
|
283
|
-
| `paper-search` not found | Reinstall with `npm install -g papersearch` |
|
|
284
|
-
| `EEXIST` while installing | The old package is still there: `npm uninstall -g paper-search-cli` first |
|
|
285
|
-
| A feature does not work | `paper-search doctor --format text` shows what is missing; then `paper-search setup` |
|
|
286
|
-
| Subscribed articles do not download | `paper-search carsi status --format text` for the extension; `paper-search failures --format text` for each paper's reason |
|
|
287
|
-
| A source rate-limits | Lower `--max-results`, configure its key, or switch sources |
|
|
288
|
-
| Google Scholar shows a human check | Wait and retry, or use `--sources no-key` |
|
|
289
|
-
| 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.
|
|
290
190
|
|
|
291
|
-
## Roadmap
|
|
191
|
+
## Roadmap
|
|
292
192
|
|
|
293
|
-
|
|
294
|
-
- How it works inside and where the code is: [architecture](docs/ARCHITECTURE.zh.md) (Chinese).
|
|
295
|
-
- For failed downloads or publisher requests, use the download-failure issue template and provide the version, OS, website and DOI. `paper-search failures --export ./failure-report.zip` exports the failure records; check the `summary.md` and screenshots in it for personal information before attaching it.
|
|
296
|
-
- To add publisher rules yourself: see [carsi/CONTRIBUTING.md](carsi/CONTRIBUTING.md).
|
|
193
|
+
Next on the list:
|
|
297
194
|
|
|
298
|
-
|
|
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.
|
|
299
200
|
|
|
300
|
-
|
|
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).
|
|
301
202
|
|
|
302
|
-
##
|
|
203
|
+
## Acknowledgements
|
|
303
204
|
|
|
304
|
-
- Thanks to the
|
|
205
|
+
- Thanks to the LinuxDo community, where the command-plus-Skill approach and workflow improvements came from discussion and open sharing.
|
|
305
206
|
- [openags/paper-search-mcp](https://github.com/openags/paper-search-mcp): the project draws on its ideas, reworked into a standalone command.
|
|
306
|
-
- [
|
|
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.
|
|
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).
|
|
307
209
|
|
|
308
210
|
## License
|
|
309
211
|
|