Literature Feed

by johnsonolly4
5
4
3
2
1
Score: 50/100

Description

Weekly paper feeds from OpenAlex into an Obsidian reading inbox, synced to Zotero.

Reviews

No reviews yet.

Stats

1
stars
52
downloads
0
forks
42
days
32
days
41
days
5
total PRs
0
open PRs
1
closed PRs
4
merged PRs
0
total issues
0
open issues
0
closed issues
10
commits

Latest Version

a month ago

Changelog

  • Reports share one look: tables with chips, sorting and a search box, a side pane for details, and Open this note's report view reopens a report from its note.
  • Citation gaps: one table of works and one of authors, switched by chips; clicking an author opens their papers beside the table (it did nothing before for runs saved by an older version); the settings fold away after a run; the gaps note can reopen the view; an LLM prompt checks whether under- or over-cited authors really are, against what it finds on the web, and its verdicts come back into the table and the note.
  • Literature review: Works fetched per topic (default 1000, up to 2000; it was 300) and Order papers by: closest to the papers you already know, best fit to the searches, newest or most cited (citation order used to push recent, well-fitting papers out of the prompt).
  • Literature review: Papers I already know (paste DOIs) ranks results by shared references and authors, adds that overlap to the prompt, and Read papers and suggest searches proposes search strings from those papers, shows which of them each string finds, checks its size and adds it to a search.

