FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
MadLab
MadLabCrazyTestVal
Public
Like
CrazyTestVal
Home
Code
3
README.md
index.html
H
index.ts
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://MadLab--ede9fba8320511f09363569c3dd06744.web.val.run
README.md

Val Town Test App

This is a simple test application built on Val Town. It demonstrates basic functionality including:

  • HTTP endpoints with Hono
  • Serving HTML content
  • Client-side JavaScript
  • API integration
  • Basic UI with TailwindCSS

Project Structure

  • /index.ts - Main backend entry point with Hono HTTP server
  • /index.html - Frontend HTML page with interactive elements

Features

  1. Current Time API: Fetches the current server time from a backend API endpoint
  2. Click Counter: Simple client-side counter with increment and reset functionality
  3. Responsive Design: Mobile-friendly layout using TailwindCSS

How to Use

  1. Click the "Get Current Time" button to fetch the current server time from the API
  2. Use the increment and reset buttons to manage the counter
  3. View the source code by clicking the "View Source" link

Technologies Used

  • Backend: Hono (TypeScript)
  • Frontend: HTML, JavaScript
  • Styling: TailwindCSS
  • Error Handling: Val Town catch script for client-side errors

Implementation Details

  • The backend injects the source URL into the HTML page to enable the "View Source" link
  • Error handling is implemented for both client and server-side operations
  • The application uses a favicon generated from an emoji
  • Responsive design works on both mobile and desktop devices
HTTP
  • index.ts
    MadLab--ed…44.web.val.run
Code
README.mdindex.html
H
index.ts
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.