MCPcopy Index your code
hub / github.com/14790897/paper-ai

github.com/14790897/paper-ai @v1.11.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.11.0 ↗ · + Follow
203 symbols 533 edges 92 files 1 documented · 0% updated 2mo agov1.11.0 · 2026-04-11★ 1,7017 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

the fastest way to create a paper with real references

paper-ai

The fastest way to write a paper with true references

Website Documentation (detailed tutorials, highly recommended) · bilibili Video Tutorial

Features · Demo · Deploy to Vercel · Clone and run locally

Features

Using AI for Paper Writing

  • AI Write Feature: Click "AI Write" for a normal dialogue interaction. AI will provide writing suggestions or answer questions based on your input.
  • Paper2AI Feature: Click "Paper2AI" to search for papers in Semantic Scholar or arxiv based on entered keywords. The system will integrate the information into your paper.

Editing and Modifying

  • Directly edit and modify the AI-generated content in the editor.
  • Use the provided tools to adjust text style and layout.

Demo

You can view a fully working demo at paperai.14790897.xyz.

Deploy to Vercel

Deploy with Vercel

The above will also clone the repo to your GitHub, you can clone that locally and develop locally.

If you wish to just develop locally and not deploy to Vercel, follow the steps below.

Using Docker

  1. Using docker pull command
docker pull 14790897/paperai:latest
  1. Run Docker
docker run -d -p 3000:3000 \
  -e NEXT_PUBLIC_AI_URL=CUSTOM_AI_URL \
  -e NEXT_PUBLIC_OPENAI_API_KEY=CUSTOM_API_KEY \
  14790897/paperai:latest

Replace CUSTOM_AI_URL and CUSTOM_API_KEY to your own AI URL and API key

Environment variable description

  1. NEXT_PUBLIC_OPENAI_API_KEY sets the key. Simply leave the corresponding position in the settings interface (the gear in the upper right corner) blank, the predetermined variable will be used.
  2. NEXT_PUBLIC_AI_URL sets the upstream url. Simply leave the corresponding position in the settings interface (the gear in the upper right corner) blank, the predetermined variable will be used.
  3. NEXT_PUBLIC_SEMANTIC_API_KEY sets the semantic scholar key to increase the number of requests
  4. NEXT_PUBLIC_PUBMED_API_KEY sets the pubmed key to increase the number of requests

Clone and run locally

```bash

Clone the repository

git clone https://github.com/14790897/paper-ai.git

Enter the project directory

cd paper-ai

Install dependencies

npm install

Run the project

npm run dev

```

Reference

  1. semantic scholar api: https://api.semanticscholar.org/api-docs/#tag/Paper-Data/operation/get_graph_paper_relevance_search
  2. pubmed api: https://www.ncbi.nlm.nih.gov/books/NBK25500/
  3. i18n: https://locize.com/blog/next-app-dir-i18n/

LICENSE

This repository is licensed under the MIT License

See the LICENSE file for details.

Extension points exported contracts — how you extend this code

Author (Interface)
(no doc)
components/GetSemantic.tsx
ChatData (Interface)
(no doc)
components/chatAI.tsx
ProgressDisplayProps (Interface)
(no doc)
components/ProgressBar.tsx
SweetAlertComponentProps (Interface)
(no doc)
components/ParagraphDeleteInterface.tsx
Window (Interface)
(no doc)
components/ChatwootWidget.tsx
ArxivFeed (Interface)
(no doc)
components/GetArxiv.tsx
IndexProps (Interface)
(no doc)
utils/global.d.ts
APIState (Interface)
(no doc)
app/store/slices/stateSlice.ts

Core symbols most depended-on inside this repo

createClient
called by 12
utils/supabase/server.ts
createClient
called by 11
utils/supabase/client.ts
sendMessageToOpenAI
called by 7
components/chatAI.tsx
getActualModel
called by 6
components/QuillEditor.tsx
evaluateTopicMatch
called by 6
utils/others/aiutils.ts
submitPaper
called by 6
utils/supabase/supabaseutils.ts
insertUserProfile
called by 6
utils/supabase/supabaseutils.ts
useTranslation
called by 6
app/i18n/client.js

Shape

Function 191
Interface 12

Languages

TypeScript99%
Python1%

Modules by API surface

utils/others/quillutils.ts21 symbols
components/ReferenceList.tsx10 symbols
utils/supabase/supabaseutils.ts8 symbols
components/QuillEditor.tsx8 symbols
old/ReactQuillEditorNew.tsx6 symbols
components/SlateEditor.tsx6 symbols
components/PaperManagement.tsx6 symbols
utils/supabase/supabaseutils back.ts5 symbols
components/GoogleSignIn.tsx5 symbols
components/GetArxiv.tsx5 symbols
utils/supabase/server.ts4 symbols
utils/supabase/middleware.ts4 symbols

For agents

$ claude mcp add paper-ai \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page