This is an AI-powered group chat app that allows users to form chatrooms and collaboratively interact with AI assistants in real-time. The app's goal is to facilitate collaborative learning, brainstorming, research, and decision-making through a conversational interface.
- Next.js - Frontend and Backend framework
- PartyKit - Real-time collaboration framework
- Clerk - Authentication and user management
- AI SDK - AI toolkit
- Shadcn UI - UI Component library
- Drizzle - Database ORM
Project is a monorepo with the following key directories:
/packages/webapp- Frontend and Backend/packages/party- PartyKit multiplayer server/docker- Docker compose files for postgres db and other services/ai-ref- Docs for AI coding agents/external-docs- External API/SDK docs/project-docs- Project spec and task planning docs
/.cursor- Cursor rules
- Bun Package manager
- PostgreSQL database
- Clerk account for authentication
- OpenAI API key for AI features
-
Clone the repository
git clone <repository-url> cd multiplayer-ai
-
Install dependencies
bun install
-
Set up environment variables
- In
/packages/webapp, copy.env.exampleto.envand fill in the values. - In
/packages/party, copy.env.exampleto.envand fill in the values.
-
Set up the database
bun run db:migrate
-
Start development servers
bun run dev
-
Access the application
- Main app: http://localhost:3000
- PartyKit server: http://localhost:1999
- File and image queries
- Tool calling and MCP
- Multiple AI assistants in a chatroom
- Mobile-friendly UI/UX
Contributions are welcome! Please feel free to open an issue or submit a pull request.
This project is under the MIT License
Vibe-coded with Cursor, Claude, Gemini and O3