Back to Home
Chris31372 icon

better-chat

Verified Safe

by Chris31372

Overview

An AI chat application focused on interacting with technical documentation, featuring multi-model support and per-user data isolation via Cloudflare Durable Objects.

Installation

Run Command
bun a:dev

Environment Variables

  • ALCHEMY_STATE_TOKEN
  • CORS_ORIGIN
  • BETTER_AUTH_URL
  • BETTER_AUTH_SECRET
  • RESEND_API_KEY
  • GOOGLE_CLIENT_ID
  • GOOGLE_CLIENT_SECRET
  • GH_CLIENT_ID
  • GH_CLIENT_SECRET
  • API_ENCRYPTION_KEY
  • OPENAI_API_KEY
  • GOOGLE_GENERATIVE_AI_API_KEY
  • VITE_SERVER_URL
  • VITE_WEB_URL
  • CUSTOM_WEB_DOMAIN
  • API_ROUTE_PATTERN
  • CLOUDFLARE_ACCOUNT_ID
  • CLOUDFLARE_DATABASE_ID
  • CLOUDFLARE_API_TOKEN

Security Notes

The provided server-side source code demonstrates strong security practices. Sensitive user API keys are encrypted at rest using AES-GCM with a user-specific PBKDF2-derived key, and secrets are properly managed via environment variables. User sessions are secured with Cloudflare KV, and rate limiting is implemented. The authentication system, Better Auth, uses email OTP and OAuth securely. However, the accompanying README's instructions to download and execute a `.zip` file for the client application from GitHub (`better-chat.zip`) represent a critical security risk for end-users, as the contents of this client binary are not provided for audit. Users should exercise extreme caution and ideally build the client from source if provided, or verify its integrity through trusted channels.

Similar Servers

Stats

Interest Score33
Security Score8
Cost ClassMedium
Avg Tokens1500
Stars3
Forks0
Last Update2026-01-19

Tags

AI ChatDocumentationCloudflareMulti-modelServerless