Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SigmaGPT 🤖

An AI-powered chat application built with the MERN stack and OpenAI API. Features persistent conversation threads, chat history, and a real-time typing animation — inspired by ChatGPT.

🌐 Live Demo: sigmagpt-frontend-t02q.onrender.com

React Node.js Express MongoDB OpenAI


Features

  • 💬 Real-time AI chat powered by GPT-4o-mini
  • 🧵 Persistent conversation threads saved to MongoDB
  • 📜 Chat history with sidebar navigation
  • ✍️ Typing animation for assistant replies
  • 🗑️ Delete individual threads
  • 📝 Markdown + syntax highlighted code blocks in responses
  • 📱 Clean dark UI inspired by ChatGPT

Project Structure

SigmaGPT/
├── Backend/
│   ├── models/
│   │   └── Thread.js         # Mongoose schema for threads & messages
│   ├── routes/
│   │   └── chat.js           # Express routes (chat, threads CRUD)
│   ├── utils/
│   │   └── openai.js         # OpenAI API helper
│   ├── server.js             # Entry point
│   └── .env                  # Environment variables (not committed)
└── Frontend/
    └── src/
        ├── App.jsx            # Root component + context provider
        ├── MyContext.jsx      # Global state context
        ├── Sidebar.jsx        # Thread history + new chat
        ├── ChatWindow.jsx     # Input + response handling
        └── Chat.jsx           # Message rendering + typing animation

Tech Stack

Layer Technology
Frontend React 18, Vite, Context API
Backend Node.js, Express
Database MongoDB Atlas, Mongoose
AI OpenAI GPT-4o-mini
Styling Plain CSS
Markdown react-markdown, rehype-highlight
Auth/UUID uuid
Deployment Render

License

MIT License — feel free to use and modify.


Built by Ayush • IIT (BHU) Varanasi

About

AI-powered chat application built with React, Node.js, Express, MongoDB, and OpenAI API. Features conversation threading, chat history, and real-time typing animation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages