FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
valdottown
valdottowntest-claude
Public
Like
test-claude
Home
Code
4
backend
1
frontend
3
shared
1
README.md
Branches
3
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
/
README.md
Code
/
README.md
Search
5/22/2025
README.md

Weather Dashboard

A beautiful, responsive weather dashboard built with React and Hono on Val Town.

Features

  • 🌤️ Current weather conditions
  • 📅 5-day weather forecast
  • 📍 Location-based weather (geolocation + search)
  • 🎨 Beautiful, responsive design with TailwindCSS
  • 🌡️ Temperature in Fahrenheit, humidity, wind speed, and more
  • 🌅 Sunrise/sunset times
  • ☔ Precipitation probability

Tech Stack

  • Backend: Hono (TypeScript)
  • Frontend: React 18.2.0 + TailwindCSS
  • Weather API: Open-Meteo (no API key required)
  • Styling: TailwindCSS via Twind

Project Structure

├── backend/
│   └── index.ts          # Main Hono server & weather API
├── frontend/
│   ├── index.html        # Main HTML template
│   ├── index.tsx         # React app entry point
│   └── components/
│       └── App.tsx       # Main dashboard component
├── shared/
│   └── types.ts          # Shared TypeScript interfaces
└── README.md

API Endpoints

  • GET / - Serves the main dashboard
  • GET /api/weather/current?lat={lat}&lon={lon} - Current weather
  • GET /api/weather/forecast?lat={lat}&lon={lon} - 5-day forecast
  • GET /api/geocoding?q={query} - Location search

Usage

The dashboard automatically detects your location or allows you to search for any city worldwide. Weather data is provided by Open-Meteo API.

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.