akazwz/openchat-monorepo
About
A modern full-stack AI Chatbot application built with React and Cloudflare Workers combined with Connect RPC, supporting Web, mobile App and desktop through Tauri
Web & App DevelopmentMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
OriginalOpenChat
A modern, full-stack application featuring AI-powered chat capabilities, built with React and multi-backend architecture (Cloudflare Workers/Node.js/Golang), supporting cross-platform clients for web, mobile app, and desktop
Features • Tech Stack • Getting Started • Deployment • Project Structure • Contributing • License
QR Code Login
Android App
Intelligent Search
✨ Why OpenChat?
OpenChat isn't just another AI chat application. It's built with a modern tech stack to provide a comprehensive AI conversation experience:
- 💪 Full-stack TypeScript - Type safety across frontend and backend for improved developer productivity
- 🚀 Global Deployment - Easily deploy worldwide with Cloudflare Workers in seconds
- 🔄 Cross-Platform Seamless Sync - Real-time synchronization across web, mobile, and desktop, switch devices anytime while continuing your conversations
- 📦 Fully Featured - Complete functionality out of the box with no additional configuration needed
- 🧩 Highly Extensible - Modular design makes it easy to add new models and features
Features
- 🤖 AI-Powered Interactions: Integration with OpenAI GPT-4 for natural language conversations
- 🎨 Text-to-Image Generation: Support for Flux AI models to create images from text descriptions
- 🔍 Web Search Capabilities: Integrated Brave Web search functionality
- 📱 Multi-Platform Support: Works on both web browsers and as native applications (via Tauri)
- 📊 Modern Database Architecture: PostgreSQL with Drizzle ORM and Cloudflare Hyperdrive optimization
- 🔒 Type-Safe API Communication: Using Connect RPC and Protocol Buffers
- 📷 QR Code Login: Support for scanning QR codes to log in on Tauri client apps
- 🖼️ Image Storage: Efficient image storage with Cloudflare R2
- ⚡ Real-time Responses: Fast, responsive interface with modern React components
- 📲 Three-Platform Sync: Seamlessly switch between web, mobile, and desktop with real-time chat history synchronization
Tech Stack
Frontend
- Framework: React with React Router
- UI Library: Chakra UI
- Client Support: Tauri
Backend
- Serverless: Cloudflare Workers (Node.js and Golang backend implementations are in development)
- API: Connect RPC with Protocol Buffers
- Type Generation: buf
Database
- Database: Neon (PostgreSQL)
- ORM: Drizzle ORM
- Connection Optimization: Cloudflare Hyperdrive
Development Tools
- Monorepo Management: pnpm workspaces
- Code Formatting: Biome
- Deployment: Cloudflare
Getting Started
Prerequisites
- Node.js (v18 or later)
- pnpm
- Wrangler CLI
- buf CLI
Installation
Clone the repository:
git clone https://github.com/akazwz/openchat-monorepo.git cd openchat-monorepoInstall dependencies:
pnpm installSet up environment variables:
# Create environment files based on examples cp packages/workers/.dev.vars.example packages/workers/.dev.vars cp packages/frontend/.env.example packages/frontend/.envGenerate Protocol Buffer types:
pnpm gen
Development
Start the development servers:
pnpm dev
This will start both the frontend and Cloudflare Worker in development mode.
Deployment
Deploy the application to Cloudflare:
pnpm fly
Project Structure
├── packages
│ ├── frontend # React frontend application
│ ├── workers # Cloudflare Workers backend service
│ ├── nodejs # Node.js backend implementation
│ └── golang # Golang backend implementation
├── proto # Protocol Buffer definitions
Downloads
Contributing
Contributions are welcome! Feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
We're still deciding which open source license to use. Stay tuned! If you have any suggestions or thoughts, we'd love to hear them.
⚠️ Warning
This project is currently under active development. Features may change, APIs may be unstable, and there might be bugs. Use in production environments at your own risk.
Explore related projects
Loading…