{"id":27624395,"url":"https://github.com/pranshu936/chat-webapp","last_synced_at":"2026-04-29T01:32:28.187Z","repository":{"id":288960769,"uuid":"969671367","full_name":"Pranshu936/Chat-Webapp","owner":"Pranshu936","description":"FlaskChat is a real-time chat application built with Flask, Flask-SocketIO, and Redis. It supports local authentication, real-time messaging (including text and sticker messages), message deletion, and responsive design. The app features a modern chat interface with date dividers, private and group messaging, and an emoji/sticker picker.","archived":false,"fork":false,"pushed_at":"2025-04-20T18:03:28.000Z","size":288,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-20T18:32:30.982Z","etag":null,"topics":["flask-application","flask-socketio","html-css-javascript","python3","redis"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pranshu936.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-04-20T17:17:46.000Z","updated_at":"2025-04-20T18:03:31.000Z","dependencies_parsed_at":"2025-04-20T18:33:54.591Z","dependency_job_id":"5b42afec-6742-49e9-9b42-56b76a07be60","html_url":"https://github.com/Pranshu936/Chat-Webapp","commit_stats":null,"previous_names":["pranshu936/chat-webapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pranshu936%2FChat-Webapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pranshu936%2FChat-Webapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pranshu936%2FChat-Webapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pranshu936%2FChat-Webapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pranshu936","download_url":"https://codeload.github.com/Pranshu936/Chat-Webapp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250428933,"owners_count":21429226,"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":["flask-application","flask-socketio","html-css-javascript","python3","redis"],"created_at":"2025-04-23T11:38:54.420Z","updated_at":"2026-04-29T01:32:26.877Z","avatar_url":"https://github.com/Pranshu936.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FlaskChat\n\nFlaskChat is a real-time chat application built with Flask, Flask-SocketIO, and Redis. It supports local authentication, real-time messaging (including text and sticker messages), message deletion, and responsive design. The app features a modern chat interface with date dividers, private and group messaging, and an emoji/sticker picker.\n\n## Features\n\n- **Local Authentication**  \n  - User registration and login using Flask-Login.\n  - Secure password storage with Werkzeug’s password hashing.\n\n- **Real-Time Chat**  \n  - Real-time messaging powered by Flask-SocketIO.\n  - Supports both text and sticker (emoji) messages.\n  - Date dividers inserted between messages when a new day begins.\n  - Private chat functionality using room-based messaging.\n\n- **Message Management**  \n  - Delete messages: Users can delete their own messages, which are removed from both the chat window and the database (Redis).\n  - Message persistence: Messages are stored in Redis (with persistence configured via RDB or AOF).\n\n- **User Interface**  \n  - Responsive design with distinct layouts for different devices.\n  - Emoji picker for quick sticker/emoji access.\n  - Modern CSS styling with a dark/light theme option.\n  - Sidebar with user profile information and status indicators.\n\n## Tech Stack\n\n- **Backend:**  \n  - [Python 3](https://www.python.org/)\n  - [Flask](https://flask.palletsprojects.com/)  \n  - [Flask-SocketIO](https://flask-socketio.readthedocs.io/) for real-time messaging\n  - [Flask-Login](https://flask-login.readthedocs.io/) for user authentication\n  - [Redis](https://redis.io/) for message storage and persistence\n\n- **Frontend:**  \n  - HTML5 and CSS3 for markup and styling  \n  - JavaScript for dynamic chat functionalities\n  - [Socket.IO Client](https://socket.io/) for client-server communication\n  - Emoji/sticker picker (using a simple custom implementation or third-party libraries)\n\n## Installation\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/yourusername/FlaskChat.git\n   cd FlaskChat\n   ```\n\n2. **Create and activate a virtual environment:**\n\n   ```bash\n   python -m venv venv\n   venv\\Scripts\\activate  # On Windows\n   # or\n   source venv/bin/activate  # On macOS/Linux\n   ```\n\n3. **Install dependencies:**\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Configure environment variables:**  \n   Create a `.env` file or set environment variables directly in your system. At a minimum, set:\n\n   - `SECRET_KEY` – Your secret key for Flask sessions.\n   - `REDIS_URL` – The connection URL for your Redis instance (e.g., `redis://localhost:6379`).\n\n5. **Run Redis:**  \n   Ensure you have a Redis instance running. You can run Redis locally or use a hosted Redis service.\n\n6. **Start the application:**\n\n   ```bash\n   flask run\n   # or, if using socketio:\n   python app.py\n   ```\n\n## Folder Structure\n\n```\nFlaskChat/\n├── app.py                 # Main Flask application with SocketIO events\n├── requirements.txt       # List of Python dependencies\n├── static/\n│   ├── css/\n│   │   ├── style.css      # Global styles for the app\n│   │   └── chat.css       # Chat-specific styles\n│   └── js/\n│       └── chat.js        # Client-side chat functionality\n├── templates/\n│   ├── chat.html         # Chat interface template\n│   ├── login.html        # Login page template\n│   ├── register.html     # Registration page template\n│   ├── profile.html      # User profile page template\n│   └── edit_profile.html # Profile edit page template\n└── README.md              # This file\n```\n\n## Usage\n\n- **User Registration \u0026 Login:**  \n  Users can register and log in locally. The authentication system uses Flask-Login and stores user data in Redis.\n\n- **Chat Interface:**  \n  Once logged in, users can access the chat interface to send real-time messages. The interface displays messages along with sender avatars, timestamps, and supports deletion by the message sender.\n\n- **Emoji/Sticker Support:**  \n  Click the sticker button to open the emoji picker. Selected emojis are sent as sticker messages and rendered with enhanced styling in the chat.\n\n- **Message Deletion:**  \n  Each message sent by the current user shows a delete button. On confirmation, the message is removed from Redis and the chat is updated in real time for all participants.\n\n## Credits\n\n- Developed using [Flask](https://flask.palletsprojects.com/) and [Flask-SocketIO](https://flask-socketio.readthedocs.io/).\n- Real-time functionality powered by Socket.IO.\n- Emoji picker and chat UI designed with HTML, CSS, and JavaScript.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranshu936%2Fchat-webapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpranshu936%2Fchat-webapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranshu936%2Fchat-webapp/lists"}