A modern, full-stack chat application powered by Next.js (frontend) and Node.js/Express (backend) with PostgreSQL for persistent chat storage. Features a clean UI, dynamic feedback, chat management, and export/share functionality.
- Dynamic chat UI with thinking/loader indicators
- Sidebar with collapsible chat list, add/rename/delete chats
- User and bot message formatting with markdown/code highlighting
- Retry/copy actions for user messages
- Export/share conversation as JSON
- Pointer cursor on all CTAs
- Clean, production-ready codebase
- Frontend: Next.js, React, Tailwind CSS, react-icons, react-markdown, prismjs
- Backend: Node.js, Express, PostgreSQL
- Node.js (v18+ recommended)
- PostgreSQL
- Navigate to the backend folder:
cd backend - Install dependencies:
npm install
- Configure your database in
config/db.jsandconfig/default.js. - Run migrations:
node run-migrate.js
- Start the backend server:
npm start
- Navigate to the frontend folder:
cd ../frontend - Install dependencies:
npm install
- Start the frontend app:
npm run dev
- Open http://localhost:3000 in your browser.
frontend/— Next.js app (UI, chat logic)backend/— Express API (chat/message endpoints, DB)
- Update user profile info in
page.tsx(sidebar bottom section) - Adjust chat model/version label in the top bar
MIT
Built by Ankit Chauhan. For questions or contributions, open an issue or PR.