A modern, minimal AI chat interface built with React + TailwindCSS.
👉 https://promptly-alpha-eight.vercel.app/
✅ Chat UI
- Clean chat layout with user/AI message bubbles
- Auto-scroll to the latest message
- Markdown rendering for AI responses
- Code highlighting with copy-to-clipboard
✅ Smart Input
- Global focus on typing anywhere
- Send message on Enter, new line on Shift+Enter
✅ AI Integration
- Easily switch between multiple AI models
- Built-in fetch method for external APIs
- Extendable API layer for GeminiAI, PollinationsAI, etc.
✅ Responsive & Dark UI
- Styled with TailwindCSS
- Smooth layout for desktop and mobile
| Category | Technology |
|---|---|
| Frontend | React + Vite |
| Styling | TailwindCSS |
| Icons | React Icons |
| Markdown Rendering | React Markdown |
# 1️⃣ Clone the repository
git clone https://github.com/arifbasha559/Promptly
cd promptly
# 2️⃣ Install dependencies
npm install
# 3️⃣ Run the development server
npm run devYou can plug in any AI API into the fetchapi.js file.
Example for ContentAI:
export const fetchContentAIResponse = async (query) => {
const res = await fetch(
`https://api.contentai.cloud/v1/Text/blog-articles?category=${encodeURIComponent(
query
)}`,
{
headers: {
accept: "application/json",
"X-ContentAI-Key": "YOUR_API_KEY_HERE",
},
}
);
return await res.json();
};
⚠️ Note: ReplaceYOUR_API_KEY_HEREwith your actual API key.
- Add model-based response switching
- Add chat persistence (localStorage / DB)
- Add voice input and speech output
- Add typing animation for AI replies
**Arif ** Developer & Tech Enthusiast
This project is open source under the MIT License.
“First, solve the problem. Then, write the code.” – John Johnson
Built with ❤️ by Arif