Skip to content

Demfier/openleaf

Repository files navigation

OpenLeaf

OpenLeaf

AI-powered citation search & paper review for Overleaf

Find relevant papers to cite and get feedback on your writing, without leaving the editor.

OpenLeaf Demo

How it works

  1. Open any project on overleaf.com
  2. Click the green OpenLeaf button in the bottom-right corner
  3. Citations tab — click "Find Citations" to discover papers paragraph by paragraph, scored 0-100 with LLM reasoning
  4. Review tab — get AI feedback on your paper in Friendly (constructive) or Fire (Reviewer #2) mode
  5. Click + Add to append BibTeX entries to your .bib file automatically

Click to open OpenLeaf

Editor with OpenLeaf button

Citation search — find papers paragraph by paragraph

Citation search panel

LLM-scored results with reasoning

Search results with scores

Friendly review — constructive mentor

Friendly review mode

Fire review — the Reviewer #2 experience

Fire review mode

Configure your LLM and API keys

Options page

Install

Option 1: Chrome Web Store

openleaf extension link

Option 2: Download ZIP (no npm needed)

  1. Download openleaf-extension-v0.1.0.zip from Releases
  2. Unzip it
  3. Go to chrome://extensions
  4. Enable Developer mode (top right)
  5. Click Load unpacked
  6. Select the unzipped folder

Option 3: From source

git clone https://github.com/demfier/openleaf.git
cd openleaf
npm install
npm run build

Then load in Chrome:

  1. Go to chrome://extensions
  2. Enable Developer mode
  3. Click Load unpacked
  4. Select the openleaf folder

Configuration

Click the extension icon → Options (or right-click → Options) to configure:

LLM Backend (for citation ranking & paper review)

Works with any OpenAI-compatible API:

Backend Base URL API Key?
Ollama (default) http://localhost:11434/v1 No
vLLM http://your-server:8000/v1 Optional
OpenAI https://api.openai.com/v1 Yes
OpenRouter https://openrouter.ai/api/v1 Yes
Together https://api.together.xyz/v1 Yes
Groq https://api.groq.com/openai/v1 Yes

Paper Search APIs

  • Semantic Scholar — works without key (rate-limited)
  • Serper (Google Scholar) — optional, skipped if no key
  • OpenAlex — no key needed, email improves rate limits

Development

npm run dev    # build with watch mode

After changing code, go to chrome://extensions and click the reload button on the extension.

Privacy

See PRIVACY.md. TL;DR: No data collection, no analytics, no accounts. Everything stays in your browser.

License

MIT