Skip to content

rsayyed591/ai-dev-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

55 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ AI Dev Assistant

Live Demo Next.js Node.js MongoDB License: MIT

"Helping developers spend less time writing and more time building."

AI Dev Assistant is a full-stack AI-powered developer tool that helps developers rewrite text naturally and generate clean Conventional Commit messages using customizable tones and intelligent prompts.


🌐 Live Demo


πŸ“– About

AI Dev Assistant was built to simplify common developer workflows by providing focused AI-powered utilities instead of relying on generic chatbot interfaces.

The application currently includes two productivity tools:

  • ✍️ AI Text Rephraser β€” Rewrite text in different tones while preserving its meaning.
  • 🧠 Commit Message Generator β€” Generate clean Conventional Commit messages from natural language descriptions.

Authenticated users also have access to a personal history dashboard that stores their most recent AI generations for quick reference.


✨ Features

✍️ AI Text Rephraser

  • Rewrite text naturally
  • Humanize AI-generated content
  • Multiple writing tones
  • Copy-ready output

🧠 Commit Message Generator

  • Conventional Commit support
  • Smart commit type detection
  • Concise, production-ready messages
  • Intelligent prompt engineering

πŸ“œ History

  • Stores the latest 10 AI requests
  • Saves prompts and responses
  • Tracks selected tone and request type

πŸ” Security

  • JWT Authentication
  • Protected API routes
  • Request rate limiting
  • User-specific history

πŸ–₯️ User Interface

The application features a clean and responsive interface designed to minimize distractions while providing quick access to AI-powered developer tools.

AI Dev Assistant Interface


πŸ—οΈ System Architecture

The project follows a decoupled full-stack architecture where the frontend communicates with a REST API responsible for authentication, AI orchestration, and persistent history management before interacting with the Groq LLM.

System Architecture

Architecture Overview

  • Frontend (Next.js) β€” User interface and client-side interactions.
  • Backend (Express.js) β€” Authentication, AI endpoints, request validation, and history management.
  • MongoDB β€” Stores users and request history.
  • Groq API β€” Generates AI responses for text rephrasing and commit generation.
  • JWT Authentication β€” Secures protected endpoints and user sessions.

πŸ› οΈ Technology Stack

Category Technology
Frontend Next.js, React, Tailwind CSS, Axios
Backend Node.js, Express.js
Database MongoDB (Mongoose)
Authentication JWT
AI Provider Groq API
Deployment Vercel

πŸ“‚ Project Structure

ai-dev-assistant/
β”‚
β”œβ”€β”€ ai-dev-assistant-backend/
β”‚   β”œβ”€β”€ controllers/
β”‚   β”œβ”€β”€ middleware/
β”‚   β”œβ”€β”€ models/
β”‚   β”œβ”€β”€ routes/
β”‚   β”œβ”€β”€ services/
β”‚   └── utils/
β”‚
β”œβ”€β”€ ai-dev-assistant-frontend/
β”‚   β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ hooks/
β”‚   β”œβ”€β”€ lib/
β”‚   └── public/
β”‚
β”œβ”€β”€ img/
β”‚   β”œβ”€β”€ ui.png
β”‚   └── diagram.png
β”‚
β”œβ”€β”€ LICENSE
└── README.md

πŸš€ Getting Started

Prerequisites

  • Node.js 18+
  • MongoDB Database
  • Groq API Key

Clone the Repository

git clone https://github.com/rsayyed591/ai-dev-assistant.git

cd ai-dev-assistant

Backend Setup

cd ai-dev-assistant-backend

npm install

cp .env.example .env

Update the environment variables and start the backend.

npm run dev

Frontend Setup

cd ../ai-dev-assistant-frontend

npm install

npm run dev

βš™οΈ Environment Variables

Backend (.env)

PORT=5000

MONGO_URI=your_mongodb_uri

JWT_SECRET=your_secret_key

GROQ_API_KEY=your_groq_api_key

πŸ” API Endpoints

Authentication

Method Endpoint
POST /api/auth/register
POST /api/auth/login

AI Services

Method Endpoint
POST /api/rephrase
POST /api/commit

User

Method Endpoint
GET /api/profile
GET /api/history

πŸ’» Example Requests

Rephrase Text

POST /api/rephrase
Authorization: Bearer <token>
{
  "text": "fix this asap bro",
  "tone": "professional"
}

Generate Commit Message

POST /api/commit
Authorization: Bearer <token>
{
  "context": "implemented login api and fixed token validation",
  "tone": "concise"
}

πŸ’‘ Roadmap

  • Google OAuth Authentication
  • GitHub OAuth Authentication
  • VS Code Extension
  • Browser Extension
  • Custom AI Prompt Presets
  • Team Workspaces
  • Usage Analytics Dashboard
  • Multi-language Support

🀝 Contributing

Contributions are always welcome.

  1. Fork the repository.
  2. Create your feature branch.
git checkout -b feature/amazing-feature
  1. Commit your changes.
git commit -m "feat: add amazing feature"
  1. Push your branch.
git push origin feature/amazing-feature
  1. Open a Pull Request.

πŸ‘¨β€πŸ’» Author

Rehan Sayyed


πŸ“„ License

This project is licensed under the MIT License.

See the LICENSE file for more information.


⭐ Like the project?

If AI Dev Assistant improves your workflow, consider giving the repository a star.

Made with ❀️ by Rehan Sayyed

About

AI Dev Assistant is a full-stack AI-powered developer tool that helps developers rewrite text naturally and generate clean Conventional Commit messages using customizable tones and intelligent prompts.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors