ZenChat
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://mehran--622bd9f230ec11f0aeee569c3dd06744.web.val.run
A fully functional real-time chat application built on Val Town.
- Real-time messaging using WebSockets
- User authentication
- Message history
- Clean, responsive UI
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Schema definitions
│ │ └── queries.ts # DB query functions
│ ├── index.ts # Main entry point with WebSocket and HTTP handlers
│ └── README.md
├── frontend/
│ ├── index.html # Main HTML template
│ ├── index.js # Frontend JS
│ └── README.md
└── shared/
└── types.ts # Shared types
- Visit the application URL
- Enter your username to join
- Start chatting in real-time with other users
- Backend: Hono, WebSockets, SQLite
- Frontend: HTML, JavaScript, Tailwind CSS
- Real-time Communication: WebSockets