sakshamsingh.in

Project Detail

persona-project

No description available.

JavaScriptHTMLCSS
View on GitHub

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

  1. Clone the Repository
git clone <your-repo-url>
cd <project-folder>
  1. Open index.html in Browser No build step required. This is a static frontend app.

  2. Configure API Keys

    • Replace API_KEY in script.js with your Gemini API key.
  3. Run Locally Simply open index.html in 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.

ClientAPI LayerData Store

Source: wayiam/persona-project