untitled-1522
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
index.ts
https://jessicaocean--77c7faa093e511f0868c0224a6c84d84.web.val.run
A full-stack chat application with Google authentication, conversation storage, and group chat functionality.
- Google OAuth Login - Secure authentication via LastLogin
- Chat with ChatGPT - GPT-4o-mini integration for AI responses
- Personal Conversations - Private chats with conversation history
- Group Chats - Invite others to collaborate in conversations with AI
- Real-time Updates - See messages from other participants instantly
- Conversation Management - Create, view, and delete conversations
- Admin Controls - Invite users and manage participants
- Invite by Email - Admins can invite users via email
- Role-based Access - Admin vs Participant permissions
- Real-time Collaboration - All participants see messages instantly
- Full Message History - New participants see all previous messages
- Participant Management - View and remove participants
- Create/Open any conversation
- Invite People - Click "Invite" button (admins only)
- Email Invitations - Recipients get email with join link
- Join Conversation - Click link, login, accept invitation
- Collaborate - All participants chat together with AI
backend/
- Hono API server with authentication and group chatfrontend/
- React chat interface with group featuresshared/
- Shared TypeScript types
- Backend: Hono, LastLogin auth, SQLite, OpenAI, Server-Sent Events
- Frontend: React, TailwindCSS, Real-time SSE connections
- Database: SQLite with participant and invitation tables
The app is automatically deployed on Val Town. Visit the HTTP endpoint to start chatting!
- Start chatting - Create conversations normally
- Invite others - Use the "Invite" button in any conversation
- Real-time collaboration - Everyone sees messages instantly
- Manage participants - Admins can view and remove participants