{"id":21012623,"url":"https://github.com/developersdigest/llm-golang-htmx-chat","last_synced_at":"2025-04-12T09:12:17.723Z","repository":{"id":251498720,"uuid":"837601086","full_name":"developersdigest/llm-golang-htmx-chat","owner":"developersdigest","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-03T13:05:53.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T09:09:05.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/developersdigest.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}},"created_at":"2024-08-03T13:03:46.000Z","updated_at":"2025-03-13T05:37:50.000Z","dependencies_parsed_at":"2024-08-03T14:24:28.486Z","dependency_job_id":"46a5b585-48c0-456b-86e3-6eb39cee71c2","html_url":"https://github.com/developersdigest/llm-golang-htmx-chat","commit_stats":null,"previous_names":["developersdigest/llm-golang-htmx-chat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersdigest%2Fllm-golang-htmx-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersdigest%2Fllm-golang-htmx-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersdigest%2Fllm-golang-htmx-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersdigest%2Fllm-golang-htmx-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developersdigest","download_url":"https://codeload.github.com/developersdigest/llm-golang-htmx-chat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543850,"owners_count":21121838,"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":[],"created_at":"2024-11-19T09:37:54.386Z","updated_at":"2025-04-12T09:12:17.688Z","avatar_url":"https://github.com/developersdigest.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go HTMX LLM Chat Application\n\nThis project is a real-time chat application built with Go, HTMX, and WebSockets, integrating with an AI language model for interactive conversations.\n\n## Features\n\n- Real-time chat interface\n- AI-powered responses\n- Markdown rendering for rich text formatting\n- Code syntax highlighting\n- Responsive design with Tailwind CSS\n\n## Prerequisites\n\n- Go 1.20 or later\n- Docker (optional)\n\n## Installation\n\n1. Clone the repository:\n\n```\ngit clone https://github.com/developersdigest/go-htmx-llm.git\ncd go-htmx-llm\n```\n\n2. Set up your environment variables:\n\nCreate a `.env` file in the project root and add your OpenAI API key:\n\n```\nOPENAI_API_KEY=your_api_key_here\n```\n\n## Running the Application\n\n### Without Docker\n\n1. Install dependencies:\n\n```\ngo mod download\n```\n\n2. Build and run the application:\n\n```\ngo build -o main .\n./main\n```\n\n### With Docker\n\n1. Build the Docker image:\n\n```\ndocker build -t go-htmx-llm .\n```\n\n2. Run the container:\n\n```\ndocker run -p 8080:8080 --env-file .env go-htmx-llm\n```\n\nThe application will be available at `http://localhost:8080`.\n\n## Project Structure\n\n- `main.go`: Main application file containing the server setup and WebSocket handling\n- `static/index.html`: Frontend HTML file with HTMX integration\n- `Dockerfile`: Instructions for building the Docker image\n- `go.mod` and `go.sum`: Go module files for dependency management\n\n## Technologies Used\n\n- [Go](https://golang.org/): Backend server\n- [Fiber](https://gofiber.io/): Web framework for Go\n- [HTMX](https://htmx.org/): Frontend interactivity\n- [WebSockets](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API): Real-time communication\n- [Tailwind CSS](https://tailwindcss.com/): Styling\n- [Marked](https://marked.js.org/): Markdown parsing\n- [Highlight.js](https://highlightjs.org/): Code syntax highlighting\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is open source and available under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopersdigest%2Fllm-golang-htmx-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopersdigest%2Fllm-golang-htmx-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopersdigest%2Fllm-golang-htmx-chat/lists"}