Project Detail
persona-project
No description available.
Architecture
This repository is reviewed through a modular architecture lens: clear boundaries between UI, domain logic, and external integrations, with emphasis on maintainability and scaling paths.
README
Hitesh Choudhary - Creative Chat (Persona Project)
š Overview
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.
š ļø Features
-
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.
š” Tech Stack
-
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 Structure
project-root/
āāā index.html # Main HTML structure
āāā style.css # Custom styles & animations
āāā script.js # Core JavaScript logic & API calls
š ļø Setup & Installation
- 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-server
š Deployment
You 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 .
š Future Enhancements
- Dark/Light mode toggle
- More refined TTS with voice customization
- Export chat history
- Mobile optimization for TTS playback
šØāš» Author
Saksham Singh
Inspired by Hitesh Choudhary's teaching style and brand.
š License: MIT License
System Diagram
Replace this reference diagram with project-specific architecture assets when available.
Source: wayiam/persona-project