{"id":29830762,"url":"https://github.com/niradler/chatui","last_synced_at":"2026-04-15T20:02:17.783Z","repository":{"id":298012631,"uuid":"998578047","full_name":"niradler/chatui","owner":"niradler","description":"A beautiful, modern chat interface for interacting with your local Ollama server. This is a clean alternative to ChatGPT that runs entirely on your local machine.","archived":false,"fork":false,"pushed_at":"2025-07-24T22:54:39.000Z","size":9752,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-25T02:41:53.026Z","etag":null,"topics":["ollama","ollama-api","ollama-gui"],"latest_commit_sha":null,"homepage":"","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/niradler.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":"docs/ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-08T22:46:42.000Z","updated_at":"2025-07-24T22:54:43.000Z","dependencies_parsed_at":"2025-06-08T23:27:27.838Z","dependency_job_id":"9e00a09a-616c-434d-82fe-0f191ec8e67d","html_url":"https://github.com/niradler/chatui","commit_stats":null,"previous_names":["niradler/ollama-ui","niradler/chatui"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/niradler/chatui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fchatui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fchatui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fchatui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fchatui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niradler","download_url":"https://codeload.github.com/niradler/chatui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fchatui/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267668840,"owners_count":24124970,"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-07-29T02:00:12.549Z","response_time":2574,"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":["ollama","ollama-api","ollama-gui"],"created_at":"2025-07-29T10:10:54.970Z","updated_at":"2026-04-15T20:02:17.766Z","avatar_url":"https://github.com/niradler.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChatUI\n\nA beautiful, modern chat interface for interacting with your local Ollama server. This is a clean alternative to ChatGPT that runs entirely on your local machine.\n\n![demo](docs/demo.gif)\n\n## Features\n\n- 🎨 **Beautiful UI** - Dark/light mode with smooth animations\n- 🔄 **Real-time Streaming** - See responses as they're generated\n- 🤖 **Model Selection** - Switch between different Ollama models\n- 📱 **Responsive Design** - Works on desktop and mobile\n- 💾 **Export Chats** - Save your conversations as JSON\n- 🚀 **Fast \u0026 Local** - No external dependencies, runs on your machine\n\n## Prerequisites\n\n1. **Install Ollama**: Download and install from [ollama.ai](https://ollama.ai)\n2. **Download a Model**: Run `ollama pull llama2` (or any model you prefer)\n3. **Start Ollama Server**: The server should auto-start, or run `ollama serve`\n\n## Quick Start (GitHub Pages)\n\nYou can use the hosted version directly without installation:\n\n**🌐 [Use ChatUI on GitHub Pages](https://niradler.github.io/chatui/)**\n\nJust make sure your Ollama API has CORS configured (see [CORS Configuration](#cors-configuration) below).\n\n## Local Installation\n\n1. Clone this repository:\n\n```bash\ngit clone \u003cyour-repo-url\u003e\ncd chatui\n```\n\n2. Install dependencies:\n\n```bash\nnpm install\n# or\npnpm install\n# or\nyarn install\n```\n\n3. Start the development server:\n\n```bash\nnpm run dev\n# or\npnpm dev\n# or\nyarn dev\n```\n\n4. Open [http://localhost:5173](http://localhost:5173) in your browser\n\n## Configuration\n\n### Ollama Server URL\n\nBy default, the app connects to `http://localhost:11434`. If your Ollama server runs on a different port or host, you can modify the `baseUrl` in `src/services/ollamaApi.ts`:\n\n```typescript\nconst ollamaApi = new OllamaApiService(\"http://your-ollama-host:port\");\n```\n\n### Default Model\n\nYou can set a default model in `src/hooks/useChatUI.ts`:\n\n```typescript\nexport const useChatUI = (defaultModel: string = 'your-preferred-model') =\u003e {\n```\n\n## CORS Configuration\n\nTo use the GitHub Pages version or any browser-based tool with Ollama, you need to enable CORS on your Ollama server.\n\n### Check if CORS is enabled\n\n```bash\ncurl -X OPTIONS http://localhost:11434 -H \"Origin: http://example.com\" -H \"Access-Control-Request-Method: GET\" -I\n```\n\nIf you get `HTTP/1.1 403 Forbidden`, CORS is not enabled.\n\n### Enable CORS\n\n**On Windows:**\n\n1. Go to System Properties → Environment Variables\n2. Add `OLLAMA_ORIGINS` with value `*` (or specific domains)\n3. Restart Ollama\n\n**On macOS:**\n\n```bash\nlaunchctl setenv OLLAMA_ORIGINS \"*\"\n```\n\n**On Linux:**\n\n```bash\nsudo systemctl edit ollama.service\n```\n\nAdd:\n\n```ini\n[Service]\nEnvironment=\"OLLAMA_ORIGINS=*\"\n```\n\nThen restart:\n\n```bash\nsudo service ollama restart\n```\n\n### Verify CORS is working\n\nAfter configuration, you should see:\n\n```\nHTTP/1.1 204 No Content\nAccess-Control-Allow-Origin: *\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniradler%2Fchatui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniradler%2Fchatui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniradler%2Fchatui/lists"}