Hitesh Choudhary - Creative Chat is an interactive web-based chat experience that simulates the persona of Hitesh Choudhary, a renowned tech educator. Built with HTML, CSS (Tailwind), and JavaScript, this project integrates Google's Gemini API to deliver realistic, Hinglish-style responses, code reviews, simplifications, and even Text-to-Speech (TTS) in Hitesh's tone.
-
Custom Persona Integration: Predefined dataset & system prompt to replicate Hitesh's communication style.
-
Typewriter & Glitch Effects: Engaging intro animations with dynamic text.
-
Interactive Chat UI: Smooth transitions, custom scrollbars, and responsive design.
-
Particle Network Background: Animated background for visual appeal.
-
Parallax Layers: Mouse-based parallax movement.
-
Special Action Buttons:
- Get Bhai's Take 💡: Short, opinionated take on last topic.
- Simplify Last Topic 🧠: Explain concepts simply with analogies.
- Code Review ✨: Analyze code snippets and give constructive feedback.
- Generate Code ✍️: Create code based on user prompts.
- Listen to Bhai's Response 🎧: TTS playback of responses.
-
Modal for Code Generation: User-friendly interface for requesting generated code.
-
Frontend: HTML5, CSS3 (TailwindCSS), JavaScript (Vanilla)
-
Animations & Effects: CSS keyframes, Tailwind utilities
-
APIs Used:
- Gemini 2.5 Flash Preview for text generation
- Gemini 2.5 Flash Preview TTS for audio output
project-root/
├── index.html # Main HTML structure
├── style.css # Custom styles & animations
├── script.js # Core JavaScript logic & API calls
- Clone the Repository
git clone <your-repo-url>
cd <project-folder>-
Open index.html in Browser No build step required. This is a static frontend app.
-
Configure API Keys
- Replace
API_KEYinscript.jswith your Gemini API key.
- Replace
-
Run Locally Simply open
index.htmlin your browser or use a local dev server:
npx live-serverYou can deploy on:
- GitHub Pages
- Vercel
- Netlify
Example for GitHub Pages:
git add .
git commit -m "Deploy Creative Chat"
git push origin main
gh-pages -d .- Dark/Light mode toggle
- More refined TTS with voice customization
- Export chat history
- Mobile optimization for TTS playback
Saksham Singh
Inspired by Hitesh Choudhary's teaching style and brand.
📁 License: MIT License