{"id":29874948,"url":"https://github.com/hugorcd/nuxt-ui-chat","last_synced_at":"2025-09-20T07:12:19.245Z","repository":{"id":304670600,"uuid":"1017333551","full_name":"HugoRCD/nuxt-ui-chat","owner":"HugoRCD","description":"Nuxt UI app using the aisdk v5: streaming AI chat, multi-model support, AI Gateway, and generative UI","archived":false,"fork":false,"pushed_at":"2025-07-28T18:32:50.000Z","size":25492,"stargazers_count":85,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-30T12:35:53.821Z","etag":null,"topics":["ai","ai-gateway","aisdk","chat","generative-ui","nuxt-ui","reasoning","vercel"],"latest_commit_sha":null,"homepage":"https://nuxt-ui-chat.hrcd.fr","language":"Vue","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/HugoRCD.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},"funding":{"github":["HugoRCD"]}},"created_at":"2025-07-10T11:26:26.000Z","updated_at":"2025-07-29T18:55:03.000Z","dependencies_parsed_at":"2025-07-14T17:36:12.012Z","dependency_job_id":"fd85d6e3-1b0f-4d81-8ea4-d5baf1132a42","html_url":"https://github.com/HugoRCD/nuxt-ui-chat","commit_stats":null,"previous_names":["hugorcd/nuxt-ui-chat"],"tags_count":1,"template":true,"template_full_name":"nuxt-ui-pro/chat","purl":"pkg:github/HugoRCD/nuxt-ui-chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoRCD%2Fnuxt-ui-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoRCD%2Fnuxt-ui-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoRCD%2Fnuxt-ui-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoRCD%2Fnuxt-ui-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HugoRCD","download_url":"https://codeload.github.com/HugoRCD/nuxt-ui-chat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoRCD%2Fnuxt-ui-chat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267973548,"owners_count":24174408,"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-30T02:00:09.044Z","response_time":70,"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":["ai","ai-gateway","aisdk","chat","generative-ui","nuxt-ui","reasoning","vercel"],"created_at":"2025-07-31T01:45:31.133Z","updated_at":"2025-09-20T07:12:14.183Z","avatar_url":"https://github.com/HugoRCD.png","language":"Vue","funding_links":["https://github.com/sponsors/HugoRCD"],"categories":[],"sub_categories":[],"readme":"![Nuxt UI Chat](public/banner.jpg)\n\n# Nuxt UI Chat\n\nA modern, full-featured AI chatbot application built with Nuxt 3, Nuxt UI Pro, and the Vercel AI SDK v5. Features real-time streaming, multiple AI models support via AI Gateway, persistent chat history with PostgreSQL, and a beautiful responsive interface.\n\n## Features\n\n- ⚡️ **Streaming AI responses** powered by [Vercel AI SDK v5](https://ai-sdk.dev)\n- 🤖 **Multiple AI models** support via [Vercel AI Gateway](https://vercel.com/docs/ai-gateway) - access OpenAI, Anthropic, Google, and more\n- 🧠 **Reasoning models** support for advanced problem-solving capabilities\n- 🧩 **Generative UI** - AI can generate interactive components (e.g., weather widgets)\n- 🔐 **GitHub authentication** via [nuxt-auth-utils](https://github.com/atinux/nuxt-auth-utils)\n- 💾 **Persistent chat history** with PostgreSQL and [Drizzle ORM](https://orm.drizzle.team)\n- 🎨 **Beautiful UI** built with [Nuxt UI Pro](https://ui.nuxt.com/pro) components\n- ⚡ **Real-time syntax highlighting** with Shiki\n- 📱 **Responsive design** optimized for all devices\n- ⌨️ **Keyboard shortcuts** and command palette\n- 🔍 **Chat search** and management\n\n## Tech Stack\n\n- **Frontend**: Nuxt, Nuxt UI Pro, TailwindCSS\n- **AI**: Vercel AI SDK v5, Vercel AI Gateway\n- **Database**: PostgreSQL with Drizzle ORM\n- **Authentication**: GitHub OAuth via nuxt-auth-utils\n- **Deployment**: Vercel (recommended)\n\n## Quick Start\n\n```bash\ngit clone \u003cyour-repo-url\u003e\ncd nuxt-ui-chat\npnpm install\n```\n\n## Setup\n\n### Environment Variables\n\nCreate a `.env` file with the following variables:\n\n```env\n# GitHub OAuth (create at https://github.com/settings/applications/new)\nNUXT_OAUTH_GITHUB_CLIENT_ID=\u003cyour-github-oauth-app-client-id\u003e\nNUXT_OAUTH_GITHUB_CLIENT_SECRET=\u003cyour-github-oauth-app-client-secret\u003e\n\n# Database (recommended: Neon PostgreSQL)\nDATABASE_URL=\u003cyour-postgresql-connection-string\u003e\n\n# Vercel AI Gateway (optional but recommended for analytics and caching)\nAI_GATEWAY_API_KEY=\u003cyour-vercel-ai-gateway-api-key\u003e\n\n# Nuxt UI Pro License (required for production)\nNUXT_UI_PRO_LICENSE=\u003cyour-nuxt-ui-pro-license\u003e\n```\n\n### Database Setup\n\nWe recommend using [Neon](https://neon.tech) for PostgreSQL hosting, especially with Vercel's integration:\n\n1. Create a Neon account and database\n2. Copy the connection string to `DATABASE_URL`\n3. Run database migrations:\n\n```bash\npnpm db:generate\npnpm db:migrate\n```\n\n### AI Gateway Setup (Optional)\n\nFor better analytics, caching, and cost optimization:\n\n1. Create a [Vercel AI Gateway](https://ai-sdk.dev/docs/ai-gateway)\n2. Add the API key to `AI_GATEWAY_API_KEY`\n\n## Development\n\nStart the development server:\n\n```bash\npnpm dev\n```\n\nThe app will be available at `http://localhost:3000`\n\n## Production\n\nBuild for production:\n\n```bash\npnpm build\n```\n\nPreview production build locally:\n\n```bash\npnpm preview\n```\n\n## Deployment\n\n### Vercel (Recommended)\n\n1. Connect your repository to Vercel\n2. Configure environment variables in Vercel dashboard\n3. Ensure Neon integration is set up for the database\n4. Deploy!\n\n### Other Platforms\n\nThis app can be deployed on any platform that supports Node.js and PostgreSQL:\n\n- Railway\n- DigitalOcean App Platform\n- Self-hosted with Docker\n\n## Database Commands\n\n```bash\n# Generate new migration after schema changes\npnpm db:generate\n\n# Apply migrations to database\npnpm db:migrate\n\n# Type checking\npnpm typecheck\n\n# Linting\npnpm lint\n```\n\nTODO:\n- [x] Basic rate limit\n- [ ] Better rate limit handling\n- [x] Better rate limit handling in the UI (display)\n- [ ] Web search with sources display\n- [ ] Abort streaming\n- [ ] Resume streaming on page reload\n- [ ] Image generation\n- [ ] Add image to message\n- [ ] Change model during conversation\n\n## License\n\nThis project requires a [Nuxt UI Pro license](https://ui.nuxt.com/pro) for production use.\n\n## Contributing\n\nFeel free to contribute by opening issues or submitting pull requests!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugorcd%2Fnuxt-ui-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugorcd%2Fnuxt-ui-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugorcd%2Fnuxt-ui-chat/lists"}