{"id":25191681,"url":"https://github.com/nikomalik/gochat","last_synced_at":"2026-04-06T04:32:32.948Z","repository":{"id":249528681,"uuid":"831751267","full_name":"NikoMalik/GoChat","owner":"NikoMalik","description":"🚀 GoChat is a real-time chat application developed using a modern tech stack featuring Go+Templ+HTMX+Alpine.js+TailwindCss, and WebSockets. This project showcases a scalable, interactive chat system with efficient server-side rendering and dynamic front-end updates.","archived":false,"fork":false,"pushed_at":"2024-07-24T16:12:08.000Z","size":47,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T21:44:20.254Z","etag":null,"topics":["golang","golang-chat","golang-templ","golang-websockets","htmx-app","htmx-golang","tailwindcss-golang"],"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/NikoMalik.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":"2024-07-21T14:22:38.000Z","updated_at":"2024-10-04T15:30:52.000Z","dependencies_parsed_at":"2025-05-07T21:52:05.427Z","dependency_job_id":null,"html_url":"https://github.com/NikoMalik/GoChat","commit_stats":null,"previous_names":["nikomalik/gochat"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NikoMalik/GoChat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikoMalik%2FGoChat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikoMalik%2FGoChat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikoMalik%2FGoChat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikoMalik%2FGoChat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NikoMalik","download_url":"https://codeload.github.com/NikoMalik/GoChat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikoMalik%2FGoChat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31460102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"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":["golang","golang-chat","golang-templ","golang-websockets","htmx-app","htmx-golang","tailwindcss-golang"],"created_at":"2025-02-09T22:36:04.356Z","updated_at":"2026-04-06T04:32:32.933Z","avatar_url":"https://github.com/NikoMalik.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoChat: Real-Time Chat Application\n\nGoChat is a real-time chat application developed using a modern tech stack featuring Go+Templ+HTMX+Alpine.js+TailwindCss, and WebSockets. This project showcases a scalable, interactive chat system with efficient server-side rendering and dynamic front-end updates.\n\n\n\n![image](https://github.com/user-attachments/assets/82e993a5-14bc-405d-b49a-f3a6e8d05356)\n\n\n![image](https://github.com/user-attachments/assets/ae3d87c5-b772-48a2-aa4d-64ee6826679a)\n\n\n![image](https://github.com/user-attachments/assets/19b682e9-4976-40f3-8aaa-7812f6777784)\n\n\n\n![image](https://github.com/user-attachments/assets/f3de35e7-e59c-474d-bdfa-1943476334bc)\n\n\n\n\n## Features\n\n- **Real-Time Messaging**: Leveraging WebSockets for instantaneous, bidirectional communication.\n- **Dynamic Content Updates**: Using HTMX to seamlessly update parts of the web page without full reloads.\n- **Reactive UI**: Enhanced with Alpine.js for minimal overhead and a smooth user experience.\n- **Server-Side Templating**: Implementing Templ to render dynamic content server-side.\n- **Responsive Design**: Styled with Tailwind CSS for a modern, responsive interface.\n- **Rate Limiting**: Protects against spam with configurable message rate limits.\n\n## Tech Stack\n\n- **Go**: Backend development for a robust and efficient server-side experience.\n- **Templ**: A templating engine for Go, simplifying dynamic content rendering.\n- **HTMX**: For AJAX requests and dynamic content updates without page reloads.\n- **Alpine.js**: A minimal JavaScript framework to add interactivity with ease.\n- **WebSockets**: Provides real-time messaging capabilities.\n- **Tailwind CSS**: A utility-first CSS framework for designing custom, responsive interfaces.\n\n## Getting Started\n\n### Prerequisites\n\n- [Go](https://golang.org/dl/) (version 1.18 or higher)\n- A web browser\n\n### Installation\n\n1.  **Clone the Repository:**\n\n    ```bash\n    git clone https://github.com/NikoMalik/GoChat\n    ```\n\n2.  **Install Dependencies:**\n\n    ```bash\n    go install github.com/air-verse/air@latest\n    go install github.com/a-h/templ/cmd/templ@latest\n    npm install\n\n\n    ```\n\n3.  **Run the Application:**\n\n    You will need to open three terminals to run different tasks:\n\n    - **Terminal 1: Watch for Templ**\n\n      ```bash\n      make templWatch\n      ```\n\n    - **Terminal 2: Run the Go server**\n\n      ```bash\n      air\n      ```\n\n    - **Terminal 3: Build Tailwind CSS**\n\n      ```bash\n      make tailwind\n      ```\n\n4.  **Open Your Browser:**\n\n    Visit `http://localhost:8000` to access GoChat.\n\n## Usage\n\n- **Chat with Others**: Enter your username and start sending messages in real-time.\n- **View Online Users**: See who is online and engage with them directly.\n- **Rate Limiting**: Prevents abuse by enforcing message limits.\n\n## Contributing\n\nWe welcome contributions to improve GoChat! To contribute:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b your-feature`).\n3. Make your changes.\n4. `git add .`\n5. Commit your changes (`git commit -m 'Add new feature'`).\n6. Push to the branch (`git push origin your-feature`).\n7. Open a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikomalik%2Fgochat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikomalik%2Fgochat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikomalik%2Fgochat/lists"}