{"id":25412813,"url":"https://github.com/gitcoder052023/chatllama","last_synced_at":"2026-04-11T01:04:31.891Z","repository":{"id":277663635,"uuid":"933135941","full_name":"GitCoder052023/ChatLLama","owner":"GitCoder052023","description":"ChatLLama is a modern, real-time chat application that leverages local Ollama models to deliver an interactive AI-based messaging experience. It offers secure user authentication, responsive design built with Tailwind CSS, and seamless communication via Socket.io.","archived":false,"fork":false,"pushed_at":"2025-02-24T17:34:47.000Z","size":215,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T18:32:14.740Z","etag":null,"topics":["ai","chatapp","chatllama","css","expressjs","html","javascript","mongodb","nodejs","ollama","realtimechat","socketio","tailwindcss","websocket"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/GitCoder052023.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2025-02-15T08:25:26.000Z","updated_at":"2025-02-24T17:34:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"81c29d46-5c49-4099-ba9b-9d461dd5ad2c","html_url":"https://github.com/GitCoder052023/ChatLLama","commit_stats":null,"previous_names":["gitcoder052023/chatllama"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitCoder052023%2FChatLLama","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitCoder052023%2FChatLLama/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitCoder052023%2FChatLLama/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitCoder052023%2FChatLLama/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GitCoder052023","download_url":"https://codeload.github.com/GitCoder052023/ChatLLama/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249058442,"owners_count":21205922,"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","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","chatapp","chatllama","css","expressjs","html","javascript","mongodb","nodejs","ollama","realtimechat","socketio","tailwindcss","websocket"],"created_at":"2025-02-16T13:27:59.455Z","updated_at":"2025-10-20T00:25:45.889Z","avatar_url":"https://github.com/GitCoder052023.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChatLLama\n\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE.md)\n[![Version](https://img.shields.io/badge/version-1.0.0-blue.svg)](package.json)\n[![Contributors](https://img.shields.io/github/contributors/GitCoder052023/ChatLLama.svg)](https://github.com/GitCoder052023/ChatLLama/graphs/contributors)\n[![Node Version](https://img.shields.io/badge/node-v14+-brightgreen.svg)](https://nodejs.org/)\n[![MongoDB](https://img.shields.io/badge/MongoDB-supported-brightgreen.svg)](https://www.mongodb.com/)\n[![WebSockets](https://img.shields.io/badge/WebSockets-enabled-blue.svg)](https://socket.io/)\n\nWelcome to **ChatLLama**, a modern real-time chat application that leverages local Ollama models for an interactive AI-based messaging experience. ChatLLama provides secure user authentication, a responsive UI styled with Tailwind CSS, and seamless communication through Socket.io. Whether you're looking to chat with an intelligent AI or interact with friends, ChatLLama offers a robust and dynamic platform for real-time conversations.\n\n---\n\n## Table of Contents\n\n- [Features](#features)\n- [Tech Stack](#tech-stack)\n- [Prerequisites](#prerequisites)\n- [Database Setup](#database-setup)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n- [Contact](#contact)\n\n---\n\n## Features\n\n### Core Features\n- **Real-Time Messaging:** Engage in dynamic, live conversations enabled by Socket.io with smooth, streaming chat responses.\n- **Local AI Integration:** Interact with local Ollama models that process your messages and deliver intelligent, streamed responses.\n- **Secure User Authentication:** Register and log in safely with bcrypt-based password hashing and Gmail address verification.\n- **Responsive \u0026 Modern UI:** Experience a sleek interface built with Tailwind CSS and enhanced with FontAwesome icons.\n- **Robust Database Integration:** All user data is securely stored in a MongoDB database.\n- **Dynamic Environment Configuration:** Automatically configures environment variables such as FRONTEND_ORIGIN based on your local IP.\n- **Model Selection:** Users can select from various AI models for personalized interactions.\n\n### Security \u0026 Authentication\n- **Advanced Authentication:**\n  - Bcrypt password hashing\n  - Session-based authentication\n  - Gmail address validation\n  - Secure logout handling\n  - Session timeout protection\n\n### Enhanced UI Features\n- **Profile Management:**\n  - Auto-generated profile icons\n  - Dynamic initials display\n  - Unique color generation per user\n  - Hover animations and effects\n- **Responsive Design:**\n  - Custom mobile-friendly sidebar\n  - Adaptive scrollbar styling\n  - Smooth transition animations\n  - Keyboard shortcut support\n\n### Advanced Chat Capabilities\n- **Message Handling:**\n  - Streaming control (pause/stop)\n  - Markdown formatting support\n  - Code syntax highlighting\n  - Expandable thinking sections\n  - Auto-scroll functionality\n  - Timestamp integration\n  - Model-specific labeling\n\n### Extended Conversation Features\n- **Management Tools:**\n  - Session persistence\n  - Real-time synchronization\n  - Smart conversation naming\n  - Advanced search capabilities\n  - Secure deletion with confirmation\n  - Empty conversation prevention\n\n### Technical Enhancements\n- **System Integration:**\n  - WebSocket reconnection handling\n  - Automatic IP configuration\n  - CORS security setup\n  - MongoDB connection management\n  - Environment auto-configuration\n  - Concurrent development support\n\n### Additional Features\n- **Theme Customization:**\n  - Light, Dark, and System theme options\n  - Persistent theme preferences\n  - Automatic system theme detection\n  \n- **Conversation Management:**\n  - Searchable conversation history\n  - Auto-generated conversation titles\n  - Real-time conversation updates\n  - One-click conversation deletion\n  \n- **Enhanced AI Interactions:**\n  - Live streaming responses with thinking indicators\n  - Ability to stop ongoing AI responses\n  - Expandable reasoning sections for AI explanations\n  - Model-specific response tracking\n  \n- **UI Enhancements:**\n  - Smooth animations and transitions\n  - Collapsible mobile-friendly sidebar\n  - Custom-styled scrollbars\n  - Message bubble animations\n  - Real-time typing indicators\n\n---\n\n## Tech Stack\n\n- **Frontend:** HTML, Tailwind CSS, JavaScript (ES6+), EJS, Socket.io client\n- **Backend:** Node.js, Express.js\n- **Database:** MongoDB\n- **Authentication:** bcrypt\n- **Real-Time Communication:** Socket.io\n- **AI Integration:** Local Ollama Models\n\n---\n\n## Prerequisites\n\n- [Node.js](https://nodejs.org/en/) (v14 or above)\n- [MongoDB](https://www.mongodb.com/) (running instance)\n- [npm](https://www.npmjs.com/)\n- Local Ollama API (e.g., running at http://localhost:11434)\n\n---\n\n## Database Setup\n\nTo set up MongoDB for ChatLLama:\n\n1. **Install and Start MongoDB:**\n   - Download and install MongoDB from the [MongoDB Download Center](https://www.mongodb.com/try/download/community).\n   - Start the MongoDB service on your machine.\n\n2. **Create the Database and Collection:**\n   - Open your terminal and run the Mongo shell:\n     ```\n     mongo\n     ```\n   - Switch to (or create) the `ChatLLama` database:\n     ```\n     use ChatLLama\n     ```\n   - Create the `users` collection:\n     ```\n     db.createCollection(\"users\")\n     ```\n   - Verify that the collection was created:\n     ```\n     show collections\n     ```\n\n---\n\n## Installation\n\n1. **Clone the Repository:**\n\n   ```\n   git clone https://github.com/GitCoder052023/ChatLLama.git\n   cd ChatLLama\n   ```\n\n2. **Install Dependencies:**\n\n   ```\n   npm i\n   ```\n\n3. **Run the Application:**\n\n   To start the application, run:\n\n   ```\n   npm run dev\n   ```\n\n---\n\n## Usage\n\n1. **User Registration:**\n   - Navigate to the Sign-Up page.\n   - Register a new account (please ensure your email ends with `@gmail.com` as required).\n\n2. **Login:**\n   - Sign into your account to access the chat interface.\n\n3. **Chat:**\n   - Use the intuitive chat interface to send messages and receive streaming responses from the local AI.\n   - Select your preferred AI model from the dropdown menu for personalized interactions.\n   - Enjoy real-time updates via Socket.io.\n\n4. **Logout:**\n   - Log out securely using the profile menu.\n\n---\n\n## Contributing\n\nWe welcome contributions to make ChatLLama even better! To contribute:\n\n1. Fork the repository and create a feature or bugfix branch.\n2. Adhere to the existing code style and conventions.\n3. Ensure your changes do not break existing functionality.\n4. Submit a pull request with clear commit messages and reference any related issues.\n\nFor further details, please review [CONTRIBUTING.md](CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).\n\n---\n\n## License\n\nThis project is licensed under the MIT License. See [LICENSE](LICENSE.md) for more information.\n\n---\n\n## Contact\n\nFor questions, support, or further inquiries, please contact us at [contact.khub.dev@gmail.com](mailto:contact.khub.dev@gmail.com).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitcoder052023%2Fchatllama","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitcoder052023%2Fchatllama","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitcoder052023%2Fchatllama/lists"}