Repository: github.com/nishal21/weather · License: MPL-2.0
Live weather for cities in India and elsewhere. Hourly and 7-day outlook, rain, wind, UV, air quality, city search, GPS, saved places, and language support.
- Live weather from Open-Meteo
- World city search (Open-Meteo geocoding)
- GPS reverse geocoding (BigDataCloud)
- Cards for hourly, 7-day, rain, UV, AQI, and details
- UI strings translated online (MyMemory, with sanitizing)
- Device language by default until you pick one
- Compact URLs like
/?p=lat,lon&n=Name&st=State&f=g - SEO / GEO / AEO: metadata, robots, sitemap, manifest, JSON-LD,
llms.txt, FAQ
- Install dependencies:
npm install- Copy env file and set your values:
cp .env.example .env.local- Start dev server:
npm run devUse .env.local for local development.
Required for production SEO:
NEXT_PUBLIC_SITE_URL=https://your-domain.comThis value is used for canonical URLs, sitemap links, and social metadata.
npm run build- Open-Meteo: forecast and geocoding
- BigDataCloud: reverse geocoding
- MyMemory: UI translation
- This app is for weather guidance and convenience.
- Alerts are app-derived weather tips, not official government warnings.
Production responses send Content-Security-Policy, HSTS (includeSubDomains and preload), COOP, and CORP. API routes check the caller origin and keep keys on the server.
City and language search fields cap length. JSON-LD is escaped before it is injected.
Source code in this repository is licensed under the Mozilla Public License 2.0 (MPL-2.0).
You may use, modify, and distribute the code under MPL-2.0. If you modify MPL-covered source files and distribute them, those modified files must stay open under MPL-2.0.
Copyright for the project source code is held by nishal21, under MPL-2.0.
Images, animations, icons, videos, fonts, and other media in this project may belong to their respective owners and are not necessarily covered by MPL-2.0. Use or redistribution of those assets may require separate permission or license from the original rights holders.
Third-party data and services (Open-Meteo, BigDataCloud, MyMemory, and others) remain subject to their own terms and attribution requirements.