• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
mehran

mehran

ZenChat

Public
Like
ZenChat
Home
Code
4
backend
3
frontend
3
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
Code
/
Search
index.ts
https://mehran--622bd9f230ec11f0aeee569c3dd06744.web.val.run
README.md

Real-Time Chat Application

A fully functional real-time chat application built on Val Town.

Features

  • Real-time messaging using WebSockets
  • User authentication
  • Message history
  • Clean, responsive UI

Project Structure

├── 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

How to Use

  1. Visit the application URL
  2. Enter your username to join
  3. Start chatting in real-time with other users

Technologies Used

  • Backend: Hono, WebSockets, SQLite
  • Frontend: HTML, JavaScript, Tailwind CSS
  • Real-time Communication: WebSockets
HTTP
  • index.ts
    mehran--62…44.web.val.run
Code
backendfrontendsharedREADME.md
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.