Update README with detailed documentation
Browse files
README.md
CHANGED
|
@@ -10,7 +10,52 @@ license: mit
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# Arcee AI Trinity Large Code Review
|
| 13 |
-
AI-powered code review using Trinity Large Preview via OpenRouter.
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# Arcee AI Trinity Large Code Review
|
|
|
|
| 13 |
|
| 14 |
+
AI-powered code review that streams real-time analysis of any public GitHub file using [Arcee AI's Trinity Large](https://huggingface.co/arcee-ai/trinity-large-preview) model via OpenRouter.
|
| 15 |
+
|
| 16 |
+
<p align="center">
|
| 17 |
+
<img src="https://img.shields.io/badge/Model-Trinity%20Large-purple" alt="Trinity Large">
|
| 18 |
+
<img src="https://img.shields.io/badge/API-OpenRouter-blue" alt="OpenRouter">
|
| 19 |
+
<img src="https://img.shields.io/badge/Streaming-SSE-green" alt="Server-Sent Events">
|
| 20 |
+
<img src="https://img.shields.io/badge/License-MIT-yellow" alt="MIT License">
|
| 21 |
+
</p>
|
| 22 |
+
|
| 23 |
+
## How It Works
|
| 24 |
+
|
| 25 |
+
1. Paste a public GitHub file URL (e.g., `https://github.com/owner/repo/blob/main/file.py`)
|
| 26 |
+
2. Choose a review tone: **Gentle** (supportive mentor), **Standard** (Linus Torvalds-style), or **Brutal** (volcanic rage)
|
| 27 |
+
3. Get a streaming code review across 6 categories
|
| 28 |
+
|
| 29 |
+
## Review Categories
|
| 30 |
+
|
| 31 |
+
| Category | What It Covers |
|
| 32 |
+
|----------|---------------|
|
| 33 |
+
| **Summary** | High-level overview of the file's purpose and structure |
|
| 34 |
+
| **Code Quality** | Issues tagged as `[CRITICAL]`, `[HIGH]`, `[MEDIUM]`, or `[LOW]` severity |
|
| 35 |
+
| **Performance** | Algorithmic inefficiencies, memory leaks, unnecessary allocations |
|
| 36 |
+
| **Security** | Injection risks, authentication issues, data exposure |
|
| 37 |
+
| **Suggestions** | Concrete improvements with inline diff blocks |
|
| 38 |
+
| **Verdicts** | Opinions from Linus Torvalds, Donald Knuth, and Bjarne Stroustrup |
|
| 39 |
+
|
| 40 |
+
## Tech Stack
|
| 41 |
+
|
| 42 |
+
- **Backend**: Node.js + Express with Server-Sent Events (SSE)
|
| 43 |
+
- **Frontend**: Vanilla HTML/JS with tabbed interface, syntax highlighting, and diff rendering
|
| 44 |
+
- **Model**: `arcee-ai/trinity-large-preview:free` via [OpenRouter](https://openrouter.ai/)
|
| 45 |
+
- **Deployment**: Docker on Hugging Face Spaces
|
| 46 |
+
|
| 47 |
+
## Run Locally
|
| 48 |
+
|
| 49 |
+
```bash
|
| 50 |
+
git clone https://huggingface.co/spaces/juliensimon/trinity-code-reviewer
|
| 51 |
+
cd trinity-code-reviewer
|
| 52 |
+
echo "OPENROUTER_API_KEY=your_key_here" > .env
|
| 53 |
+
npm install
|
| 54 |
+
node server.js
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
Opens at [http://localhost:3000](http://localhost:3000).
|
| 58 |
+
|
| 59 |
+
## License
|
| 60 |
+
|
| 61 |
+
MIT
|