{"id":48683806,"url":"https://github.com/neozhu/botchat","last_synced_at":"2026-04-11T03:44:08.507Z","repository":{"id":333413871,"uuid":"1137181050","full_name":"neozhu/botchat","owner":"neozhu","description":"A clean, fast chat dashboard with expert personas, streaming replies, attachments, and readable code blocks.","archived":false,"fork":false,"pushed_at":"2026-03-31T10:49:24.000Z","size":2086,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-11T03:44:05.902Z","etag":null,"topics":["botchat","expertsystem","gpts"],"latest_commit_sha":null,"homepage":"https://botchat.blazorserver.com","language":"TypeScript","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/neozhu.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,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-01-19T03:00:29.000Z","updated_at":"2026-03-31T10:49:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/neozhu/botchat","commit_stats":null,"previous_names":["neozhu/botchat"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/neozhu/botchat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neozhu%2Fbotchat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neozhu%2Fbotchat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neozhu%2Fbotchat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neozhu%2Fbotchat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neozhu","download_url":"https://codeload.github.com/neozhu/botchat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neozhu%2Fbotchat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31668050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"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":["botchat","expertsystem","gpts"],"created_at":"2026-04-11T03:44:03.192Z","updated_at":"2026-04-11T03:44:08.494Z","avatar_url":"https://github.com/neozhu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Botchat\n\n**A clean, fast chat dashboard with expert personas, authenticated personal workspaces, streaming replies, attachments, and readable code blocks.**\n\n[![CI](https://github.com/neozhu/botchat/actions/workflows/ci.yml/badge.svg)](https://github.com/neozhu/botchat/actions/workflows/ci.yml)\n\nBuilt with **Next.js (App Router)** + **Vercel AI SDK** + **Supabase**.\n\n\u003c/div\u003e\n\n![](/docs/screenshot.png)\n\n## What you get\n\n- **Expert personas**: switch between different “experts” with their own system prompts.\n- **Supabase Auth**: sign up, sign in, sign out, and change password flows are built in.\n- **Multi-session chat**: sessions list + titles + last-message preview.\n- **User-isolated chat history**: sessions and messages are scoped to the authenticated user.\n- **Streaming responses**: responsive UI while the model streams tokens.\n- **Attachments**: upload images/files to Supabase Storage and send them with messages.\n- **Markdown + code blocks**: readable rendering with syntax highlighting.\n\n## Quickstart (local)\n\n### 1) Configure env\n\nCreate `.env.local`:\n\n```bash\ncp .env.local.example .env.local\n```\n\nRequired:\n\n- `OPENAI_API_KEY` – your OpenAI API key\n- `OPENAI_MODEL` – e.g. `gpt-5-mini` (model is not hardcoded in code)\n\nSupabase (recommended for sessions/experts/attachments):\n\n- `PUBLIC_SUPABASE_URL`\n- `PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY`\n\n### 2) Run\n\n```bash\nbun install\nbun dev\n```\n\nOpen `http://localhost:3000`.\n\nAuthentication UI is available at `http://localhost:3000/auth`.\n\n## Supabase setup\n\n1. Create a Supabase project.\n2. Run `supabase/schema.sql` in the Supabase SQL Editor.\n3. Enable Supabase Auth email/password sign-in for the project.\n4. If email confirmation is enabled, new users must activate their account from email before signing in.\n5. Create a public Storage bucket named `chat-attachments`.\n\nThe database schema now assumes authenticated access:\n\n- `chat_sessions.user_id` owns each chat session.\n- `chat_messages` inherit ownership through `session_id`.\n- Row Level Security allows users to read/write only their own sessions and messages.\n- `experts` remain global/shared and are not user-owned.\n\n## Docker\n\nThis repo includes a production Docker build for the Next.js app:\n\n```bash\ndocker compose up -d --build\n```\n\nApp is exposed at `http://localhost:3202` (mapped from container `3000`).\n\nTip: for Docker envs, set `OPENAI_API_KEY`, `OPENAI_MODEL`, `PUBLIC_SUPABASE_URL`, and `PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY` in your deployment platform or `docker-compose.yml`.\n\n## Project structure\n\n- `app/` – Next.js routes (UI + API routes)\n- `components/botchat/` – chat UI (sessions, experts, input, panels)\n- `components/ai-elements/` – AI-friendly UI primitives (rendering, message building blocks)\n- `lib/` – shared utilities + Supabase clients\n- `supabase/schema.sql` – database schema + RLS policies\n\n## Common scripts\n\n```bash\nbun dev       # local dev\nbun run build # production build\nbun start     # run production server on :3000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneozhu%2Fbotchat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneozhu%2Fbotchat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneozhu%2Fbotchat/lists"}