Skip to content
All projects

AI-Powered Chat Application

SigmaGPT

ChatGPT-style AI chat with saved threads, guest mode and markdown replies.

SigmaGPT — Markdown and code responses

Problem

Most AI chat demos send one prompt and show one answer — no auth, saved conversations, thread management or polished rendering.

Solution

A product-style chat: sign up or continue as a guest, keep persistent threads, rename or delete them, get AI-generated titles, and read replies rendered as markdown with syntax-highlighted code, copy actions and a dark/light theme. The full conversation context is sent with each message.

Engineering focus

  • JWT authentication
  • MongoDB models for users, threads and messages
  • Protected routes for saved chat history
  • OpenAI chat completions with conversation context memory
  • OpenAI function calling with structured JSON output
  • CSS-variable theme system
  • Responsive sidebar drawer
  • Safe UX for destructive actions

Features

  • Signup, login and guest mode
  • Persistent chat threads
  • AI-generated thread titles
  • Inline rename and delete with confirmation
  • Markdown with syntax-highlighted code
  • Copy code and full messages
  • Dark/light theme
  • Responsive desktop and mobile UI

Tech stack

  • React
  • Vite
  • React Router
  • CSS Modules
  • Express.js
  • MongoDB
  • Mongoose
  • JWT
  • bcrypt
  • OpenAI API
  • React Markdown
  • rehype-highlight
  • Render

Screenshots

SigmaGPT — AI-Powered Chat Application — Ashar Mahmood