Challenge accepted: https://cloneathon.t3.chat
# setup .env
# [!] remember to setup `BETTER_AUTH_SECRET`, hint: try `npx nanoid` or something
# [!] need to se4tup `BLOB_READ_WRITE_TOKEN` from vercel KV
cp .env.example .env
# Install dependencies
bun install
# Setup DB
# Ideally prisma migrate dev, but for speed we use prisma db push
bun prisma db push# Run Caddy reverse proxy to enable HTTP/2 to fix electric sql performance issue
# https://electric-sql.com/docs/guides/troubleshooting#slow-shapes-mdash-why-are-my-shapes-slow-in-the-browser-in-local-development
caddy run
# Start Docker containers (PostgreSQL and Electric SQL)
docker compose up
# Run development server
bun devStep 3: Visit https://localhost:4000
- Chat with Various LLMs: Implement support for multiple language models and providers
✅ OpenRouter
- Authentication & Sync: User authentication with chat history synchronization
✅ Better-Auth + anonymous plugin
- Browser Friendly: Ensure web-based functionality without native app requirements
✅ tailwindcss + shadcn/ui
- Easy to Try: Provide simple way for users to test the application
- Attachment Support: Allow users to upload files (images and pdfs)
✅ AI SDK (
experimental_attachments) + OpenRouter
Screen.Recording.2025-06-13.at.20.32.13.mp4
- Image Generation Support: Add AI-powered image generation capabilities
✅ LangDB
- Syntax Highlighting: Implement beautiful code formatting and highlighting
✅ React Shiki
- Resumable Streams: Enable continuing generation after page refresh
✅ Electric SQL
Screen.Recording.2025-06-13.at.20.27.22.mp4
💡 Note: the refresh are triggered by me (
CMD+R)
- Chat Branching: Create alternative conversation paths
✅ Real world usage of linked list
Screen.Recording.2025-06-13.at.19.51.25.mp4
- Chat Sharing: Allow sharing conversations with others
✅ Freeze the linked list
- Web Search: Integrate real-time web search functionality
✅ OpenRouter
- Bring Your Own Key: Support for custom API keys
✅ OpenRouter + Next.js cookie
- Mobile App: Develop mobile version alongside web app
🚧 WIP, Thinking...
- Custom Features: Add your own unique and creative features
🚧 WIP, Thinking...
This is a T3 Stack project bootstrapped with create-t3-app.
We try to keep this project as simple as possible, so you can start with just the scaffolding we set up for you, and add additional things later when they become necessary.
If you are not familiar with the different technologies used in this project, please refer to the respective docs. If you still are in the wind, please join our Discord and ask for help.
To learn more about the T3 Stack, take a look at the following resources:
- Documentation
- Learn the T3 Stack — Check out these awesome tutorials
You can check out the create-t3-app GitHub repository — your feedback and contributions are welcome!
Follow our deployment guides for Vercel, Netlify and Docker for more information.








