Public
Like
my-first-val
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
02_http.tsx
https://Naa56--810c836e3fa911f0bcae76b3cceeab13.web.val.run
A real-time public chatroom for team collaboration on company retreat travel planning.
- Real-time messaging with automatic updates
- Clean, responsive interface
- Message timestamps
- No authentication required (public access)
- Persistent message history
backend/index.ts
- Hono API server with chat endpointsbackend/database/
- SQLite setup and queriesfrontend/index.html
- Main chat interfacefrontend/index.tsx
- React chat applicationshared/types.ts
- Shared TypeScript interfaces
Access the chatroom at the HTTP endpoint. Messages are stored persistently and visible to all team members.
GET /
- Chat interfaceGET /api/messages
- Fetch recent messagesPOST /api/messages
- Send new messageGET /api/messages/stream
- Server-sent events for real-time updates