{"id":46222573,"url":"https://github.com/andyfrith/weather-api","last_synced_at":"2026-03-03T14:53:04.808Z","repository":{"id":333000974,"uuid":"1135905062","full_name":"andyfrith/weather-api","owner":"andyfrith","description":"Weather API is a high-performance, type-safe RESTful service designed for the modern web. Built using the Bun JavaScript runtime and the Hono framework","archived":false,"fork":false,"pushed_at":"2026-02-06T20:00:58.000Z","size":253,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-07T01:41:00.171Z","etag":null,"topics":["api","hono","openapi","sentry","testing","types"],"latest_commit_sha":null,"homepage":"","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/andyfrith.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-16T19:00:32.000Z","updated_at":"2026-01-30T00:28:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/andyfrith/weather-api","commit_stats":null,"previous_names":["andyfrith/weather-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andyfrith/weather-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyfrith%2Fweather-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyfrith%2Fweather-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyfrith%2Fweather-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyfrith%2Fweather-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyfrith","download_url":"https://codeload.github.com/andyfrith/weather-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyfrith%2Fweather-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30050210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T14:38:37.398Z","status":"ssl_error","status_checked_at":"2026-03-03T14:38:06.721Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","hono","openapi","sentry","testing","types"],"created_at":"2026-03-03T14:53:04.110Z","updated_at":"2026-03-03T14:53:04.793Z","avatar_url":"https://github.com/andyfrith.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌤️ Weather API: Edge-First AI-Augmented Backend\n\n[![Deployed to: Cloudflare Workers](https://img.shields.io/badge/Deployed_to-Cloudflare_Workers-F38020?style=flat-square\u0026logo=cloudflare\u0026logoColor=white)](https://workers.cloudflare.com/)\n[![Framework: Hono](https://img.shields.io/badge/Framework-Hono-FF4500?style=flat-square\u0026logo=hono)](https://hono.dev)\n[![AI: Gemini 2.5 Flash](https://img.shields.io/badge/AI-Gemini_2.5_Flash-4285F4?style=flat-square\u0026logo=googlegemini)](https://ai.google.dev/)\n[![Documentation: OpenAPI](https://img.shields.io/badge/Docs-OpenAPI-49aa25?style=flat-square\u0026logo=openapi-initiative)](https://swagger.io)\n\n**Weather API** is a high-performance, type-safe service running on **Cloudflare Workers**. It combines the global scale of the edge with the lightning-fast intelligence of **Google Gemini 2.5 Flash**, providing a \"Single Source of Truth\" for weather data and AI-driven insights.\n\n## ✨ Latest Features\n\n- **🌐 Cloudflare Workers Deployment**: Optimized for the edge, leveraging Hono for sub-100ms response times globally.\n- **🧠 Gemini 2.5 Flash Integration**: Uses the latest 2.5 Flash model for near-instant weather summaries, clothing recommendations, and activity suggestions with enhanced reasoning efficiency.\n- **🛡️ Hono + Zod OpenAPI**: Strict contract-first development. The API is self-documenting and provides end-to-end type safety.\n- **🛑 Advanced Rate Limiting**: Built-in middleware protection to manage upstream API quotas (OpenWeather \u0026 Google AI).\n- **🚨 Sentry for Workers**: Specialized observability to capture and monitor edge-case errors in the serverless runtime.\n\n---\n\n## 🏗️ Architecture \u0026 Best Practices\n\n### 1. Edge-Native Performance\n\nBy running **Hono** on **Cloudflare Workers**, the application utilizes a \"no-cold-start\" architecture, delivering data from the nearest edge node to the end user.\n\n### 2. Intelligent Insights\n\nThe API utilizes **Gemini 2.5 Flash** to transform raw data into actionable advice.\n\n- **Low Latency AI**: Flash 2.5 provides the speed required for real-time edge interactions.\n- **Schema Validation**: Every AI-generated response is validated via Zod to ensure JSON structure integrity and prevent \"hallucinations\" in the UI.\n\n### 3. Contract-First Integrity\n\n- **Zod-to-OpenAPI**: Automated documentation ensures the UI client is always in sync with the server.\n- **Type-Safe RPC**: Provides a seamless developer experience when connecting with the [Weather React Client](https://github.com/andyfrith/weather-reactjs).\n\n---\n\n## 🚀 Quick Start\n\n### 1. Installation \u0026 Local Dev\n\n```bash\ngit clone [https://github.com/andyfrith/weather-api.git](https://github.com/andyfrith/weather-api.git)\ncd weather-api\nbun install\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyfrith%2Fweather-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyfrith%2Fweather-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyfrith%2Fweather-api/lists"}