Skip to content

pangeran-droid/AI-WebChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 AI WebChat – Simple PHP + JS Chatbot (OpenRouter API)

PHP Version License AI Powered

AI WebChat is a web-based chatbot application that leverages the OpenRouter API to access various AI models like DeepSeek, GPT, and Llama. Built with a focus on simplicity, security, and responsiveness.


Key Features

  • Real-time Interactive Chat – Seamless communication with AI.
  • Multi-Model Support – Access any model available via OpenRouter (DeepSeek, GPT, Llama, etc.).
  • Secure API Handling – API Keys are stored server-side to prevent exposure in the browser.
  • Modern & Responsive UI – Fully optimized for both desktop and mobile devices.
  • Lightweight & Fast – Minimalist codebase, perfect for personal assistants or integration.
  • Dark Mode Support – Comfortable viewing experience in low-light environments.
  • Extensible – Easy to customize for customer service, virtual assistants, or educational tools.

Installation Guide

1. Clone the Repository

git clone https://github.com/pangeran-droid/AI-WebChat.git
cd AI-WebChat

2. Configure Your API Key

Open config.php and insert your OpenRouter API key:

<?php 
return [
    'OPENROUTER_KEY' => 'YOUR_API_KEY_HERE'
];

Get your API key from (get one here).

3. Run on Local Server (XAMPP / Laragon / Hosting)

Move the project folder to your server directory:

  • XAMPP → htdocs/AI-WebChat
  • Laragon → www/AI-WebChat

Access it in your browser via:

http://localhost/AI-WebChat

Tech Stack

  • HTML5 + CSS3 – Frontend UI
  • Vanilla JavaScript – Chat logic
  • PHP – Server-side request handler
  • OpenRouter API – AI model provider

Roadmap

  • 💾 Chat History – Save conversations using LocalStorage or Database.
  • 👤 Avatars – Custom profile pictures for AI and users.
  • ⚡ Streaming Responses – Real-time text generation (typing effect).
  • 🎤 Multimodal – Support for image uploads and voice input.
  • 🤖 Direct Integration – Native support for OpenAI, Anthropic, and Gemini.

Licensi

MIT License.

About

A lightweight web-based chatbot application powered by OpenRouter API. Built with PHP and Vanilla JS, featuring a secure server-side API handling and a modern responsive UI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors