Skip to content

Manasvi1611/devmind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 DevMind β€” AI-Powered Code Review & Documentation Assistant

Paste any code. Get instant AI-powered review, improvement suggestions, and auto-generated documentation.

Java Spring Boot LangChain4j React PostgreSQL Docker


πŸ“Œ What is DevMind?

DevMind is a full stack developer productivity tool that uses LangChain4j and the Claude API to review code, suggest improvements, and auto-generate documentation β€” all through a clean, interactive React interface.

Key capabilities:

  • πŸ” AI Code Review β€” identifies bugs, anti-patterns, and improvements
  • ✍️ Auto Documentation β€” generates Javadoc and README from your code
  • πŸ’¬ Chat Interface β€” ask questions about your code in natural language
  • πŸ•˜ Session History β€” all reviews stored and queryable via PostgreSQL
  • 🐳 Fully Containerised β€” runs anywhere with Docker

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     React Frontend                       β”‚
β”‚         Code Editor Β· Diff View Β· Chat Interface        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                      β”‚ REST API (HTTP)
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  Spring Boot Backend                     β”‚
β”‚                                                         β”‚
β”‚   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚   β”‚ REST Layer  │────▢│     CodeReviewService        β”‚  β”‚
β”‚   β”‚ Controllers β”‚     β”‚  LangChain4j + Claude API    β”‚  β”‚
β”‚   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚                                      β”‚                  β”‚
β”‚   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚   β”‚            SessionRepository (JPA)               β”‚  β”‚
β”‚   β”‚              PostgreSQL Storage                  β”‚  β”‚
β”‚   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                      β”‚
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β”‚      Claude API         β”‚
         β”‚  (via LangChain4j)      β”‚
         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ› οΈ Tech Stack

Layer Technology
Backend Java 17, Spring Boot 3.x
AI / LLM LangChain4j, Claude API (claude-sonnet)
Frontend React 18, Syntax Highlighter, Tailwind CSS
Database PostgreSQL 15 (session + history storage)
Testing JUnit 5, Mockito
DevOps Docker, Docker Compose, Maven

πŸ“ Project Structure

devmind/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ main/
β”‚   β”‚   β”‚   β”œβ”€β”€ java/com/devmind/
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ controller/
β”‚   β”‚   β”‚   β”‚   β”‚   └── CodeReviewController.java
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ service/
β”‚   β”‚   β”‚   β”‚   β”‚   └── CodeReviewService.java
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ model/
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ CodeReviewRequest.java
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ CodeReviewResponse.java
β”‚   β”‚   β”‚   β”‚   β”‚   └── ChatSession.java
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ repository/
β”‚   β”‚   β”‚   β”‚   β”‚   └── ChatSessionRepository.java
β”‚   β”‚   β”‚   β”‚   └── config/
β”‚   β”‚   β”‚   β”‚       └── LangChain4jConfig.java
β”‚   β”‚   β”‚   └── resources/
β”‚   β”‚   β”‚       └── application.yml
β”‚   β”‚   └── test/
β”‚   β”‚       └── java/com/devmind/
β”‚   β”‚           └── service/
β”‚   β”‚               └── CodeReviewServiceTest.java
β”‚   β”œβ”€β”€ Dockerfile
β”‚   └── pom.xml
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”‚   β”œβ”€β”€ CodeEditor.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ ReviewPanel.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ DiffView.jsx
β”‚   β”‚   β”‚   └── ChatInterface.jsx
β”‚   β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”‚   └── api.js
β”‚   β”‚   └── App.jsx
β”‚   β”œβ”€β”€ Dockerfile
β”‚   └── package.json
└── docker-compose.yml

βš™οΈ Getting Started

Prerequisites

  • Java 17+
  • Node.js 18+
  • Docker & Docker Compose
  • Claude API Key (get one here)

🐳 Run with Docker (Recommended)

# 1. Clone the repo
git clone https://github.com/manaswigautam/devmind.git
cd devmind

# 2. Add your Claude API key
echo "CLAUDE_API_KEY=your_api_key_here" > .env

# 3. Start everything
docker-compose up --build

App will be running at:


πŸ”§ Run Locally (Without Docker)

Backend:

cd backend
# Add your API key to application.yml
./mvnw spring-boot:run

Frontend:

cd frontend
npm install
npm start

πŸ“‘ API Endpoints

Method Endpoint Description
POST /api/review Submit code for AI review
POST /api/docs/generate Generate Javadoc / README
POST /api/chat Chat with AI about your code
GET /api/sessions Get all past sessions
GET /api/sessions/{id} Get a specific session
DELETE /api/sessions/{id} Delete a session

Sample Request β€” Code Review

POST /api/review
{
  "code": "public int add(int a, int b) { return a + b; }",
  "language": "java",
  "sessionId": "optional-existing-session-id"
}

Sample Response

{
  "sessionId": "abc123",
  "suggestions": [
    "Consider adding input validation for edge cases",
    "Add Javadoc for public method documentation"
  ],
  "improvedCode": "...",
  "generatedJavadoc": "/** Adds two integers... */",
  "reviewedAt": "2025-05-25T10:30:00Z"
}

πŸ§ͺ Running Tests

cd backend
./mvnw test

Test coverage target: ~70% across service and controller layers.


πŸ–₯️ Screenshots

(Add screenshots here once UI is built) Refer asset section. | Code Review View | Diff View | Chat Interface | |---|---|---| | review | diff | chat |


πŸ—ΊοΈ Roadmap

  • Spring Boot backend with Claude API integration
  • PostgreSQL session persistence
  • React frontend with code editor
  • Side-by-side diff view
  • Natural language chat interface
  • Docker containerisation
  • GitHub repo import (paste a GitHub URL instead of code)
  • Support for multiple languages (Python, JS, Go)
  • VS Code extension

πŸ‘€ Author

Manaswi Gautam


πŸ“„ License

MIT License β€” feel free to use and modify.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors