Jj
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://Jjjiii--570941146ad941a28cb8a22c4ebdd91b.web.val.run
A feature-rich chat application built with React and Hono that allows users to:
- Login with just a username
- Send and receive text messages in real-time
- Record and share voice messages
- Upload and share images
- See who's currently online
- Backend (
/backend/index.ts
): Hono HTTP server with WebSocket support for real-time messaging - Frontend (
/frontend/components/App.tsx
): React application for the chat interface - Database: SQLite for storing users, messages, and file references
- Storage: Val Town blob storage for images and voice recordings
- Enter your username to log in
- Send text messages by typing in the input field and pressing Enter
- Record voice messages by clicking the microphone button
- Upload images by clicking the image button
- See who's online in the user list on the side panel