Lineage — git log --graph for Research Papers

Research tools · Citation graphs ·

Lineage showing Attention Is All You Need as a git graph: five coloured idea branches merging into the paper, with a stats row and the selected reference on the right.

Swap arxiv.org for lineage-graph.vercel.app in any paper link and see the idea branches that merged into it, who they came from, and what each one owns.

Problem

We started by reading up on memory as a model (MeMo, arXiv 2605.15156) and kept asking the same question about every paper: where did this idea actually come from? A reference list answers that badly. It is flat, alphabetical or numbered, and gives a 1993 textbook the same line as the paper the method is built on.

Citation data already says more than that. Semantic Scholar marks which references are influential and which are cited for methodology, and which references cite each other. Put those together and the references stop being a list and become branches of ideas merging over time, which is exactly what git log --graph draws for code.

Constraints

  • No AI model on the request path: every number on screen is a rule step a reader can recompute.
  • Free to run on one Vercel Hobby project with no database.
  • Semantic Scholar allows about one request per second, so each paper is scraped once and stored, never re-scraped on every view.
  • A brand-new paper must still work the moment someone pastes its link.

My role

I set the idea (a paper as a commit history), the scoring rules, the rule that no model sits on the request path, and the storage and cost limits. The app, CLI, tests and the tour video were built with Claude Code against that contract.

What shipped

  • A web app: paste an arXiv link (or swap the host in the URL) for log --graph, blame and stakes views, with a replay that grows the graph year by year.
  • Author timelines: type a researcher's name and get every work on one timeline; each arXiv paper opens its own lineage.
  • Scrape-once storage (one private Vercel Blob object per paper) behind a one-day CDN cache, and an OpenAlex fallback for papers Semantic Scholar has not parsed yet.
  • A CLI with the same commands as the ⌘K palette, generated from one command registry.
  • A one-minute narrated tour video on the homepage, recorded from the live site by a script in the repo.

Outcome

  • 223 ms for a stored paper vs 5,320 ms for its first scrape — Measured 2026-12-02 on the same paper. After the first view the graph is rebuilt from storage by rules in about 5 ms, with zero upstream calls. Operating envelope
  • 0 model calls; 124 of 124 unit tests passing — Points = 1 + 2 if influential + 1 if cited for methodology; a branch's stake is its share of the points. The tests cover each rule step, both API clients and the API contract. Method, with the arithmetic
  • Attention Is All You Need: 41 references, 5 branches, one owns 61% — The neural machine translation branch holds 61.4% of the paper's influence points, and the paper's concentration index (HHI) is 0.41. Open the stakes view

Try it

Change arxiv.org to lineage-graph.vercel.app in any paper link, or open Attention Is All You Need and press r to replay its history. For a person, try Ashish Vaswani: 60 works from 2006 to 2026, 27 of them on arXiv, each one a click away from its own lineage.

Where the numbers come from

Two Semantic Scholar calls per new paper: the references (with citing sentences, citation type and the influential flag), then which of those references cite each other. Each reference's parent is the most recent earlier reference it cites, and the parent chains are the branches. Blame credits each reference's points to its authors and prints the formula next to every name. When Semantic Scholar has a paper but no references, they come from OpenAlex instead.

Fun stuff for scholar geeks

It is free and open source. Paste the paper you are reading this week and see what went into making it.

Stack

TypeScript · Next.js · Vercel Blob · Semantic Scholar API · OpenAlex · Playwright · Vitest

Artifacts

Usage is not reported yet: author timelines and the tour shipped on 2026-12-03.

All projects · Michael Kaminski


Book a Call · Download Resume · MKaminski1337@gmail.com · (404) 838-8613 · LinkedIn · GitHub · DEV · X