Also in 0.3.0 (built earlier on this branch)

  • The references screen matches Check setup: marks, confirm, skip, links to the DOI, Google and Scholar, selectable text. Every list of papers shows its authors. In the gaps tool an author can be clicked for their cited and uncited papers and for their other work on the same ground; the author table can be searched; the gaps note carries all author tables.
  • Citation gaps: add references by DOI (they count as cited and are read), and an authors table: for each author the share of the paper's references and the share of the gaps they appear on, the difference in points, labels for under- and over-cited authors, the paper's own authors starred; in the tab (with CSV) and in the gaps note.
  • Citation gaps: up to 100 gaps with Show more, and an optional second level (what the works that several references cite rest on), with the cost shown first (about $0.0004 a paper, about $0.0011 with the second level).
  • Find DOIs for a reference list: paste references copied from a PDF (ragged lines, no numbers or DOIs), and each is split out and looked up on Crossref (new host api.crossref.org, only when you press the button; optional contact email in the settings). Results are marked Found, Check, Not found, Manual or Error, the ones that need a look come first and are skipped unless ticked, and you can copy the list with DOIs or as CSV, or make a note. The citation-gaps paste mode uses it, so pasted references now cost about $0.0001 per 50 instead of $0.001 each.
  • Review graph in a review note: the same chips, legend and details as the tab (hold Ctrl or Cmd to zoom, so scrolling the note still works), and an Open in a tab chip. Pointing at a paper names only its ten most cited neighbours.
  • The canvas is now a reading board instead of a copy of the network: a labelled group per theme (or per group of papers that cite each other), a readable card per paper with its link, citations, what you have and the LLM's advice, colours by reading level, and one line per paper to the most cited paper in the set that it cites.
  • Review graph: chips instead of a drop-down, each explained; a Timeline layout with the year on the vertical axis; groups laid out on their own so small ones sit beside the main one; papers with no link hidden at first; the view fits the window; older saved graphs get the current layout when opened.
  • Review graph: the 12 most cited papers are always labelled, pointing at a paper lights its neighbours, big groups carry a name, a new colour mode by the LLM's themes, bigger papers, zoom buttons and a legend.
  • Citation gaps of one paper as its own tab: a DOI, link or OpenAlex id, an item picked from your Zotero library, or a pasted reference list; the cost is shown first (about $0.0003 for a paper, $0.001 per pasted reference without a DOI); a note records how it was made.
  • Literature review graph: papers are drawn again (they were missing from the graph tab, so its controls did nothing), and papers with no link to another sit in a row along the bottom instead of against the walls.
  • Literature review: the note records how the review was made (How this review was made: topics as written, matches found, ranking rules, window and sort, first request of each topic, LLM named, prompt hash and the prompt kept as a note, the answer as pasted, which paper was P1, P2 …). The command Repeat the review in this note runs it again with the recorded or the current search definitions and shows what changed.
  • Literature review: the review opens in a tab instead of a pop-up and is saved as you go (review-session.json): clicking elsewhere, closing the tab or restarting Obsidian no longer loses it, and the tab offers Resume or Start new. A telescope icon in the ribbon opens a menu (new review, resume the last one, open the last graph); the command Resume the last literature review does the same.
  • Literature review: Open graph shows the citation network in a tab (own SVG, no library: pan, zoom, click for details; colour by group, citing groups, year or the LLM's reading level; a ring for papers in Zotero, a dot for papers in the vault), and the command Open review graph reopens the last one. The graph is also drawn inside the review note (a literature-feed-graph block with an Open full graph button), the Open graph button is at the top of the review window, and there is a ribbon icon and a command Open the graph in this note.
  • Literature review: charts (papers per year, frequent authors, most cited, most connected), the citation network inside the set at no extra cost, Find missing papers (works the set cites often, and works citing several of its papers, flagged against Zotero and the vault, within the spending limit), Find gaps for one paper (what many of its references cite that it does not), Save canvas (the network as an Obsidian canvas), and a literature-feed-chart code block that draws a chart in a note.
  • Literature review: Generate literature review runs your searches over a wider window within a spending limit (estimate first, cap per topic, stop at the limit, 24-hour result cache, a monthly tally of the plugin's OpenAlex requests with an optional soft limit), flags papers already in Zotero (a local read-only index of the library), already in the vault and listed before, builds a prompt for an LLM to group and prioritise them, and makes a review note from the pasted answer. Settings → Literature review has the limits.

README file from

Github

Literature Feed

An Obsidian plugin that finds new papers on your topics each week, lists them in a reading-inbox note, and sends the ones you tick to Zotero.

Status: under development. So far (Phase 6 of the plan) the plugin has a settings tab with feeds, a Test search, a Scan now command that writes the weekly reading-inbox note, and a Sync ticked papers command that sends the ticked papers to Zotero; the weekly schedule is not built yet. A paper with a literature note shows Read, and finished inbox notes move to an archive folder. Everything below describes what it is being built to do, and it is not in the Obsidian community plugin store.

What it does

  1. Scan. Once a week (on the scan day you choose, when Obsidian is open; see Schedule below) the plugin searches OpenAlex for each feed you define (search topics, concept groups, exclusions, start year).
  2. Reading inbox. The papers it finds go into one weekly note, a collapsible section per feed, each paper with a checkbox, ranked by tier (priority, strong, possible). The note has kind: reading-inbox in its properties.
  3. Sync. You tick the papers you want and press Sync. They are created in your Zotero library, in an inbox collection for the feed and (optionally) a project collection, with a feed/<name> tag. Only ticked papers go to Zotero.
  4. From there your usual Zotero → ZotLit → Obsidian reading workflow takes over. Making literature notes is not this plugin's job.

Feeds are set up in the plugin's settings. The scan is lexical (word and phrase matching); it does not use an AI model.

Reading inbox

Run the command Scan now (command palette). It searches OpenAlex for every feed that is switched on and writes, or adds to, this week's note <inbox folder>/<year>-W<week> Reading inbox.md. A paper already listed is not listed again; the first scan looks back 30 days, later scans start 14 days before the last one so late-indexed papers are caught. If a scan fails for a feed, the other feeds still run and the last-scan date does not move.

  • Each paper line also carries a hidden marker with the numbers of the search topics that found it (the topics of the feed, counted from 1), used when you sync.
  • The table. In the note, the block draws a table of every paper (all feeds), and the per-feed lists are hidden in reading view (their lines stay in the file; remove the class literature-feed-table from the note's cssclasses to show them again). Columns: a tick box, a status chip, the paper (title, authors, venue, year, preprint, title only), the tier, and links (DOI, Zotero, Read) with the feed and the topics that found it. Ticking in the table edits the same line a tick on the list line did (unticking a paper in the "In Zotero" list still asks for it to be sent again).
  • Status chips, in Lab Kit's colours by meaning: New (slate), Ticked (blue, waiting to be sent to Zotero), In Zotero (amber, waiting to be read), Read (green, a literature note exists) and Processed (green with a tick: the note's takeaway:: line is filled in, as in Lab Kit's weekly review). A red outline marks a paper that is New or In Zotero and will count as done by age within a week.
  • Cards, one per search. Above the table the note shows a card for each search (Lab Kit's project-card look): the search's name, a badge (amber "3 to read", grey "nothing to read"), its topic count and what the last scan found for it, the first papers to read (+ N more in the table after them), the counts "3 to read · 2 new · 1 ticked · 4 read", a funnel line "listed 10 → ticked 4 → read 1" with a bar of the search's papers by status, and Show in table, which filters the table to that search (press again, or the "Feed" chip, to clear). Listed is the search's lines in this note; ticked counts papers you ticked, sent or read; read includes Processed.
  • The Home card. A literature-feed block with show: home stays one summary card: the status line, the counts, the first papers to read (add limit: 5 to the block for more; 3 by default, 20 at most) and the buttons; with more than one search switched on it also lists one line per search. It reads the latest note only.
  • Dismissing a paper. Every row ends with a ✕: Not relevant or Can't get it (no access). This works at any stage, also after a paper was sent to Zotero or read ("I read it and it is not useful"). A dismissed paper gets the status Dismissed (grey chip, faded row, struck-through title, the reason in the detail line), counts as done for the archive rule at once, is never sent by Sync, and leaves the waiting counts; the ↩ on its row undoes it. In the note's line a dismissed paper has the checkbox [-] (Obsidian's cancelled task) and a hidden marker; its Zotero and Read links stay, and the plugin never changes anything in Zotero. In the search report, not relevant counts as a firm no (even after a tick or a read) and no access counts as wanted and has its own column.
  • Tick boxes after sending. A paper in Zotero keeps its box checked and greyed (it cannot be unticked). To send it again use Send again in its Links cell (it shows Ticked until the next Sync; Cancel resend undoes that).
  • Sync from the table. The filter chips end with a Sync N to Zotero button (N = the ticked papers not yet sent, plus any you unticked in the In Zotero list to send again); it does the same as the Sync button at the top. Ticked rows are tinted across in the colour of their status.
  • Order and filters. Papers to read come first, then Ticked, then New, then Read and Processed, and inside a group by tier. Click Status, Paper, Tier or Year to sort by it, again to reverse. The chips above the table (All, To read, Ticked, New, Read, Processed, each with a count) filter it. Your sort and filter are remembered in the vault (Obsidian's local storage), not in the plugin's settings.
  • The note's properties are kind: reading-inbox, week, scanned and cssclasses with vt (Lab Kit's look), literature-feed and literature-feed-table; notes made earlier get the classes added the next time you scan, sync or update the read state.
  • The note has a status line with Scan now and a Sync button, then one collapsible section per feed. Each paper is a checkbox line: title, authors, venue, year, DOI link, tier (Priority, Strong, Possible) and the terms that matched. Feeds with no Priority or Strong paper start collapsed.
  • Papers with no abstract and no required term in the title are in a separate collapsed list per feed, "No abstract returned, matched by OpenAlex".
  • The status block and card also say what the latest scan found, for example "Last scan 2026-10-12: 3 new (0 priority, 2 strong, 1 possible, 0 without abstract), 11 dropped by the feed rules."
  • With more than one feed switched on, the block and card add one row per feed: what is waiting for that feed and what the latest scan found for it (new and dropped, or failed).
  • A paper judged on its title alone because no abstract came back carries "title only".
  • Read: when a literature note for a paper exists in your literature notes folder (a setting; for example the folder ZotLit writes to), the paper's line gets a Read link to it. The match does not depend on property names: a frontmatter value that holds the paper's Zotero item key (alone in a property whose name mentions "key" or "Zotero", or inside a zotero:// link) or its DOI counts; failing both, so does a title property equal to the paper's title (letters and digits only, any case), which covers a literature note made from an item that was later re-created under a new key. Run by hand, the command says how many inbox and literature notes it checked and what it changed, and tells you if it finds no inbox notes in the inbox folder. It runs after Scan now and Sync, and with the command Update read state and archive.
  • Archive: a weekly note is moved to the archive folder (a setting, empty by default; nothing moves until you set it) when every paper in it is read, or has aged out. A paper has aged out when its note's week ended at least N weeks ago (default 4, a setting) and it is unticked (dismissed) or in Zotero but still unread. So a paper that is in Zotero and not read keeps the note in the inbox as your reading queue, until you read it or N weeks pass. A ticked paper not yet in Zotero, or a paper unticked in the "In Zotero" list to be sent again, keeps the note open however old it is. The switch "Archive finished inbox notes" turns this off.
  • Ticking a box changes only that line; scanning again keeps your ticks.
  • The block ```literature-feed with the line show: home gives a small card (papers waiting, last scan, buttons) for another note, such as a home page. Put it inside a callout (for example a column of a Home note) and it drops its own box and title. It counts the unticked papers of the latest inbox note, each paper once even if two feeds found it; older weeks are not counted.
  • Titles and names come from OpenAlex and are written as plain text with markdown characters escaped; links are rebuilt from the DOI.

Search effectiveness

  • The plugin keeps a small history of how each search does in ledger.json in its own folder (.obsidian/plugins/literature-feed/). It stays on your computer: nothing is sent anywhere, and Obsidian Sync or another sync service may or may not carry it to other devices. It holds, per listed paper, the title, tier, week, the search topics and terms that found it, and the first day a refresh saw it ticked, sent to Zotero or read; per scan, how many papers each topic returned, listed and had removed by the rules; and a numbered version of a search's rules each time they change. No abstracts. Delete the file to start again: the next refresh rebuilds what it can from the notes in your inbox and archive folders (topics and terms come from the lines; scan numbers cannot be rebuilt).
  • The command Show search effectiveness opens a report for each search: papers listed, wanted (ticked, sent to Zotero or read), dismissed (not wanted and the note's week plus the "mark papers done after" weeks have passed), and undecided (still waiting; left out of the rates), then the same by tier, by search topic (with the returned and dropped numbers from the scans), by month and by version of the rules. It also lists feed terms and title words that do better or worse than the search's own average (at least four decided papers each) as candidates for a boost, priority, lower or drop term. These are suggestions: nothing changes a search by itself. Copy as Markdown puts the report on the clipboard. Forget history of N removed searches clears what the ledger holds about searches you have deleted from the settings.
  • Overlap. When two or more searches are in the history, the report ends with an Overlap section. Between searches: for each pair, how many papers both list (as a share of each), how often the shared papers were wanted against the rest, and how many papers one search's rules dropped that the other listed (and how many of those were wanted), with a plain sentence for each, for example "Search B's rules dropped 6 papers that search A listed (3 wanted): its rules may be too strict, or the searches overlap on purpose." Between topics of one search: papers listed per topic, papers only that topic found, a topic-by-topic matrix, and a sentence when a topic adds nothing beyond another or two topics found exactly the same papers. To compare what a search's rules dropped, the history keeps the OpenAlex ids (nothing else) of dropped candidates, at most 4000 per search. Only papers listed, and ids dropped, since the history began are counted; with fewer than 5 papers the report says the data is too thin.
  • In the reading inbox table, a paper that is listed under more than one search says "also in " under its links.
  • Rates are weak evidence until a search has about 20 decided papers, and papers ticked or read are counted from the day a refresh saw them, not the day you clicked.

Check setup

  • The command Check setup (also the first row of the settings) opens a list of what this plugin needs, each with a mark (done, to do, good to know) and a button where the plugin can fix it: both API keys chosen and readable, the Zotero user ID, the inbox and archive folders (a missing one can be created), the literature notes folder (with one press it can be set to Lab Kit's 04 Literature/ZotLit Imports when that folder exists), a search switched on, each search's Zotero collection and project (a Lab Kit project page lists a paper only when the collection is Projects/ plus the page's exact name, so the check looks for a note of that name), ZotLit installed and on, and Lab Kit found. It also reminds you of the Zotero add-ons for PDFs, which cannot be checked from Obsidian. The list checks again after every button.
  • Adding parts to Lab Kit's notes. When Lab Kit is on, the window ends with a step that offers three additions, each only when you press its Add and after a preview of the exact lines and where they go: the Reading inbox tile (a [!reading-inbox] callout with a book icon, a title link that opens the newest weekly note, and the literature-feed block with show: home) as the last tile in the Home note's columns (at the end of the note when it has none) and above the columns on the Literature hub, and a short callout, marked as an addition from the Literature Feed plugin, at the end of the Reading papers section of How my vault works (not the Vault spec). Without Lab Kit the window instead offers to make a one-page stand-alone note, Reading inbox how-to, in the vault root. The window recognises an addition (a tile by the link in its title, the section by its heading), shows it as already added, and Remove takes it out again; no marker comments are written into the notes. The plugin changes nothing else in those notes. Lab Kit treats an edited note as changed by you and keeps your edit when it updates the kit (Review update… merges edits that do not overlap). Not offered, because they would mean editing Lab Kit's queries or structure: hiding the feed/ and found-by/ tags in its tag list, and a weekly-review toggle.

Literature review

  • The review is a tab, and it is saved as you go. Open it with the telescope icon in the ribbon (a menu: new review, resume the last one, open the last graph), the command Generate literature review or Settings → LLM prompts. It stays open when you click elsewhere, can sit beside a note or your chat window, and the review in progress (papers, what was looked up, the pasted answer) is saved in the plugin folder (review-session.json), so closing the tab or restarting Obsidian does not lose it: the tab offers Resume or Start new. The review note is the permanent copy; the saved session is replaced by the next review.
  • A review can be repeated. The review note ends with How this review was made: the run time, the window and the sort, each search's topics exactly as written with the matches found, the ranking rules (concept groups, drop and lower terms), the first request of each topic, the minimum rank, the LLM you named (the field LLM used), the prompt's length and SHA-256 hash, and the cost. The prompt itself is saved as its own note next to the review (switch off with Keep the exact prompt with the note), and the answer is kept exactly as pasted. A hidden block holds the same record for the plugin: in a review note, the command Repeat the review in this note opens the review tab with the same window, rank limit and prompt options and lets you choose the search definitions as recorded or current settings; after the run it lists what is new, what is no longer returned and what changed rank. OpenAlex ranks by relevance and its data changes, so a repeat can differ; the list of changes says how.
  • The references screen looks like Check setup (a mark, the reference, buttons on the right). The status word (Check, Found) is a link to the DOI, so you can follow it and press Confirm when it is right; Skip takes a reference out of the check (a repository, a web page; Skip software and web pages does them all, Restore brings one back); each reference title is a Google search link with a Scholar link beside it, and the text can be selected and copied.
  • Authors in every list, and a drill-down. Every list of papers shows the first three authors then "et al." (review notes, the gaps note and tab, the references note). In the gaps tool, click an author in Authors: cited and not cited to see their papers this paper cites and does not cite (with whether an uncited one was out before the paper, so it could have been cited, or after), and Find their other work on this ground: their works that cite at least one of the same references and that the paper does not cite (one or two lookups, about $0.0002). The table can be searched by name, and the gaps note holds all three tables (first level, second level, both) as closed callouts with every author.
  • Find DOIs for a reference list (command, and the ribbon menu) takes references copied from a PDF, however the lines break, with or without numbers or DOIs, splits them into one reference each, and asks Crossref (free, no key) for each one's DOI. Each result is checked (title, first author, year, volume, first page) and marked Found, Check (found, but something differs; the reasons are shown), Not found, Manual (software or web pages) or Error. The ones that need a person come first under Needs a look: they are skipped unless you tick them, and you can type a DOI for one you found yourself. Then Copy list with DOIs, Copy as CSV (authors, journal, year, volume, pages, publisher and Crossref's citation count included) or Create note. It runs at most four requests a second, one at a time, backs off if Crossref asks, and does up to 200 references at once (about a minute). It is a TypeScript port of the check_refs.py script, so nothing needs installing. The same tool is built into the paste mode of the citation-gaps tab, so only the found DOIs are looked up in OpenAlex, which costs about $0.0001 per 50 instead of $0.001 for each reference without a DOI.
  • Citation gaps go deeper. The tool keeps up to 100 gaps (15 shown, Show 15 more or Show all; the note lists them all). Go a second level (off by default) also reads the works that at least two of the references cite (up to 300, the foundations they share) and lists what at least n of those cite (default 5): the foundations under the foundations, not the paper, its references or the shared works themselves. The estimate is shown first: about $0.0004 for a paper, about $0.0011 with the second level.
  • What the two levels are. The second level starts from works shared between the references, whether or not the paper cites them; it does not start from the first-level gap list.
Paper P cites R1 ... R100 (its "references")

LEVEL 1: what the references cite
  R1..R100 -> the works they cite; count how many references cite each
    cited by the paper too                 -> not listed
    NOT cited by P, cited by 3 or more     -> gaps (first-level list)
    cited by 2 references                  -> shared, too few to be a gap

LEVEL 2 (optional): what the shared works rest on
  Hubs = every work cited by at least 2 references (up to 300). Hubs include
  works the paper cites AND works it does not (the first-level gaps are among them).
  H1..H300 -> the works they cite; count how many hubs cite each
    listed if cited by n or more hubs (default 5) and it is not the paper,
    one of its references, or a hub itself  -> deeper foundations
  • Add references by DOI, and who the authors are. The gaps tool has a box Add references by DOI (paste any text; the DOIs are picked out): they count as cited, so they are not suggested as gaps, and their own references are read too, which helps when OpenAlex's list for the paper is short or missing (about $0.0001 for 50). Under the gaps, Authors: cited and not cited lists each author with how many of the paper's references and how many of the gaps they appear on, as a percent of each side, and the difference in percentage points. An author with a bigger share of the gaps than of the references may be under-cited by the paper; the reverse (starred if one of the paper's own authors) may be over-cited. Labels need at least three works. With the second level on you can compare against the first-level gaps, the second-level gaps or both; there is a minimum-works field, Show all and Copy as CSV, and the gaps note carries the table. Authors are matched by family name and first initial, so two people who share both count as one.

  • Citation gaps of one paper is its own tab (command Citation gaps of one paper, and the ribbon menu), independent of any review. Give it a paper as a DOI, a link or an OpenAlex id, pick one from your Zotero library (the local index; it reads the library once, read-only), or paste the paper's reference list. It finds the works that at least 3 of the paper's references cite and the paper does not (2 to 10 is your choice), flags what you have, and can make a note with how it was made. Cost: the paper's own record is free; reading up to 100 references takes two lookups and the details of the gaps one more, about $0.0003 in all. A pasted list costs about $0.0001 per 50 DOIs, and $0.001 for each line without a DOI (searched by its text; at most 25 per run, shown before it runs). Results of earlier lookups are kept for 24 hours, so a repeat is free.

  • Generate literature review runs your searches over a wider window than the weekly scan, shows what it will cost before it spends anything, flags the papers you already have, and builds a prompt for an LLM to group and prioritise them. Choose the searches, the year to start from (the earliest "years from" of the chosen searches, or five years back), how many papers go into the prompt (60 by default, at most 150), and the lowest rank to keep.

  • Spending (OpenAlex credits). OpenAlex prices requests in credits (10,000 credits = $1; the free plan includes $1.00 a day): a search page costs 10 credits ($0.001), a lookup by id or by citation 1 credit ($0.0001), one record is free. Estimate the cost counts what each topic matches with one tiny request per topic, then shows works, requests and dollars. It never runs a search that would pass Settings → Literature review → Spending limit per review (default $0.05, about 50 requests) unless you switch on the allowance for that review; each topic is capped at 300 works, best matches first; a run stops at the limit and keeps what it has; results are kept for 24 hours so reopening the window or changing the prompt costs nothing (Fetch again ignores them). Every OpenAlex request the plugin makes is added to a monthly tally (openalex-spend.json, shown in the window), and an optional Monthly soft limit warns before a review that would pass it. The plugin counts only its own requests: your account's real allowance is on openalex.org.

  • What you already have. Each paper is flagged in Zotero, in the vault (a literature note matched by DOI, Zotero key or title, as for the Read links) and listed before (by a weekly scan). Check against Zotero reads your library, read-only, into a local index (zotero-index.json: item key, DOI and title; the first time takes about one request per 100 items, later only what changed). Nothing from it leaves your device.

  • The prompt and the note. The prompt lists the searches and the numbered papers (year, venue, citations, rank, matched terms, what you already have, abstract cut to 600 characters), asks for themes, a reading level for each paper (must, should, skim, skip) with reasons, gaps and search suggestions, and states the exact JSON the answer must have. Copy prompt copies it (the window shows exactly what and how many characters); Save prompt as note writes it to a note you can attach to a chat as a file when it is too long to paste. Paste the answer back, Check answer, then Create review note: a note under <literature folder>/Reviews (the vault root without one) with the themes, a reading-priority table with links to the DOI, Zotero and your literature notes, the gaps and the suggested search changes.

  • Charts and the citation network. Under the results the window draws four charts from what the search found (papers per year, authors with two papers or more, the most cited papers by all citations, and the papers most connected inside the set), and says how many citations there are among the papers, how many groups cite each other and how many papers are linked to none. All of that comes from the first search and costs nothing more. Find missing papers (about 3 to 5 lookups at $0.0001 each, shown first and under the same spending limit) looks up works that several of these papers cite but that are not in the set (labelled M1, M2, …: often the foundational ones) and works outside the set that cite several of them (C1, C2, …: follow-ups and reviews), flags which of those you already have in Zotero or the vault, and adds them to the prompt so the LLM can rate them too. Save canvas writes an Obsidian canvas with a card per paper laid out by year, in-set papers, missing papers and citing papers in different colours, and an arrow for every citation. The window says for how many of the papers OpenAlex lists references at all (and warns when that is under 70%, because the network then misses many links). The network is only as good as OpenAlex's reference lists, which are incomplete for some works, and very new papers have no citations yet; "missing" is a count, not a judgement.

  • Where the graph is kept. There is no separate graph file to look after. Each review note holds its graph as a literature-feed-graph block (the permanent copy, drawn in the note); the plugin folder keeps the last graph you opened (review-graph.json, replaced each time) and the review in progress (review-session.json); Save canvas writes Literature review network <date>.canvas next to the review note: a reading board with a group per theme (or per group of papers that cite each other), a card per paper with its link, citations, what you have and the LLM's advice (card colour = reading level), and one line from each paper to the most cited paper it builds on. Positions are worked out again whenever a graph is read, so older notes get the current layout.

  • The review graph. The graph is drawn inside the review note (under Citation network, with an Open full graph button), and Open graph at the top of the review window, the network-graph icon in the ribbon, the command Open review graph (the last one, or the review window if there is none) and the command Open the graph in this note (in a review note) open the full view. The full view shows the network in a tab, drawn by the plugin without a library: a circle per paper (sized by citations; the papers in the set, the possibly missing ones and the ones that cite several of them in different colours), a line per citation, a ring when you have the paper in Zotero and a dot when you have a literature note. Drag to pan, scroll or pinch to zoom, click a paper for its details and buttons (open the paper, show it in Zotero, open your note). Pointing at a paper lights it, its neighbours and the lines between them. The ten or so most cited papers always carry their label; big groups carry a name (the group's most cited paper, or the theme's name). Controls are chips, each with a line saying what it means: Layout (Network, or Timeline with the publication year as the vertical axis, oldest at the top), Colour by (Kind, Groups, Themes, Reading level, Year), and Show (missing and citing papers, papers with no link, which are hidden at first). The view fits the papers to the window. Colour by group, by the groups of papers that cite each other, by the LLM's themes or its reading level once its answer has been checked, or by year; there are zoom and fit buttons and a legend; filter by title; tick off the missing and citing papers to see only the set. The picture is laid out once, the same way each time, and the last graph is kept in the plugin folder (review-graph.json).

  • Citation gaps of one paper. Pick a paper in the window and Find gaps (two or three lookups, about $0.0003): it reads that paper's references (the first 100) and their own reference lists, and lists works that three or more of those references cite but the paper itself does not, with how many of its references cite each, its citations, and whether you already have it. A hint of what the paper may have missed, not proof.

  • The review note also holds the charts (as literature-feed-chart blocks the plugin draws) and the network tables.

LLM prompts (copy and paste)

  • The plugin never calls an LLM, has no LLM key and sends nothing. Three commands (also under Settings → LLM prompts) copy a prompt that you paste into a chat with whichever LLM you use, and take its JSON answer pasted back. Each window shows exactly the text that will be copied, and every prompt states the JSON format the answer must have, with an example; the pasted reply may contain other text, only the JSON in it is used, and nothing changes until you accept it.
  • Review a search with an LLM: the prompt holds the search (topics, groups, drop and lower terms), the search-effectiveness report for it, and the earlier suggestions you accepted or rejected (with your reasons, so the LLM does not repeat refused ones). Paper titles are added only if you tick Include paper titles (off by default). The answer is a list of suggestions (add or remove a term, change a group's role, add a group, replace, add or remove a topic); each is shown with the LLM's reason and Accept / Reject, and every decision is kept in decisions.json in the plugin folder for the next review.
  • Compare searches with an LLM: the prompt holds every search (topics, groups, drop and lower terms), a line per search with its papers listed and wanted rate, and the Overlap section of the report. The answer is advice per search (keep, narrow, broaden, merge, split or remove, with the numbers behind it); it is shown for you to read and copy and is never applied: you change the searches by hand. Needs at least two searches.
  • Tweak search terms with an LLM: the prompt holds one search with what each topic returned, had listed and had dropped by the rules over the logged scans, how its topics overlap, and an optional note on what you are after. The answer keeps, changes, adds or removes topics; you accept or reject each, then try Test in the feed editor.
  • New search from a description with an LLM: you write what you want to follow and how many example papers you will attach. Attach the PDFs or pages to the chat yourself (the plugin never sees them). The answer is a complete search in the importable feed format, plus notes on which examples it would still miss; Add this search adds it switched off.

Sync to Zotero

Tick the papers you want, then press Sync in the status block or run the command Sync ticked papers. For every ticked paper in the inbox notes that has no "in Zotero" link yet:

  • The plugin fetches the paper's full record from OpenAlex again (clean title, authors, abstract, DOI).
  • If your library already has an item with that DOI (or, for a paper without a DOI, the same title), no copy is made: that item is added to the feed's collections and gets the feed/<name> tag, and nothing else about it changes.
  • Otherwise a new item is created (journal article, preprint or thesis, by the OpenAlex type) in the feed's Zotero collection and, if set, its project collection, with the tags feed/<name> and found-by/openalex, and in Extra "OpenAlex: W..." and a line "Found by: OpenAlex search, feed ..., topic N" (so you can show where a paper came from in a ZotLit template and see how well the search does). An item that was already in your library only gets the feed's collection and feed/<name> tag: it was not found by the search first, so it gets no found-by tag.
  • After writing, Sync reads each item back from Zotero and checks that it exists, is not in the Trash and is in the collections it was meant for. Only then does the paper count as synced; otherwise it is reported as failed, stays ticked and is tried again at the next Sync.
  • A synced paper is ticked, gets a link "in Zotero" (zotero://select/...) and moves into a collapsed list "In Zotero" at the bottom of its feed. To send it again (for example after creating a missing collection), untick it in that list and press Sync: if the item already exists, the feed's collections and tag are added and no copy is made.
  • The Notice says how many papers were added or already there, and which collections they were filed in (and whether Sync made them).
  • The command Show Zotero collections lists the collections Zotero's server reports, with their keys and any that are in the Trash, so you can compare them with what Zotero shows.
  • Sync saves a note you have open and edited before it reads it, so a tick or untick you made a moment ago is counted.
  • A collection path such as Inbox/Lipoic acid copolymers means a collection inside another. The plugin does not create Zotero collections unless you allow it, because they may turn into folders in your vault. If a collection is missing, Sync stops before sending anything and the Notice says which one to create in Zotero (then press Sync again). Two settings allow creation, separately for inbox collections and project collections (both off by default); even then only the last name of a path is created, inside a parent that already exists.

Your Zotero desktop app picks the new items up at its next sync with zotero.org; ZotLit reads Zotero desktop's local database, so a synced paper shows up in ZotLit after that.

Settings

Open Settings → Literature Feed. Needs Obsidian 1.14 or later.

  • Accounts: OpenAlex API key, Zotero API key and Zotero user ID. Each key row is a picker for a secret in Obsidian's secret storage: you choose or create the secret there, and the plugin's data file keeps only its name (see Network use).
  • Folders: inbox folder (weekly notes) and archive folder (finished notes).
  • Schedule: the weekday of the weekly scan; Scan on start-up when due (on by default); Send ticked papers to Zotero once a day (off by default). A scan is due when none has completed since the latest scan day: when Obsidian starts (about 15 seconds after it is ready) and then hourly while it stays open, the plugin checks, and scans if it is due and at least one feed is switched on. A scan by hand counts for that week, and a scan that failed for any feed is tried again, at most once a day. Automatic scans do not open the note and say nothing when there is nothing to do; the result appears as a notice ("12 new: 3 priority, …, cost $0.01"). Automatic sync, if switched on, sends the papers you have ticked at most once a day, only with both Zotero settings filled in, and says nothing when there is nothing to send. Nothing runs while Obsidian is closed.
  • Opening the inbox: the command Open reading inbox and the book icon in the ribbon open the newest weekly note.
  • Zotero: two switches, "Create missing inbox collections" and "Create missing project collections" (both off by default); see Sync to Zotero.
  • Feeds: one row per feed with an on / off switch, edit, duplicate and export; Add feed and Import feed below. A feed has a name, a start year, a Zotero collection and an optional project (the first four fields of the editor), then search topics (one OpenAlex search per line), concept groups, drop terms and lower terms.
    • A concept group has a role. Required: a paper without a match is dropped. Boost: a match raises it to Strong. Priority: a match raises it to Priority. A paper counts as matching a group when any of the group's terms is in its title or abstract.
    • Drop terms remove a paper. Lower terms move it down one tier.
    • A paper with no abstract is judged on its title alone and ranks at most Possible; if its title does not show the required terms it goes to an Unchecked list instead of being dropped.
    • Test in the feed editor runs a real OpenAlex search (the last year) and shows how many papers fall into each tier and what the search cost. It asks first and writes nothing to your vault. Each request costs about $0.001.
    • Export writes <feed>.feed.json into the inbox folder (the vault root if none is set); Import reads such a file or pasted JSON and adds the feed switched off. Exports contain no keys. An example is in docs/feeds/.

Network use

The plugin talks to three services, and nothing else. (The third, Crossref, is used only when you press Tidy and find DOIs on a pasted reference list.) There is no telemetry, no analytics and no other server. Requests to OpenAlex are made when you scan, and, unless you switch Scan on start-up when due off, by themselves once a week while at least one feed is switched on; requests to Zotero are made when you sync, and by themselves only if you switch on Send ticked papers to Zotero once a day.

Service Host What is sent What it is for
OpenAlex api.openalex.org Your search queries (the topic strings of your feeds), a date window, the OpenAlex id of each paper you sync, and your OpenAlex API key (in an Authorization header, not in the address) Finding new papers. Paper metadata (title, authors, venue, year, DOI, abstract) comes back
Crossref api.crossref.org The text of each reference you paste (authors, title, journal, year), and your contact email if you entered one in the settings (as mailto=, which Crossref uses to give you its faster pool). No key, nothing else. Only when you press Tidy and find DOIs Finding the DOI of a reference that has none. The matching record (DOI, title, authors, journal, year, volume, pages, publisher, citation count) comes back
Zotero api.zotero.org Your Zotero user ID and API key, and for each paper you tick: its title, authors, abstract, venue, date, DOI and link, plus the collection and tag names (and, to avoid duplicates, a search for the DOI or title in your library) Checking whether a paper is already in your library by DOI, then creating items, collections and tags in your library

Your API keys are kept in Obsidian's secret storage, on your device and outside your vault. The plugin's settings file (.obsidian/plugins/literature-feed/data.json) holds only the name of each secret, never the key, so syncing or backing up your vault does not copy a key. For the same reason, you choose the secrets again on each device. Keys are sent only to the service they belong to. If an earlier version stored a key as plain text in the settings file, the plugin moves it into the secret storage the first time it loads and removes it from the file.

Accounts needed

  • OpenAlex: a free account and API key, from openalex.org/settings/api.
  • Zotero: an API key with write access to your library, and your numeric user ID, both under the API keys part of your account settings on zotero.org.

Needed for PDFs

Sync adds a paper's metadata (title, authors, abstract, DOI, venue, date) to your Zotero library; it does not fetch PDFs. For full texts you need, alongside this plugin:

  • Zotero desktop (7 or later; tried with 10), which pulls the new items from zotero.org at its own sync. ZotLit reads Zotero desktop's local database, so a paper reaches ZotLit only after that sync.
  • The Zotero Connector browser extension, to save a paper's PDF from the publisher page while you are logged in through your library.
  • The Zotero add-on Better Find Full Text (its README lists Zotero 7.0, 8.x, 9.x and 10.x). Select the papers in Zotero, right-click, and use it: it tries Zotero's own PDF finder and the publisher's PDF link, and for a paywalled paper it opens the DOI page in your browser. After you log in and click the Connector, it moves the PDF onto the existing item and deletes the duplicate the Connector made, so the paper stays in its inbox collection. It is a separate project with no connection to this plugin, and a paywalled paper still needs your own click on the Connector.

Works with Lab Kit

Lab Kit is a separate plugin for a chemistry lab notebook. Literature Feed works with it through note conventions only (the reading-inbox kind, and Lab Kit's styling classes when they are present) but does not need it. Without Lab Kit the inbox note uses the plain Obsidian look.

If you use Lab Kit's planning vault, set these folders so the two do not get in each other's way:

  • Inbox folder: not Lab Kit's 00 Inbox. That folder is for quick captures, and Lab Kit's Sort inbox command walks through every note in it and offers to move or delete it, which would take the reading-inbox note with it. Use a folder of its own, such as 04 Literature/Suggested.
  • Archive folder: for example 99 Archive/Suggested (Lab Kit archives captured notes to 99 Archive/Inbox).
  • Literature notes folder: 04 Literature/ZotLit Imports, where ZotLit writes the notes.
  • The table uses Lab Kit's palette variables when its theme is on and the same colours otherwise, so New is slate, Ticked blue, In Zotero amber and Read green, and red appears only for papers about to age out.
  • Papers you sync carry the Zotero tags feed/<name> and found-by/openalex. Lab Kit's ZotLit settings put Zotero tags into the literature note's Zotero Tags property, so those tags show up there after Update literature note and in Lab Kit's "Papers by Zotero tag" list, with no template change.
  • The Zotero add-on and browser extension named under "Needed for PDFs" belong on the per-computer list in Lab Kit's Setting up a computer note.

Development

npm install
npm run dev     # watch build into test-vault/.obsidian/plugins/literature-feed/
npm run build   # type-check and build main.js
npm test        # vitest
npm run lint    # eslint
npm run demo    # write a demo set (fake papers, notes and a guide) into test-vault/Demo/

Open test-vault/ as a vault in Obsidian to try the plugin. npm run demo fills test-vault/Demo/ with fake weekly notes, literature notes and a guide with a checklist for every feature (import docs/feeds/demo-polymers.json and demo-catalysts.json as searches). Never develop against your own vault. API keys go into the plugin's settings in test-vault only, never into code, tests or docs.

Licence

MIT, see LICENSE.