Skip to content

Commit a2c2231

Browse files
authored
Merge pull request #9 from PaperDebugger/docs-imgs
2 parents 15b9707 + 88d8901 commit a2c2231

6 files changed

Lines changed: 768 additions & 52 deletions

File tree

LICENSE

Lines changed: 661 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 107 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,116 @@
11
![branding](docs/imgs/branding.png)
22

3-
PaperDebugger is an AI-powered academic writing assistant that helps researchers debug and improve their LaTeX papers.
3+
<div align="center">
4+
<img src="https://img.shields.io/chrome-web-store/users/dfkedikhakpapbfcnbpmfhpklndgiaog?label=Users" alt="Chrome Web Store Users"/>
5+
<img src="https://img.shields.io/chrome-web-store/v/dfkedikhakpapbfcnbpmfhpklndgiaog?label=Chrome%20Web%20Store&logo=google-chrome&logoColor=white" alt="Chrome Web Store Version"/>
6+
<img src="https://img.shields.io/github/v/release/PaperDebugger/paperdebugger?label=Latest%20Release" alt="GitHub Release"/>
7+
<img src="https://img.shields.io/github/actions/workflow/status/PaperDebugger/paperdebugger/build.yml?branch=main" alt="Build Status"/>
8+
<img src="https://img.shields.io/github/license/PaperDebugger/paperdebugger" alt="License"/>
9+
</div>
10+
11+
**PaperDebugger** is an AI-powered academic writing assistant that helps researchers debug and improve their LaTeX papers with intelligent suggestions and seamless Overleaf integration.
12+
13+
<div align="center">
14+
<a href="https://chromewebstore.google.com/detail/paperdebugger/dfkedikhakpapbfcnbpmfhpklndgiaog"><strong>🚀 Install from Chrome Web Store</strong></a> • <a href="https://github.com/PaperDebugger/paperdebugger/releases/latest"><strong>📦 Download Latest Release</strong></a>
15+
</div>
16+
17+
<div align="center">
18+
<img src="docs/imgs/preview2.png" width="46%" style="margin: 0 1.5%;"/>
19+
<img src="docs/imgs/preview3.png" width="46%" style="margin: 0 1.5%;"/>
20+
<img src="docs/imgs/preview1.png" width="100%" style="margin: 0 1.5%; border-radius: 0.5rem;"/>
21+
</div>
22+
23+
## 📋 Table of Contents
24+
25+
- [✨ Features](#-features)
26+
- [🎯 Quick Start](#-quick-start)
27+
- [For Users](#for-users)
28+
- [Custom Endpoint Configuration](#custom-endpoint-configuration)
29+
- [🛠️ Development Setup](#️-development-setup)
30+
- [Prerequisites](#prerequisites)
31+
- [Backend Build](#backend-build)
32+
- [Frontend Extension Build](#frontend-extension-build)
33+
- [🏗️ Architecture Overview](#️-architecture-overview)
34+
35+
## ✨ Features
436

5-
[**Install from Chrome Web Store**](https://chromewebstore.google.com/detail/paperdebugger/dfkedikhakpapbfcnbpmfhpklndgiaog) or [**Download Building Artifacts v2.9.8**](https://github.com/PaperDebugger/paperdebugger/actions/runs/17276722242/artifacts/3866902136)
37+
PaperDebugger never modifies your project, it only reads and provides suggestions.
638

7-
## Overview
8-
The PaperDebugger backend is built with:
39+
- **🤖 AI-Powered Chat**: Intelligent conversations about your Overleaf project
40+
- **⚡ Instant Insert**: One-click insertion of AI responses into your project
41+
- **💬 Comment System**: Automatically generate and insert comments into your project
42+
- **📚 Prompt Library**: Custom prompt templates for different use cases
43+
- **🔒 Privacy First**: Your content stays secure - we only read, never modify
944

10-
<img src="docs/imgs/stacks.png" style="height: 200px;" />
45+
https://github.com/user-attachments/assets/6c20924d-1eb6-44d5-95b0-207bd08b718b
1146

12-
- **Language**: Go 1.24+
13-
- **Framework**: Gin (HTTP) + gRPC (API)
14-
- **Database**: MongoDB
15-
- **AI Integration**: OpenAI API
16-
- **Architecture**: Microservices with Protocol Buffers
17-
- **Authentication**: JWT-based with OAuth support
47+
## 🎯 Quick Start
1848

19-
## Features
49+
### For Users
2050

21-
PaperDebugger never modifies your project, it only reads and provides suggestions.
51+
1. **Install the Extension**
52+
- [Chrome Web Store](https://chromewebstore.google.com/detail/paperdebugger/dfkedikhakpapbfcnbpmfhpklndgiaog) (Recommended)
53+
- [Latest Release](https://github.com/PaperDebugger/paperdebugger/releases/latest) (Manual Install)
2254

23-
- **Chat**: AI-powered chats about your overleaf project
24-
- **Instant Insert**: One-click, insert AI response to your project
25-
- **Comment System**: Automatically generate comments and insert into your project
26-
- **Prompt Library**: Custom prompt templates for different use cases
55+
2. **Manual Installation**
56+
- Download the latest release
57+
- Open Chrome and go to `chrome://extensions/`
58+
- Enable "Developer mode"
59+
- Click "Load unpacked" or drag the extension file
2760

61+
3. **Start Using**
62+
- Open any Overleaf project
63+
- Click the PaperDebugger icon
64+
- Begin chatting with your LaTeX assistant!
2865

29-
https://github.com/user-attachments/assets/6c20924d-1eb6-44d5-95b0-207bd08b718b
66+
### Custom Endpoint Configuration
3067

68+
If you want to use a **self-hosted** PaperDebugger backend, you can configure a custom endpoint. **Note**: You need to handle HTTPS serving yourself, as Chrome blocks HTTP requests from HTTPS websites for security reasons.
3169

32-
## Prerequisites
70+
**Steps:**
71+
1. Open the PaperDebugger extension
72+
2. Go to Settings, click the version number 5 times to enable "Developer Tools" (a.)
73+
3. Enter your backend URL in the "Backend Endpoint" field (b.)
74+
4. Refresh the page
75+
76+
If you encounter endpoint errors after refresh, use the "Advanced Options" at the bottom of the login page to reconfigure.
77+
78+
<div align="center">
79+
<img src="docs/imgs/custom endpoint.png" alt="Custom Endpoint Configuration" style="max-width: 600px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);"/>
80+
</div>
81+
82+
## 🏗️ Architecture Overview
3383

34-
### System Requirements
84+
The PaperDebugger backend is built with modern technologies:
85+
86+
<div align="center">
87+
<img src="docs/imgs/stacks.png" style="max-height: 200px;" />
88+
</div>
89+
90+
- **Language**: Go 1.24+
91+
- **Framework**: Gin (HTTP) + gRPC (API)
92+
- **Database**: MongoDB
93+
- **AI Integration**: OpenAI API
94+
- **Architecture**: Microservices with Protocol Buffers
95+
- **Authentication**: JWT-based with OAuth support
96+
97+
98+
## 🛠️ Development Setup
99+
100+
### Prerequisites
101+
102+
#### System Requirements
35103
- **Go**: 1.24 or higher
36104
- **Node.js**: LTS version (for frontend build)
37105
- **MongoDB**: 4.4 or higher
38106
- **Git**: For cloning the repository
39107

40-
### Development Tools
108+
#### Development Tools
41109
- **Buf**: Protocol Buffer compiler
42110
- **Wire**: Dependency injection code generator
43111
- **Make**: Build automation
44112

45-
### Installation
46-
47-
#### On macOS/Linux (using Homebrew)
113+
#### Quick Installation (macOS/Linux with Homebrew)
48114
```bash
49115
# Install Go
50116
brew install go
@@ -56,45 +122,44 @@ brew install bufbuild/buf/buf
56122
brew install node
57123
```
58124

59-
## Backend Build
125+
### Backend Build
60126

61-
### 1. Clone
127+
#### 1. Clone the Repository
62128
```bash
63-
# Clone the repository
64129
git clone https://github.com/PaperDebugger/paperdebugger.git
65130
cd paperdebugger
66131
```
67132

68-
### 2. Start MongoDB
133+
#### 2. Start MongoDB
69134
```bash
70135
# Using Docker (recommended)
71136
docker run -d --name mongodb -p 27017:27017 mongo:latest
72137
```
73138

74-
### 3. Setting up environments
75-
139+
#### 3. Environment Configuration
76140
```bash
77141
cp .env.example .env
78-
# edit the .env file based on your condition
142+
# Edit the .env file based on your configuration
79143
```
80144

81-
### 4. Build and Run
82-
145+
#### 4. Build and Run
83146
```bash
84147
# Build the backend
85148
make build
149+
86150
# Run the backend server
87151
./dist/pd.exe
88152
```
89153

90154
The server will start on `http://localhost:6060`.
91155

92-
![Backend Server Running](./docs/imgs/run.png)
156+
<div align="center">
157+
<img src="docs/imgs/run.png" alt="Backend Server Running" style="max-width: 600px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);"/>
158+
</div>
93159

160+
### Frontend Extension Build
94161

95-
## Frontend Extension Build
96-
97-
### Chrome Extension
162+
#### Chrome Extension Development
98163
```bash
99164
cd webapp/_webapp
100165

@@ -104,24 +169,14 @@ npm install
104169
# Build for production (connects to production server)
105170
npm run build:prd:chrome
106171

107-
# The extension files will be in dist/
172+
# Package the extension
108173
cd dist
109174
zip -r paperdebugger-extension.zip *
110175
```
111176

112-
### Installing the Extension
177+
#### Installing the Development Extension
113178
1. Open Chrome and navigate to `chrome://extensions/`
114-
2. Enable "Developer mode"
115-
3. Click "Load unpacked" and select the `webapp/_webapp/dist` directory, or drag the `paperdebugger-extension.zip` file into the extensions page
116-
117-
## Custom Endpoint Configuration
118-
119-
If you want to use a self-hosted PaperDebugger backend, you should set up a Custom Endpoint. Please note that you need to handle HTTPS serving yourself, as Chrome blocks HTTP requests from HTTPS websites for security reasons.
120-
121-
To configure a custom endpoint:
122-
1. Open the PaperDebugger extension
123-
2. Go to Settings, click `version number` 5 times to enable "Developer Tools"
124-
3. Enter your backend URL in the "Backend Endpoint" field
125-
4. Refresh the page
179+
2. Enable "Developer mode" (toggle in top-right)
180+
3. Click "Load unpacked" and select the `webapp/_webapp/dist` directory
181+
- Or drag the `paperdebugger-extension.zip` file into the extensions page
126182

127-
If you encounter endpoint errors after refresh, use the "Advanced Options" at the bottom of the login page to reconfigure the endpoint.

docs/imgs/custom endpoint.png

199 KB
Loading

docs/imgs/preview1.png

674 KB
Loading

docs/imgs/preview2.png

181 KB
Loading

docs/imgs/preview3.png

230 KB
Loading

0 commit comments

Comments
 (0)