{"id":23610095,"url":"https://github.com/fa-sharp/lightning-weather","last_synced_at":"2026-04-12T04:31:42.780Z","repository":{"id":46558025,"uuid":"388674534","full_name":"fa-sharp/lightning-weather","owner":"fa-sharp","description":"A full-featured, fast weather app created with React and Next.js","archived":false,"fork":false,"pushed_at":"2024-05-09T05:47:05.000Z","size":29143,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T15:15:55.415Z","etag":null,"topics":["nextjs","react"],"latest_commit_sha":null,"homepage":"http://lightning-weather.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fa-sharp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-23T04:16:20.000Z","updated_at":"2024-05-09T06:50:49.000Z","dependencies_parsed_at":"2022-09-11T14:12:22.063Z","dependency_job_id":null,"html_url":"https://github.com/fa-sharp/lightning-weather","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fa-sharp%2Flightning-weather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fa-sharp%2Flightning-weather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fa-sharp%2Flightning-weather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fa-sharp%2Flightning-weather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fa-sharp","download_url":"https://codeload.github.com/fa-sharp/lightning-weather/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239475964,"owners_count":19645041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextjs","react"],"created_at":"2024-12-27T15:16:02.259Z","updated_at":"2025-11-05T23:30:24.835Z","avatar_url":"https://github.com/fa-sharp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lightning ⚡️ Weather\nA simple, fast weather app created with React and [Next.js](https://nextjs.org/).\n\n[Live Demo here!](https://lightning-weather.vercel.app/)\n\n\u003cimg src=\"public/sample.png\" width=500 alt=\"Main page\"\u003e\n\u003cdiv\u003e\n    \u003cimg src=\"public/dayDemo.png\" width=320 alt=\"day view\"\u003e\n    \u003cimg src=\"public/hourlyDemo.png\" width=350 alt=\"hourly graph\"\u003e\n\u003c/div\u003e\n\n## Features\n- Displays the current weather and forecast data from OpenWeatherMap\n    - Current condition\n    - Daily forecast for 7 days\n    - Hourly forecast for 2 days, with hourly chart (using [Chart.js](http://www.chartjs.org) library)\n- Search for any city/town in the world (if OpenWeatherMap has it in their database)\n- User can customize the home screen to show up to four cities\n- The app uses Next.js's\n[API routes](https://nextjs.org/docs/api-routes/introduction) to get weather data and forecast data from OpenWeatherMap on the server side.\n- Data is fetched, cached, and refreshed on the client side using the [SWR](https://swr.vercel.app/) library.\n- User settings (units, colors) and saved cities are stored in browser's Local Storage, and retrieved/saved using React Context.\n\n### Accessibility\n- Fully keyboard navigable!\n- User can turn off colors for higher contrast\n- Hourly graph's `\u003ccanvas\u003e` element has fallback text for screen readers\n\n### Internationalization\n- Switch between metric and imperial units\n- Time/day and number displays will change according to locale of user, with the help of the browser's [Intl class](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl)\n\n## Building locally\nTo build/run the app locally, you will need ```npm```, as well as an API key from [OpenWeatherMap](https://openweathermap.org/api). Store the key in a `.env.local` file in the root folder, containing the following:\n\n```\nOPENWEATHER_API_KEY=your_key_here\n```\nThis will set up the API key as an Environment Variable for Next.js.\n\n\nThen, you can run the development server:\n\n```bash\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can also build the app with:\n\n```bash\nnpm run build\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffa-sharp%2Flightning-weather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffa-sharp%2Flightning-weather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffa-sharp%2Flightning-weather/lists"}