Skip to content

A modern, React-based AI chat interface that leverages the power of Puter.js API for free, unlimited AI interactions.

License

Notifications You must be signed in to change notification settings

usualdork/AI-Chat-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Chat-Assistant

This React version evolved from an original HTML/CSS implementation.
Because using vanilla HTML/CSS/JS is like saying "I use Windows" when you could say "I use Arch BTW" 😉
image

A modern, React-based AI chat interface that leverages the power of Puter.js API for free, unlimited AI interactions. Experience the next generation of web-based AI chat interfaces.

🌐 Live Demo: https://guify.ct.ws

image

✨ Features

  • 🎭 Multiple chat support with conversation management
  • 🎨 Sleek, modern UI with cyberpunk-inspired design
  • 📱 Fully responsive design for all devices
  • ⚡ Real-time streaming responses
  • 🔄 Chat history management
  • 🎛️ Model selection (Claude and ChatGPT)
  • ⌨️ Customizable enter key behavior
  • 🌓 Dark mode optimized
  • 🔄 Real-time chat updates

🚀 React vs HTML+CSS+JS: Evolution of a Developer

Choosing React over traditional HTML+CSS+JS is a statement of embracing modern development practices. Here's why:

Feature Old HTML/CSS/JS React Implementation
Component Reuse Copy-paste chaos DRY Component System
State Management Global variables Hooks Context API
Styling CSS spaghetti Material-UI + Emotion
DOM Updates Manual manipulation Virtual DOM Magic
Code Organization Separate files Co-located Components
Build Process Script tags Modern toolchain (Vite)

🤖 Puter API Integration

This project leverages Puter's Free OpenAI and Claude API to provide:

  • 🆓 Free access to GPT-4o and Claude 3.5 Sonnet
  • 🔑 No API keys required
  • ⚡ Real-time streaming
  • 🌐 Global CDN caching

🛠️ Tech Stack

  • Frontend: React 18 + Material-UI 5
  • State Management: React Hooks
  • Styling: Emotion CSS-in-JS
  • Animation: Framer Motion
  • AI Integration: Puter.js SDK

📦 Installation

  1. Clone the repo
git clone https://github.com/usualdork/AI-Chat-Assistant.git
  1. Install dependencies
npm install
  1. Start development server
npm start

🌐 Deployment

The project is configured for zero-config deployment to:

  • Vercel
  • Netlify
  • GitHub Pages
npm run build && npm run preview

🎯 Key Improvements Over Traditional Approach

  1. State Management
  • Old: Complex JavaScript event listeners and manual state tracking
  • New: React's useState and useEffect hooks for clean state management
  1. Component Architecture
  • Old: Monolithic HTML files with repeated code
  • New: Reusable React components with clear separation of concerns
  1. Styling Approach
  • Old: Global CSS with potential conflicts
  • New: Scoped CSS-in-JS with Emotion and MUI's styling system

🤝 Contributing

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

Crafted with ❤️ by

@usualdork
GitHub Profile

⭐️ If you found this project interesting, please consider giving it a star!

About

A modern, React-based AI chat interface that leverages the power of Puter.js API for free, unlimited AI interactions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published