albertomercurio3 downloadsImport papers from DOI or arXiv ID with full author, journal, and BibTeX management.
An Obsidian plugin that imports papers and books from a DOI or an arXiv ID, with linked notes for authors and journals, and a BibTeX entry you can check against its source. It needs nothing else: any vault can use it, on desktop and mobile.
Download main.js, manifest.json, styles.css from a published
GitHub release.
Inside your vault's configuration folder (normally .obsidian), create
plugins/research-importer/ and put those files directly inside it. Reload Obsidian,
then enable Research Literature Manager under Settings → Community plugins.
Each plugin can be installed on its own; no companion plugin or personal vault is required.
The minimum Obsidian version is 1.6.6. The plugin supports desktop and mobile. After the plugin is accepted into the community directory, it will also be available through Obsidian's built-in plugin browser.
Articles, Books, People and Journals.Templates, a PDF folder, a cover property and a log note are optional. To make
covers, set Cover property to Cover, then choose a PDF or use the clipboard
action. PDF reading and image extraction happen locally.
quant-ph/0101001. An arXiv ID gives the published version when Semantic Scholar or the arXiv record names its DOI.<citation key>.pdf, the others <citation key>-2.pdf, -3.pdf…, linked in that order.<citation key>-cover.<ext>; replacing a cover asks first, and a cover with another name goes to the trash.Read, Topics and the citation key are kept.Notes use the properties Type, Title, Authors, Journal, Year, DOI, arXiv, PDF, Read, Topics and BibTeX (multi-line). Authors and journals are wikilinks to their own notes, and so are publishers when the settings name a folder for them. The abstract from the source is an [!abstract] callout at the top of the note, before the template's body (inside its ## Abstract section when the template has one); source and date of the import are in the log.
Settings: the folder of each kind of note, and an optional templates folder. With a publishers folder, a book links its publisher and a new journal links its own, found by name or alias or created as a Publisher note; without it, a book's publisher stays text. A file named Article.md, Book.md, Person.md, Journal.md or Publisher.md in the templates folder sets the properties of new notes, their order and their body. An optional log note receives an entry for each change made from the command line. Two settings are for the command line's PDFs: a PDF folder, where add pdf= moves the PDF of a paper, and a cover property, which links the cover cut from it.
With Obsidian 1.12.2 or later the commands are also in Obsidian's command line, for scripts and agents; the app must be open. Commands that write show a preview and write only with apply:
obsidian-cli research-importer:add id=<DOI|arXiv> [arxiv=<id>] [topics="A, B"] [same="A, B"] [ask] [apply]
obsidian-cli research-importer:add pdf="<main>, <more>…" [id=<DOI|arXiv>] [cover] [topics=…] [same=…] [apply] # from PDFs in the vault
obsidian-cli research-importer:add id=<DOI|arXiv> pdf=<path> [apply] # one more PDF, such as supplementary material, which seldom prints the DOI
obsidian-cli research-importer:cover [file=<name>|path=<path>] [apply] # covers for references without one
obsidian-cli research-importer:check [file=<name>|path=<path>] [repair] [apply] # repair adds what is missing
obsidian-cli research-importer:check file=<name> restore [apply] # overwrites one note with the source
obsidian-cli research-importer:export [file=<name>|path=<path>] > refs.bib # prints BibTeX, writes nothing
obsidian-cli research-importer:lint [all] [format=json] # the offline check
file= finds a note as a wikilink does, path= by its exact path.
add answers the import's questions on its own, and lists each answer: an author with the same full name is the existing note (it only gains what it lacks, such as an ORCID); any other likely match, such as an initial for a first name, becomes a new note. Two options change that:
same="Vincenzo Macrì": these authors, named as the preview names them, are the person already in the vault. For agents: show the preview to the user, then run again with their answer.ask: the questions open in Obsidian's windows, merge included, while the command waits; ORCID name search follows the settings. ask apply imports as the palette does.pdf= takes one or more PDFs, separated by commas, and reads the DOI, or else the arXiv id, on the first pages of the first one, unless id= names the paper. After the import it moves them to the PDF folder of the settings and adds them to PDF: the first as the main one, <citation key>.pdf (Macri2022SpontaneousScatteringRaman.pdf), when the note has none; the others, and any PDF added later, as <citation key>-2.pdf, -3.pdf… A copy of a PDF the note links, byte for byte or with the same text in every page (another download), goes to the trash with apply.
cover, as an option of add or a command of its own, cuts Figure 1 out of the PDF: the picture above the caption ("FIG. 1", "Figure 1.", "Fig. 1 |"), across the caption's width, below the nearest line of prose or the running head, without white margins. It becomes <citation key>-cover.png next to the PDF, linked from the cover property. A caption beside its figure, a scanned paper or a figure beyond the sixth page gives no cover, and the output says so. Without file=, the command covers every reference with a PDF and no cover.
export lists what it leaves out (no entry, a citation key already used) as % comments before the entries. With a log note in the settings, add, cover and check add what they wrote to it, with apply.
Importing, refreshing and checking against a source use these public services:
| Service | Purpose and information sent |
|---|---|
Crossref (api.crossref.org) |
Fetch publication metadata by DOI; sends the DOI. |
arXiv (arxiv.org, export.arxiv.org) |
Fetch preprint records and publication links; sends the arXiv ID. |
Semantic Scholar (api.semanticscholar.org) |
Look up an arXiv preprint's published version; sends the arXiv ID. |
Open Library (openlibrary.org) |
Fetch book and author records; sends an ISBN or an Open Library record identifier. |
ORCID (pub.orcid.org) |
Fetch public researcher records and optionally search by author name; sends an ORCID ID or the author's given and family names. Enable Skip ORCID name search to omit name searches. |
Remote services receive the requested identifiers and, when enabled, author names; their own terms and logging apply. The plugin has no telemetry, requires no paid account or API key, and does not upload note bodies, PDF files or clipboard images. Offline reference checks and BibTeX export use the vault only. PDFs are read from the vault; clipboard images are accessed only when you invoke the paste action. Files are written inside the current vault. The desktop clipboard fallback uses Electron only on desktop; the rest of the plugin also works on mobile.
npm ci
npm run lint
npm test
VAULT=/path/to/vault npm test # also checks a real vault: offline check, export
npm run typecheck
npm run build # dist/main.js
VAULT_PLUGIN_DIR=/path/to/plugin/folder npm run build # also installs it there
src/ is the core, with no dependency on Obsidian or Node: it talks to its host through src/ports.ts. src/obsidian/ is the plugin's host; src/node/ reads a vault from disk, for the tests and for VAULT=… npm test, which runs where Obsidian is not available (CI). The commands of the command line are in src/CommandLine.ts, and their preview in src/StagedVault.ts.
Report bugs and request features in this repository's Issues, including your Obsidian version, operating system, plugin version and a minimal example with synthetic data. Please leave private notes and personal data out of reports.
MIT licence; see LICENSE. Bundled dependencies retain their own licences; see third-party attribution. Release preparation and the manual community-directory submission are described in PUBLISHING.md.