{"id":15978431,"url":"https://github.com/bholmesdev/astro-client-when-rainy-in-ny","last_synced_at":"2025-03-26T23:30:45.979Z","repository":{"id":172067669,"uuid":"648805127","full_name":"bholmesdev/astro-client-when-rainy-in-ny","owner":"bholmesdev","description":"Only hydrate components when you have rain water 😉","archived":false,"fork":false,"pushed_at":"2023-06-02T21:44:37.000Z","size":49,"stargazers_count":22,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T16:02:45.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Astro","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/bholmesdev.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}},"created_at":"2023-06-02T21:27:08.000Z","updated_at":"2024-12-25T09:44:03.000Z","dependencies_parsed_at":"2023-07-03T17:30:49.242Z","dependency_job_id":null,"html_url":"https://github.com/bholmesdev/astro-client-when-rainy-in-ny","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"196a903ea93c079b0cf24d65f96b537ebc106f54"},"previous_names":["bholmesdev/astro-client-when-rainy-in-ny"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bholmesdev%2Fastro-client-when-rainy-in-ny","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bholmesdev%2Fastro-client-when-rainy-in-ny/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bholmesdev%2Fastro-client-when-rainy-in-ny/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bholmesdev%2Fastro-client-when-rainy-in-ny/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bholmesdev","download_url":"https://codeload.github.com/bholmesdev/astro-client-when-rainy-in-ny/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245753845,"owners_count":20666822,"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":[],"created_at":"2024-10-07T23:20:27.961Z","updated_at":"2025-03-26T23:30:45.969Z","avatar_url":"https://github.com/bholmesdev.png","language":"Astro","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Astro - `client:rainy-in-ny` 🌧\n\nYes, this actually shows you how to hydrate components ONLY when it's raining in NYC. Take that React `\"use client\"`!\n\n## 🚀 Project Structure\n\nThese are the files you probably want to reference:\n\n```sh\n/\n├── src/\n│   └── components/\n│       └── Counter.jsx # what we're hydrating\n│   └── pages/\n│       └── index.astro # uses `client:rainy-in-ny`\n├── .env.example # sets WEATHER_API_KEY\n├── client-rainy-in-ny.mjs # implementation\n└── astro.config.mjs # applies client directive\n```\n\n## ⚙️ Setup\n\nThis directive relies on the WeatherAPI.com for requesting the current forecast. To get an API key, you can [create a free account here](https://www.weatherapi.com/docs/).\n\nThen, create a `.env` file at the base of the project mirroring the `.env.example` template.\n\n## 🧞 Commands\n\nAll commands are run from the root of the project, from a terminal:\n\n| Command                   | Action                                           |\n| :------------------------ | :----------------------------------------------- |\n| `npm install`             | Installs dependencies                            |\n| `npm run dev`             | Starts local dev server at `localhost:3000`      |\n| `npm run build`           | Build your production site to `./dist/`          |\n| `npm run preview`         | Preview your build locally, before deploying     |\n| `npm run astro ...`       | Run CLI commands like `astro add`, `astro check` |\n| `npm run astro -- --help` | Get help using the Astro CLI                     |\n\n## 👀 Want to learn more?\n\nFeel free to check [Astro's \"custom client directives\" documentation](https://docs.astro.build/en/reference/directives-reference/#custom-client-directives).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbholmesdev%2Fastro-client-when-rainy-in-ny","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbholmesdev%2Fastro-client-when-rainy-in-ny","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbholmesdev%2Fastro-client-when-rainy-in-ny/lists"}