{"id":29452613,"url":"https://github.com/abdullah-bl/chat","last_synced_at":"2026-04-18T01:32:21.148Z","repository":{"id":304036449,"uuid":"1017575179","full_name":"abdullah-bl/chat","owner":"abdullah-bl","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-10T22:12:17.000Z","size":6515,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-11T01:13:29.836Z","etag":null,"topics":["ai","llm","react","ts","vite","webllm"],"latest_commit_sha":null,"homepage":"https://abdullah-bl.github.io/chat/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abdullah-bl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-10T18:43:56.000Z","updated_at":"2025-07-10T22:09:58.000Z","dependencies_parsed_at":"2025-07-11T01:14:12.584Z","dependency_job_id":"a9505142-8105-42ea-9dba-d4f5bdb2220f","html_url":"https://github.com/abdullah-bl/chat","commit_stats":null,"previous_names":["abdullah-bl/chat"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/abdullah-bl/chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-bl%2Fchat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-bl%2Fchat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-bl%2Fchat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-bl%2Fchat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullah-bl","download_url":"https://codeload.github.com/abdullah-bl/chat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-bl%2Fchat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021003,"owners_count":26086946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","llm","react","ts","vite","webllm"],"created_at":"2025-07-13T22:09:26.144Z","updated_at":"2025-10-14T20:11:16.665Z","avatar_url":"https://github.com/abdullah-bl.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Chat Application\n\nA modern, privacy-focused AI chat application built with React, TypeScript, and WebGPU-powered local language models. Chat with AI characters, use tools, and explore different conversation styles - all running locally in your browser.\n\n## ✨ Features\n\n### 🤖 **Local AI Processing**\n- **WebGPU-powered**: Runs AI models directly in your browser using WebGPU\n- **Privacy-first**: No data leaves your device - all conversations stay local\n- **Offline capable**: Works without internet connection once models are loaded\n\n### 🎭 **AI Characters**\nChoose from 12 different AI personalities to chat with:\n- **Wise Mentor** 🧙‍♂️ - Thoughtful guidance through stories and metaphors\n- **Sarcastic Friend** 😏 - Witty companion with clever humor\n- **Curious Explorer** 🔍 - Enthusiastic learner who asks thoughtful questions\n- **Practical Problem Solver** ⚡ - Direct, actionable solutions\n- **Creative Artist** 🎨 - Imaginative thinking and artistic perspective\n- **Patient Teacher** 👨‍🏫 - Clear explanations with encouragement\n- **Tech Enthusiast** 💻 - Passionate about latest technology trends\n- **Philosophical Thinker** 🤔 - Deep exploration of life's big questions\n- **Cheerful Motivator** 🤗 - Upbeat encouragement and positive energy\n- **Analytical Scientist** 🔬 - Evidence-based, methodical approach\n- **Storyteller** 📚 - Engaging narratives and vivid descriptions\n- **Mindful Guide** 🧘 - Calm presence promoting mindfulness\n\n### 🛠️ **Built-in Tools**\nThe AI can use various tools to enhance conversations:\n- **Time \u0026 Date** - Get current time and date\n- **Calculator** - Perform mathematical calculations\n- **Weather** - Get weather information (simulated)\n- **Web Search** - Search for information (simulated)\n\n### 🎨 **Modern UI**\n- **Dark/Light Mode** - Automatic theme switching\n- **Responsive Design** - Works on desktop and mobile\n- **Real-time Chat** - Smooth conversation flow\n- **Markdown Support** - Rich text formatting in responses\n\n## 🚀 Getting Started\n\n### Prerequisites\n- Modern browser with WebGPU support (Chrome 113+, Edge 113+, Firefox Nightly)\n- Node.js 18+ and npm/bun\n\n### Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd chat\n   ```\n\n2. **Install dependencies**\n   ```bash\n   npm install\n   # or\n   bun install\n   ```\n\n3. **Start the development server**\n   ```bash\n   npm run dev\n   # or\n   bun dev\n   ```\n\n4. **Open your browser**\n   Navigate to `http://localhost:5173`\n\n### First Time Setup\n\n1. **WebGPU Check**: The app will automatically detect if your browser supports WebGPU\n2. **Model Loading**: On first visit, the AI model will download and load (this may take a few minutes)\n3. **Ready to Chat**: Once loaded, you'll see the welcome screen and can start chatting\n\n## 💬 How to Use\n\n### Starting a Conversation\n1. **Choose a Character** (optional): Select from the available AI personalities in the settings\n2. **Type Your Message**: Enter your question or message in the input field\n3. **Send**: Press Enter or click the send button\n4. **Wait for Response**: The AI will process and respond using the selected character's style\n\n### Using Tools\nThe AI can automatically use tools based on your requests:\n- **\"What time is it?\"** → Gets current time\n- **\"Calculate 2 + 2\"** → Performs calculation\n- **\"What's the weather in Tokyo?\"** → Gets weather info\n- **\"Search for AI news\"** → Searches the web\n\n### Conversation Management\n- **Clear Chat**: Use the clear button to start a new conversation\n- **Character Switching**: Change AI personalities mid-conversation\n- **Settings**: Adjust model parameters like temperature, max tokens, etc.\n\n## 🔧 Configuration\n\n### Model Settings\nAccess advanced settings to customize the AI behavior:\n- **Temperature**: Controls response creativity (0.0 = focused, 1.0 = creative)\n- **Max Tokens**: Maximum response length\n- **Top P**: Nucleus sampling parameter\n- **Frequency/Presence Penalty**: Reduce repetition in responses\n\n### Custom Characters\nCreate your own AI personalities:\n1. Go to settings\n2. Add a new character with:\n   - Name and description\n   - System prompt (defines personality)\n   - Custom icon (optional)\n\n## 🛠️ Development\n\n### Tech Stack\n- **Frontend**: React 19 + TypeScript + Vite\n- **AI Engine**: MLC-LLM WebGPU\n- **Styling**: Tailwind CSS + Radix UI\n- **State Management**: Zustand\n- **Build Tool**: Vite\n\n### Project Structure\n```\nsrc/\n├── components/\n│   ├── chat/          # Chat interface components\n│   └── ui/            # Reusable UI components\n├── lib/\n│   ├── characters.ts  # AI character definitions\n│   ├── tools.ts       # Tool implementations\n│   └── workers/       # WebGPU worker files\n├── stores/\n│   └── chat.ts        # Chat state management\n└── App.tsx            # Main application component\n```\n\n### Available Scripts\n- `npm run dev` - Start development server\n- `npm run build` - Build for production\n- `npm run preview` - Preview production build\n- `npm run lint` - Run ESLint\n\n## 🌐 Browser Compatibility\n\n### WebGPU Support Required\n- **Chrome**: 113+\n- **Edge**: 113+\n- **Firefox**: Nightly builds\n- **Safari**: Not yet supported\n\n### Fallback\nIf WebGPU is not available, the app will show an error message with instructions to update your browser.\n\n## 🔒 Privacy \u0026 Security\n\n- **Local Processing**: All AI processing happens in your browser\n- **No Data Storage**: Conversations are not stored on any server\n- **No Tracking**: No analytics or tracking scripts\n- **Open Source**: Transparent codebase for security review\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## 🙏 Acknowledgments\n\n- [MLC-LLM](https://github.com/mlc-ai/mlc-llm) for WebGPU-powered local AI\n- [Radix UI](https://www.radix-ui.com/) for accessible components\n- [Tailwind CSS](https://tailwindcss.com/) for styling\n- [Vite](https://vitejs.dev/) for fast development\n\n---\n\n**Made with ❤️ by [Abdullah Studio](https://abdullah.studio)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullah-bl%2Fchat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullah-bl%2Fchat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullah-bl%2Fchat/lists"}