Modern, open-source ChatGPT-like chatbot app with user authentication, persistent conversations, beautiful UI, markdown/codeblock support, and OpenAI integration.
- 🤖 OpenAI GPT-3.5-turbo integration
- 🔐 User authentication (JWT, MySQL)
- 💬 Persistent conversation history
- 🎨 Modern UI (glassmorphism, dark/light mode)
- 📝 Markdown & codeblock syntax highlighting
- 🌗 Light/Dark mode toggle
- 📋 Copy button for code blocks
- 📱 Responsive design
- 🛎️ Notifications & real-time typing indicator
- 💡 Suggestion cards for quick prompts
- ...and more!
- Clone the repository
- Install dependencies
npm install
- Configure environment variables
- Copy
.env.exampleto.envand fill in your values (OpenAI API key, MySQL credentials, JWT secret, etc.)
- Copy
- Import the database schema
- Run the SQL in
database.sqlon your MySQL server
- Run the SQL in
- Start the server
npm start
- Visit http://localhost:3000
amiaygpt/
├── public/ # Frontend (HTML, CSS, JS)
├── config/ # Database config
├── middleware/ # JWT authentication
├── routes/ # API routes (auth, conversations)
├── server.js # Main Express server
├── database.sql # MySQL schema
├── package.json # Dependencies and scripts
└── README.md # Documentation
- Markdown: Bot responses support headings, bold, italic, lists, tables, blockquotes, links, inline code, and more
- Syntax highlighting: All languages supported via PrismJS
- Light/Dark mode: Toggle in the UI
- Codeblocks: Use triple backticks and language name:
Example:
# This is a Python code block
for i in range(5):
print(i)- 🎨 More advanced markdown rendering
- 🧑💻 User profile customization
- 📦 Conversation export
- 🖌️ More codeblock themes
- 📱 Mobile app
AmiayGPT is under active development. Stay tuned! 🚀
